Start a new topic

Bad usage of memory

Bad usage of memory


Hi Luca!
Sorry for the late response but we're currently preparing the Wikitude SDK 4.0 so we're all very busy at the moment getting things done.
We have planned to extend the SDK with some functionality that you can use to handle your problem. But maybe you can also do something to get your app working as expected.
First, the AR.context.destroyAll() does not affect the tmp directory handling, so it does not have any effect, especially because the 'willTerminate' delegate mehtod is only called if the system or user kills the app. You should prefer using 'applicationDidEnterBackground'.
Because we want provide you a solution this week, we will discuss the next steps today and give you detailed feedback until tomorrow morning.

What I can safely say so far is, that if you nil out your ArchitectView object and create a new one once your start the AR experience, all folders will be removed (if you're using the latest Developer Channel Release). In detail, All folders will be removed once a new ArchitectView instance is created.
 

Best regards

Andreas

 

I have to buy the license and I have to release the app during this week and I will not proceed to purchase the license if you don't solve this issue, sorry.

Any updates about this issue?

When you start tha app you access to a page where you set, with a few taps, some settings that I pass to the ARView in the next controller.

Then I start the ArchitectView and with this a NavigationController that allow the user to change page, but all the app run around the ArchitectView. 

Then, in the AppDelegate, in the - (void)applicationWillTerminate:(UIApplication *)application  I destroy the AR.context with destroyAll(); method and I destroy all the instantiated classes

Hi Luca!
Could you explain in a few sentences how your application flow is? I'm especially interested in how the WTArchitectView is managed. Do you destroy it somewhere in your code or does it live as long as the app is running? 

Best regards

Andreas

Hi Andreas,

I analyzed the folders with iExplorer and I noticed the the tmp folder contain three folders with 3D model tmp files and these three, added, are 100MB size.

Screenshot in attachments. If you want, then I can upload the .app file.

Can you give us more information how your application uses the Wikitude SDK View? Is it presented using a navigation controller, tab controller or is it the only visible view at all?
Maybe you can also send us the exported application from your iOS device using iExplorer so that we can check which folder contains which files. You can send the file or a download link to ios-sdk@wikitude.com.

Thx for your help in resolving this issue!

Best regards

Andreas 

Hi Philipp.

I just downloaded and included the latest release but the problem still present.

This is a screenshot taken after 2 minutes of 3D visualization: http://i61.tinypic.com/2d9o68i.png

And this is after another 3 minutes: http://i57.tinypic.com/2lwazdf.png

That's is, I think, because you re-draw the 3D model each time I upload my GPS position to adapt the size of the model depending on the distance. So the tmp folder still has all the 3D files printed before on the screen and you never delete them, I guess.

 

The file is already the updated one, only the date is the old one. 

Sorry Andreas but at this link http://www.wikitude.com/download/developer-channel I found only the May release, nothing about my req. May I still have to wait?

Thanks

Hi, we just uploaded the Developer Channel release for iOS.

Have a nice weekend!
Andreas

Hi, the Developer Channel Release will go live tomorrow.
Simply check this link in the next time.

Best regards

Andreas

Any updates?

Ok Andreas, thank you. I will wait for this new release

Hi,
We found an issue related to 3D model loading this week and will release a new version early next week. The problem right now is that some folders in the app sandbox 'tmp' folder are not deleted properly. So the app on disk will grow with each ARchitect World launch. The method '' does not resolve this issue.

Best regards

Andreas

 
Login or Signup to post a comment