You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Nebojsa (JIRA)" <ji...@apache.org> on 2015/01/12 21:34:35 UTC
[jira] [Commented] (CB-6479) App Crash: Requesting the window of a
view with a nil layer
[ https://issues.apache.org/jira/browse/CB-6479?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14274125#comment-14274125 ]
Nebojsa commented on CB-6479:
-----------------------------
We can reproduce this issue with Cordova 2.6 (via Worklight 6.0) compiled using iOS 8 SDK.
Double-tap on some drop-downs (not the usual user interaction with the control, but still) crashes the app running iOS 7.12.
Here's the backtrace, similar to the one reported before.
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Triggered by Thread: 0
Last Exception Backtrace:
0 CoreFoundation 0x2f658ecb __exceptionPreprocess + 131
1 libobjc.A.dylib 0x3a123ce7 objc_exception_throw + 38
2 CoreFoundation 0x2f658e0d +[NSException raise:format:] + 112
3 UIKit 0x321216d5 __windowForView + 448
4 UIKit 0x31e82265 _UIGestureRecognizerUpdate + 4828
5 UIKit 0x31eba305 -[UIWindow _sendGesturesForEvent:] + 772
6 UIKit 0x31eb9c2b -[UIWindow sendEvent:] + 666
7 UIKit 0x31e8ee55 -[UIApplication sendEvent:] + 196
8 UIKit 0x31e8d521 _UIApplicationHandleEventQueue + 7120
9 CoreFoundation 0x2f623faf __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 14
10 CoreFoundation 0x2f623477 __CFRunLoopDoSources0 + 206
11 CoreFoundation 0x2f621c67 __CFRunLoopRun + 630
12 CoreFoundation 0x2f58c729 CFRunLoopRunSpecific + 524
13 CoreFoundation 0x2f58c50b CFRunLoopRunInMode + 106
14 GraphicsServices 0x344b86d3 GSEventRunModal + 138
15 UIKit 0x31eed871 UIApplicationMain + 1136
> App Crash: Requesting the window of a view with a nil layer
> -----------------------------------------------------------
>
> Key: CB-6479
> URL: https://issues.apache.org/jira/browse/CB-6479
> Project: Apache Cordova
> Issue Type: Bug
> Components: iOS
> Affects Versions: 3.3.0
> Environment: IOS 6 and 7 on ipod, ipad and on simulator.
> Reporter: Jake Williams
> Assignee: Shazron Abdullah
> Labels: crash
>
> We're getting an error sometimes while making page changes in our app. We're using an iframe to have an outer page with a navigation footer and inner pages that change and have animations. Occasionally when changing the page in the iframe, if you click before the page has finished transitioning/loading, it will throw an error.
> Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Requesting the window of a view (<UIWebOverflowContentView:...>) with a nil layer. This view probably hasn't received initWithFrame: or initWithCoder:.'
> https://groups.google.com/forum/#!topic/PhoneGap/bhU_Ug8wPr0
> This guy seemed to have the same issue. I've been unable to setup a delay that fixes the issue and we're at the top of pages that aren't tall enough to have scrolling when the error occurs. I tried covering the page with a loading div to prevent clicks, but that didn't work. I haven't figured out a good way to delay the page load or stop button clicks while we wait for objective-c to catch up either. I've also been unable to find a way to catch or handle the error in objective c, mainly because I have had no luck actually finding the code that's causing the issue, I assume it's in cordova or a framework, but haven't been able to figure out where it is.
> I've reported the issue here https://groups.google.com/forum/#!topic/phonegap/5UBdxxu7RBU but haven't gotten any suggestions for fixes yet.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org