I'm trying to view many 3D models in my iOS app, but after I loaded it, documents and data memory usage increase exponentially (app: 20mb, documents and data: 300/400mb).
3d models weight always are < 15mb. I saw that there is an imponent memory leak of OpenGLES. How can I fix it? I tried deleting all AR.* object closing the app like the cache data of the app ;
A
Andreas Schacherbauer
said
over 9 years ago
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
L
Luca
said
over 9 years ago
Ok Andreas, thank you. I will wait for this new release
L
Luca
said
over 9 years ago
Any updates?
A
Andreas Schacherbauer
said
over 9 years ago
Hi, the Developer Channel Release will go live tomorrow. Simply check this link in the next time.
Best regards
Andreas
A
Andreas Schacherbauer
said
over 9 years ago
Hi, we just uploaded the Developer Channel release for iOS.
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.
A
Andreas Schacherbauer
said
over 9 years ago
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
L
Luca
said
over 9 years ago
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.
A
Andreas Schacherbauer
said
over 9 years ago
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
L
Luca
said
over 9 years ago
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
Luca