cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miquel (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CB-7497) Crash on open app from fresh
Date Mon, 08 Sep 2014 17:09:28 GMT

    [ 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)

Mime
View raw message