Return-Path: X-Original-To: apmail-cordova-issues-archive@minotaur.apache.org Delivered-To: apmail-cordova-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 775AB18F83 for ; Thu, 8 Oct 2015 18:30:27 +0000 (UTC) Received: (qmail 30425 invoked by uid 500); 8 Oct 2015 18:30:27 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 30398 invoked by uid 500); 8 Oct 2015 18:30:27 -0000 Mailing-List: contact issues-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@cordova.apache.org Received: (qmail 30381 invoked by uid 99); 8 Oct 2015 18:30:27 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Oct 2015 18:30:27 +0000 Date: Thu, 8 Oct 2015 18:30:27 +0000 (UTC) From: "Ryan England (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (CB-9769) Application modifying the autolayout engine from a background thread causes crash on keyboard focus MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CB-9769?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ryan England updated CB-9769: ----------------------------- Summary: Application modifying the autolayout engine from a background thread causes crash on keyboard focus (was: Application modifying the autolayout engine from a background thread) > Application modifying the autolayout engine from a background thread causes crash on keyboard focus > --------------------------------------------------------------------------------------------------- > > Key: CB-9769 > URL: https://issues.apache.org/jira/browse/CB-9769 > Project: Apache Cordova > Issue Type: Bug > Reporter: Ryan England > > Hi there, > We're getting issues when keyboard focus is given to a textbox within a form. Upon clicking the form field, the entire app immediately crashes and the following information is displayed in Xcode: > 2015-10-08 18:47:49.092 BudiPay[527:113011] This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release. > Stack:( > 0 CoreFoundation 0x0000000184608f74 + 148 > 1 libobjc.A.dylib 0x0000000199af7f80 objc_exception_throw + 56 > 2 CoreFoundation 0x0000000184608ea4 + 0 > 3 Foundation 0x00000001856225d8 + 88 > 4 Foundation 0x00000001854a4a1c + 36 > 5 UIKit 0x0000000189c6393c + 64 > 6 UIKit 0x0000000189c64454 + 244 > 7 UIKit 0x0000000189c80f28 + 108 > 8 UIKit 0x000000018a38a77c + 268 > 9 UIKit 0x0000000189e61fb0 + 176 > 10 UIKit 0x0000000189e51098 + 52 > 11 UIKit 0x0000000189b5aff0 + 644 > 12 QuartzCore 0x0000000189361f14 + 148 > 13 QuartzCore 0x000000018935cb20 + 292 > 14 QuartzCore 0x000000018935c9e0 + 32 > 15 QuartzCore 0x000000018935c07c + 252 > 16 QuartzCore 0x000000018935bdd0 + 516 > 17 QuartzCore 0x00000001893aeb00 + 592 > 18 IOKit 0x0000000185896018 IODispatchCalloutFromCFMessage + 372 > 19 CoreFoundation 0x00000001845aa8e0 + 180 > 20 CoreFoundation 0x00000001845c0cdc + 56 > 21 CoreFoundation 0x00000001845c0414 + 436 > 22 CoreFoundation 0x00000001845be16c + 1800 > 23 CoreFoundation 0x00000001844ecdc0 CFRunLoopRunSpecific + 384 > 24 WebCore 0x0000000196a25aa0 + 456 > 25 libsystem_pthread.dylib 0x000000019a4fbb3c + 156 > 26 libsystem_pthread.dylib 0x000000019a4fbaa0 + 0 > 27 libsystem_pthread.dylib 0x000000019a4f9030 thread_start + 4 > ) > 2015-10-08 18:47:49.096 BudiPay[527:113011] This application is modifying the autolayout engine from a background thread, which can lead to engine corruption and weird crashes. This will cause an exception in a future release. > Stack:( > 0 CoreFoundation 0x0000000184608f74 + 148 > 1 libobjc.A.dylib 0x0000000199af7f80 objc_exception_throw + 56 > 2 CoreFoundation 0x0000000184608ea4 + 0 > 3 Foundation 0x00000001856225d8 + 88 > 4 Foundation 0x00000001854a8f3c + 56 > 5 Foundation 0x00000001854a4afc + 260 > 6 UIKit 0x0000000189c6393c + 64 > 7 UIKit 0x0000000189c64454 + 244 > 8 UIKit 0x0000000189c80f28 + 108 > 9 UIKit 0x000000018a38a77c + 268 > 10 UIKit 0x0000000189e61fb0 + 176 > 11 UIKit 0x0000000189e51098 + 52 > 12 UIKit 0x0000000189b5aff0 + 644 > 13 QuartzCore 0x0000000189361f14 + 148 > 14 QuartzCore 0x000000018935cb20 + 292 > 15 QuartzCore 0x000000018935c9e0 + 32 > 16 QuartzCore 0x000000018935c07c + 252 > 17 QuartzCore 0x000000018935bdd0 + 516 > 18 QuartzCore 0x00000001893aeb00 + 592 > 19 IOKit 0x0000000185896018 IODispatchCalloutFromCFMessage + 372 > 20 CoreFoundation 0x00000001845aa8e0 + 180 > 21 CoreFoundation 0x00000001845c0cdc + 56 > 22 CoreFoundation 0x00000001845c0414 + 436 > 23 CoreFoundation 0x00000001845be16c + 1800 > 24 CoreFoundation 0x00000001844ecdc0 CFRunLoopRunSpecific + 384 > 25 WebCore 0x0000000196a25aa0 + 456 > 26 libsystem_pthread.dylib 0x000000019a4fbb3c + 156 > 27 libsystem_pthread.dylib 0x000000019a4fbaa0 + 0 > 28 libsystem_pthread.dylib 0x000000019a4f9030 thread_start + 4 > ) > 2015-10-08 18:47:49.097 BudiPay[527:113011] *** Assertion failure in -[UIApplication _cachedSystemAnimationFenceCreatingIfNecessary:], /BuildRoot/Library/Caches/com.apple.xbs/Sources/UIKit/UIKit-3505.17/UIApplication.m:1697 > 2015-10-08 18:47:49.098 BudiPay[527:113011] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'accessing _cachedSystemAnimationFence requires the main thread' > *** First throw call stack: > (0x184608f5c 0x199af7f80 0x184608e2c 0x1854f7f3c 0x189dfb0cc 0x189dfb190 0x189e4d3b0 0x18a2fb788 0x18a2f613c 0x189e5dfac 0x189bbb698 0x189c66a24 0x189b7669c 0x1844ffab0 0x1844ff9a8 0x189b653cc 0x189c66b6c 0x189e621f4 0x189b5aff0 0x189361f14 0x18935cb20 0x18935c9e0 0x18935c07c 0x18935bdd0 0x1893aeb00 0x185896018 0x1845aa8e0 0x1845c0cdc 0x1845c0414 0x1845be16c 0x1844ecdc0 0x196a25aa0 0x19a4fbb3c 0x19a4fbaa0 0x19a4f9030) > libc++abi.dylib: terminating with uncaught exception of type NSException > (lldb) > In the xcode window when connected to the process: > libsystem_kernel.dylib`__pthread_kill: > 0x19a4331d8 <+0>: movz x16, #0x148 > 0x19a4331dc <+4>: svc #0x80 > -> 0x19a4331e0 <+8>: b.lo 0x19a4331f8 ; <+32> > 0x19a4331e4 <+12>: stp x29, x30, [sp, #-16]! > 0x19a4331e8 <+16>: mov x29, sp > 0x19a4331ec <+20>: bl 0x19a41a330 ; cerror_nocancel > 0x19a4331f0 <+24>: mov sp, x29 > 0x19a4331f4 <+28>: ldp x29, x30, [sp], #16 > 0x19a4331f8 <+32>: ret > We're using the Ionic framework, but they have referred us here from there: https://github.com/driftyco/ionic/issues/4402 > Seems like a number of people receiving the same issue. Apologies if I haven't provided enough information - happy to field questions or help to debug further. (Have tried to format the above as code, but Jira won't let me) -- 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