[ https://issues.apache.org/jira/browse/CB-7694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14156491#comment-14156491 ]
Floris Mettey edited comment on CB-7694 at 10/2/14 12:42 PM: ------------------------------------------------------------- Hello, I do have the same issue with click only on select field with a good timing. I'm not using jQuery mobile. Environment: iOS 8.0.2, iPad mini, xCode 6.0.1, cordova 3.4.0 and 3.6.3 Console log: 2014-10-02 14:31:56.840 testCDV[697:103746] Application tried to represent an active popover presentation: <UIPopoverPresentationController: 0x14dd32c0> 2014-10-02 14:32:04.611 testCDV[697:103746] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<UIPopoverPresentationController: 0x14d07140>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.' First throw call stack: (0x21d06e3f 0x2f67fc8b 0x2583eed7 0x25471b43 0x2547086f 0x2521ed0d 0x2519ac4b 0x21ccd5cd 0x21ccac8b 0x21ccb093 0x21c19621 0x21c19433 0x28f5f0a9 0x25204359 0x568e3 0x2fbffaaf) libc++abi.dylib: terminating with uncaught exception of type NSException Crash log: Last Exception Backtrace: 0 CoreFoundation 0x21d06e3f __exceptionPreprocess + 127 1 libobjc.A.dylib 0x2f67fc8b objc_exception_throw + 38 2 UIKit 0x2583eed7 -[UIPopoverPresentationController presentationTransitionWillBegin] + 2698 3 UIKit 0x25471b43 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 1194 4 UIKit 0x2547086f __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 150 5 UIKit 0x2521ed0d _applyBlockToCFArrayCopiedToStack + 308 6 UIKit 0x2519ac4b _afterCACommitHandler + 458 7 CoreFoundation 0x21ccd5cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20 8 CoreFoundation 0x21ccac8b __CFRunLoopDoObservers + 278 9 CoreFoundation 0x21ccb093 __CFRunLoopRun + 914 10 CoreFoundation 0x21c19621 CFRunLoopRunSpecific + 476 11 CoreFoundation 0x21c19433 CFRunLoopRunInMode + 106 12 GraphicsServices 0x28f5f0a9 GSEventRunModal + 136 13 UIKit 0x25204359 UIApplicationMain + 1440 14 TestCDV 0x0006f8e3 main (main.m:32) 15 libdyld.dylib 0x2fbffaaf start + 2 was (Author: fmettey): Hello, I do have the same issue with click only on select field with a good timing. I'm not using jQuery mobile. Environment: iOS 8.0.2, iPad mini, xCode 6.0.1, cordova 3.4.0 and 3.6.3 Console log: 2014-10-02 14:31:56.840 testCDV[697:103746] Application tried to represent an active popover presentation: <UIPopoverPresentationController: 0x14dd32c0> 2014-10-02 14:32:04.611 testCDV[697:103746] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<UIPopoverPresentationController: 0x14d07140>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.' *** First throw call stack: (0x21d06e3f 0x2f67fc8b 0x2583eed7 0x25471b43 0x2547086f 0x2521ed0d 0x2519ac4b 0x21ccd5cd 0x21ccac8b 0x21ccb093 0x21c19621 0x21c19433 0x28f5f0a9 0x25204359 0x568e3 0x2fbffaaf) libc++abi.dylib: terminating with uncaught exception of type NSException Crash log: Last Exception Backtrace: 0 CoreFoundation 0x21d06e3f __exceptionPreprocess + 127 1 libobjc.A.dylib 0x2f67fc8b objc_exception_throw + 38 2 UIKit 0x2583eed7 -[UIPopoverPresentationController presentationTransitionWillBegin] + 2698 3 UIKit 0x25471b43 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 1194 4 UIKit 0x2547086f __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 150 5 UIKit 0x2521ed0d _applyBlockToCFArrayCopiedToStack + 308 6 UIKit 0x2519ac4b _afterCACommitHandler + 458 7 CoreFoundation 0x21ccd5cd __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 20 8 CoreFoundation 0x21ccac8b __CFRunLoopDoObservers + 278 9 CoreFoundation 0x21ccb093 __CFRunLoopRun + 914 10 CoreFoundation 0x21c19621 CFRunLoopRunSpecific + 476 11 CoreFoundation 0x21c19433 CFRunLoopRunInMode + 106 12 GraphicsServices 0x28f5f0a9 GSEventRunModal + 136 13 UIKit 0x25204359 UIApplicationMain + 1440 14 TestCDV 0x0006f8e3 main (main.m:32) 15 libdyld.dylib 0x2fbffaaf start + 2 > Cordova crashes with UIPopoverPresentationController exception in web forms > --------------------------------------------------------------------------- > > Key: CB-7694 > URL: https://issues.apache.org/jira/browse/CB-7694 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 3.5.0, 3.6.0 > Environment: iOS 8.0.2, xCode 6.0.1 > Reporter: Alex Ivaylov > > I have this issue on both Cordova 3.5 and 3.6. > I have a web form that uses jQuery mobile. It is a mixture of text fields, > selects and a date field (the www folder is attached below). > The app randomly crashes when moving between the controls and I can not > figure out how to replicate the bug. I just go around all the controls and in > a random moment I get the exception shown below. > 2014-10-02 11:25:34.619 testApp[4456:277182] *** Terminating app due to > uncaught exception 'NSGenericException', reason: > 'UIPopoverPresentationController (<UIPopoverPresentationController: > 0x7afe3170>) should have a non-nil sourceView or barButtonItem set before the > presentation occurs.' > *** First throw call stack: > ( > 0 CoreFoundation 0x0030fdf6 > __exceptionPreprocess + 182 > 1 libobjc.A.dylib 0x02449a97 objc_exception_throw > + 44 > 2 UIKit 0x00eeaa37 > -[UIPopoverPresentationController presentationTransitionWillBegin] + 3086 > 3 UIKit 0x007f1f75 > __71-[UIPresentationController > _initViewHierarchyForPresentationSuperview:]_block_invoke + 1666 > 4 UIKit 0x007f0554 > __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + > 226 > 5 UIKit 0x0082421b > __40+[UIViewController _scheduleTransition:]_block_invoke + 18 > 6 UIKit 0x006ea62e > ___afterCACommitHandler_block_invoke + 15 > 7 UIKit 0x006ea5d9 > _applyBlockToCFArrayCopiedToStack + 415 > 8 UIKit 0x006ea3ee > _afterCACommitHandler + 545 > 9 CoreFoundation 0x00232fbe > __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30 > 10 CoreFoundation 0x00232f00 > __CFRunLoopDoObservers + 400 > 11 CoreFoundation 0x0022893a __CFRunLoopRun + 1226 > 12 CoreFoundation 0x002281ab CFRunLoopRunSpecific > + 443 > 13 CoreFoundation 0x00227fdb CFRunLoopRunInMode + > 123 > 14 GraphicsServices 0x03aca24f GSEventRunModal + 192 > 15 GraphicsServices 0x03aca08c GSEventRun + 104 > 16 UIKit 0x006c0e16 UIApplicationMain + > 1526 > 17 testApp 0x000ec7bc main + 92 > 18 libdyld.dylib 0x02b29ac9 start + 1 > ) > libc++abi.dylib: terminating with uncaught exception of type NSException > (lldb) > Here are the files: > 1. A video showing the bug: http://alex.scot/cordova/cordova1.mov > 2. Text file with the commands used to create the project and the exception: > http://alex.scot/cordova/cordova1.txt > 3. The www folder of the iOS platform in Cordova: > http://alex.scot/cordova/www.zip > thank you for looking into this, > Alex -- This message was sent by Atlassian JIRA (v6.3.4#6332)