[ 
https://issues.apache.org/jira/browse/CB-7456?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14121313#comment-14121313
 ] 

Elaina Miller commented on CB-7456:
-----------------------------------

I believe that the UIPopoverPresentationController class was added in ios8 and 
that is required to display popovers, rather than just using the 
UIPopoverController class in ios7 and earlier. That might be what is causing 
the issue.

This is the log provided in the Xcode console:
2014-09-03 12:58:52.793 ColonoscopyPrep[15976:282754] Application tried to 
represent an active popover presentation <UIWebSelectTableViewController: 
0x7fec324d6a00> from <MainViewController: 0x7fec32629f00>.
2014-09-03 12:58:54.432 ColonoscopyPrep[15976:282754] Warning: Attempt to 
dismiss from view controller <MainViewController: 0x7fec32629f00> while a 
presentation or dismiss is in progress!
2014-09-03 12:58:54.463 ColonoscopyPrep[15976:282754] *** Terminating app due 
to uncaught exception 'NSGenericException', reason: 
'UIPopoverPresentationController (<UIPopoverPresentationController: 
0x7fec34448bc0>) should have a non-nil sourceView or barButtonItem set before 
the presentation occurs.'
First throw call stack:
(
        0   CoreFoundation                      0x00000001033f83e5 
__exceptionPreprocess + 165
        1   libobjc.A.dylib                     0x0000000105c31967 
objc_exception_throw + 45
        2   CoreFoundation                      0x00000001033f831d 
+[NSException raise:format:] + 205
        3   UIKit                               0x0000000103ef473b 
-[UIPopoverPresentationController presentationTransitionWillBegin] + 334
        4   UIKit                               0x00000001038e7977 
__71-[UIPresentationController 
_initViewHierarchyForPresentationSuperview:]_block_invoke + 1398
        5   UIKit                               0x00000001038e643e 
__56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 175
        6   UIKit                               0x000000010380697e 
_applyBlockToCFArrayCopiedToStack + 314
        7   UIKit                               0x00000001038067f8 
_afterCACommitHandler + 516
        8   CoreFoundation                      0x000000010332d337 
__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
        9   CoreFoundation                      0x000000010332d290 
__CFRunLoopDoObservers + 368
        10  CoreFoundation                      0x00000001033230c3 
__CFRunLoopRun + 1123
        11  CoreFoundation                      0x00000001033229f6 
CFRunLoopRunSpecific + 470
        12  GraphicsServices                    0x00000001073c39f0 
GSEventRunModal + 161
        13  UIKit                               0x00000001037e3990 
UIApplicationMain + 1282
        14  ColonoscopyPrep                     0x00000001031f5247 main + 71
        15  libdyld.dylib                       0x0000000106381145 start + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException


> iOS 8 iPad app crashes when rotated with html select (iOS popover) visible
> --------------------------------------------------------------------------
>
>                 Key: CB-7456
>                 URL: https://issues.apache.org/jira/browse/CB-7456
>             Project: Apache Cordova
>          Issue Type: Sub-task
>          Components: iOS
>    Affects Versions: 3.5.0
>         Environment: Using OS X 10.9.4, Xcode 6 beta 5, with iOS8 iPad 
> simulators provided in Xcode 6 beta 5
>            Reporter: Elaina Miller
>            Priority: Minor
>              Labels: crash, ios8, popover
>
> I created an application that has HTML selects. When viewed on an iOS8 iPad, 
> the options for these selects display as a native iOS popover. If I keep that 
> popover visible and rotate the iPad, the entire app crashes.  If I close the 
> popover first before rotating, the app does not crash. This does not happen 
> before iOS8. To test whether this was an Apache issue or an iOS issue, I 
> first created a sample native iOS app with a popover and the issue did not 
> occur. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to