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 3621810507 for ; Fri, 14 Nov 2014 00:40:35 +0000 (UTC) Received: (qmail 17916 invoked by uid 500); 14 Nov 2014 00:40:35 -0000 Delivered-To: apmail-cordova-issues-archive@cordova.apache.org Received: (qmail 17895 invoked by uid 500); 14 Nov 2014 00:40:35 -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 17879 invoked by uid 99); 14 Nov 2014 00:40:35 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Nov 2014 00:40:35 +0000 Date: Fri, 14 Nov 2014 00:40:34 +0000 (UTC) From: "Shazron Abdullah (JIRA)" To: issues@cordova.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (CB-7694) Cordova crashes with UIPopoverPresentationController exception in web forms 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-7694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14211594#comment-14211594 ] Shazron Abdullah edited comment on CB-7694 at 11/14/14 12:40 AM: ----------------------------------------------------------------- [~relens] I get what you are saying. If it only crashed using an interactive plugin like Camera, where it is our code that is displaying a popover view, it does make sense. This is Apple's own UIWebView crashing on HTML elements. In iOS 8, I couldn't even show any select elements on the Simulator - that's one representation on how buggy it was (it didn't pop up the select wheel) [~alex_ivaylov] or [~fmettey] does this still occur on iOS 8.1? > 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 () 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) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org For additional commands, e-mail: issues-help@cordova.apache.org