You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Miquel (JIRA)" <ji...@apache.org> on 2014/09/08 19:09:28 UTC
[jira] [Commented] (CB-7497) Crash on open app from fresh
[ https://issues.apache.org/jira/browse/CB-7497?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14125763#comment-14125763 ]
Miquel commented on CB-7497:
----------------------------
For the moment resolved with a @try {} @catch block in CDVSplashScreen.m:
Original:
[self.viewController.view removeObserver:self forKeyPath:@"frame"];
[self.viewController.view removeObserver:self forKeyPath:@"bounds"];
Patch:
@try {
[self.viewController.view removeObserver:self forKeyPath:@"frame"];
}
@catch (NSException *exception) {
NSLog(@"frame observer was not attached");
}
@try {
[self.viewController.view removeObserver:self forKeyPath:@"bounds"];
}
@catch (NSException *exception) {
NSLog(@"bounds observer was not attached");
}
> Crash on open app from fresh
> ----------------------------
>
> Key: CB-7497
> URL: https://issues.apache.org/jira/browse/CB-7497
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin SplashScreen
> Environment: ios7 iphone 4s
> Reporter: Miquel
>
> Everytime the app is fresh opened (not in the debugger)
> <Error>: *** Terminating app due to uncaught exception 'NSRangeException', reason: 'Cannot remove an observer <CDVSplashScreen 0x15d6f010> for the key path "frame" from <UIView 0x15e614b0> because it is not registered as an observer.'
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)