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.
A
Andreas Schacherbauer
said
almost 9 years ago
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
L
Luca
said
almost 9 years ago
Thank you Andreas. I will do how you say and I will wait for the new release, hoping there will be not major changes to the existing code
A
Andreas Schacherbauer
said
almost 9 years ago
During testing one question came into my mind: When do you init your WTArchitectView instance and when do you call -loadArchitectWorldFromUrl? Might it be the case that you load the Architect World each time the ArchitectView becomes visible again?
Best regards
Andreas
L
Luca
said
almost 9 years ago
Hi Andreas, I'm glad to let you know that I may solve the issue doing as you said, nilling out and initiliazing the WTArchitect when I start the ViewController. I will notice you if the problem will still represent
A
Andreas Schacherbauer
said
almost 9 years ago
Hi Luca, Thats good news! But just as a double check. As long as there is no folder called /tmp/com.wikitude.sdk/*hash*x (or multiple 'x'), you don't have any problems. All 3d models are located in the applications sandbox tmp folder and can't be deleted until a new instance of the WTArchitectView is created (we need those files to load the 3d models in OpenGL). Thats the reason why we delete this folder only at creation time and not during the usage of the SDK.
Best regards and thx for using the Wikitude SDK
Andreas
L
Luca
said
almost 9 years ago
The 'com.wikitude.sdk' folder exists and is empty. It seems to be solved. Really thanks!
h
heba Muhammad
said
over 8 years ago
please, What was the solution ?
I'm working on iOS.
I make multi screen on app, one of them is for Wikitude.
Every time I open its screen/window, memory increase ~ 20 M or more.I face memory crash.
I call "AR.context.destroyAll();" when I close its window to open another.
What can I do ?
Thank you,
Heba
A
Andreas Schacherbauer
said
over 8 years ago
Hi heba, which version of the iOS SDK do you use? All 4.x versions should fix the issue.
Do you manage the WTArchitectView using a UIViewController subclass? How do you present the WTArchitectView containing view controller? Maybe you never delete your view controller / architect view?
Best regards
Andreas
h
heba Muhammad
said
over 8 years ago
Thank you Andreas for reply,
I use WikitudeSDK_iOS_4_0_0.
I use the Code of Examples of WikitudeSDK_iOS_4_0_0.
And I make Google Places map URLrequest before calling "presentARViewControllerFromString". I created UITableViewController with rows with is places types like: Cafe, Bank, Hospital ... etc. And every time user click on row I start Wikitude through this method : "presentARViewControllerFromString".
Every time I start Wikitude Memory increase exponentially. But I found "tmp/com.wikitude.sdk" folder is empty.
Also, I used "viewWillDisappear" in my ViewControllers (most of them) to release and nil "architectView" and "standardARViewController". My app isn't ARC.
How can I delete view controller / architect view and where ? What is wrong in my sequence ?
h
heba Muhammad
said
over 8 years ago
Can any one help me ?
A
Andreas Schacherbauer
said
over 8 years ago
If your project does NOT USE ARC, you need to call to delete the object. But your project SHOULD USE ARC!
Best regards
Andreas
h
heba Muhammad
said
over 8 years ago
Yes, my original project isn't ARC for now.
BUT, I test Wikitude on small ARC project. And I take your SDK Example code (Whole classes as it's).
Some code which I use to clear objects is in WTStandardARViewController Class ( I don't want it in AppDelegate ):
- (void)viewWillDisappear:(BOOL)animated
{
;
;
;
self.architectView = nil;
}
}
Is that correct ?
What are real objects which must be nil to clear memory ?
If there is any chance to send you this small project to see, tell me.
Thank you,
Heba
h
heba Muhammad
said
over 8 years ago
Ok Andreas, my situation now is that I have to publish a new demo to customers next week, start of October.
And this demo will include Wikitude feature or not, that depends on memory issue. And for now could help.
Luca