If you can file that issue, that will be great. That way we can
schedule the fix in an upcoming release.
Shaz
> --
> You received this message because you are subscribed to the Google
> Groups "phonegap" group.
> To post to this group, send email to phon...@googlegroups.com
> To unsubscribe from this group, send email to
> phonegap+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/phonegap?hl=en?hl=en
>
> For more info on PhoneGap or to download the code go to www.phonegap.com
Comment out the call to [super didReceiveMemoryWarning] from your main view controller:
- (void)didReceiveMemoryWarning
{
// Releases the view if it doesn't have a superview.
// [super didReceiveMemoryWarning];
// Release any cached data, images, etc that aren't in use.
}
If you respond to this message you're telling iOS that it can take your memory away from you and you'll re-initialize your views when asked. PhoneGap apparently doesn't support this properly, and instead keeps hold of old memory and then explodes, so until they fix this just remove this line.
onsdag 22. februar 2012 kl. 01:43:56 UTC+1 skrev KJ følgende:
didReceiveMemoryWarning.
Here is the repo steps to hit this bug 100% on simulator:
1. Run your code in simulator, call up camera with navigator.camera.getPicture() to open the album (since camera is not available on simulator)
2. Simulator > Hardware > Simulate memory warning
3. Return from the iOS album (either click 'Cancel' or pick a photo)
4. Observe crash of the app
This is because the [super didReceiveMemoryWarning] see the web view is running in background (while the album/camera is on) so released it. Later when the album/camera closes and tries to call the JS callback, it cannot find the JS handler and hence crash. Usually in object-c, it is ok to release background views and reconstruct later, just for PhoneGap the web view could not be removed as it is the root view and it has the JS callback to be used later.
I still have a Received Memory warning problem as of Cordova 2.4Appears after 1 or more camera shots.Test case, generates the problem over and over again (IOS 6.1)Problem is, that after this error my HTML 5 css transitions fail miserable. Probably due to the memory crash..
Op woensdag 9 mei 2012 08:19:13 UTC+2 schreef Richard Kimber het volgende: