[AC-1252] Webviews having <select> dropdown list crashing the app on multiple clicks.
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2015-06-26T23:45:01.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | dropdown, iPad, webview |
Reporter | ankur garha |
Assignee | Radamantis Torres-Lechuga |
Created | 2015-02-24T12:19:51.000+0000 |
Updated | 2016-03-08T07:37:38.000+0000 |
Description
{panel:title=Sample Code}
var htmlContent = "";
var webview = Titanium.UI.createWebView();
webview.html = htmlContent;
var window = Titanium.UI.createWindow();
window.add(webview);
window.open();
{panel}
*Try clicking the drop downs multiple times and your app will get crash with the following log.*
{panel:title=crash log}
[ERROR] : The application has crashed with an uncaught exception 'NSGenericException'.
[ERROR] : Reason:
[ERROR] : UIPopoverPresentationController () should have a non-nil sourceView or barButtonItem set before the presentation occurs.
[ERROR] : Stack trace:
[ERROR] :
[ERROR] : 0 CoreFoundation 0x050aedda __exceptionPreprocess + 154
[ERROR] : 1 libobjc.A.dylib 0x04c81a97 objc_exception_throw + 44
[ERROR] : 2 UIKit 0x0249ba37 -[UIPopoverPresentationController presentationTransitionWillBegin] + 3086
[ERROR] : 3 UIKit 0x01da2f75 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 1666
[ERROR] : 4 UIKit 0x01da1554 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 226
[ERROR] : 5 UIKit 0x01dd521b __40+[UIViewController _scheduleTransition:]_block_invoke + 18
[ERROR] : 6 UIKit 0x01c9b62e ___afterCACommitHandler_block_invoke + 15
[ERROR] : 7 UIKit 0x01c9b5d9 _applyBlockToCFArrayCopiedToStack + 415
[ERROR] : 8 UIKit 0x01c9b3ee _afterCACommitHandler + 545
[ERROR] : 9 CoreFoundation 0x04fd1fbe __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
[ERROR] : 10 CoreFoundation 0x04fd1f00 __CFRunLoopDoObservers + 400
[ERROR] : 11 CoreFoundation 0x04fc793a __CFRunLoopRun + 1226
[ERROR] : 12 CoreFoundation 0x04fc71ab CFRunLoopRunSpecific + 443
[ERROR] : 13 CoreFoundation 0x04fc6fdb CFRunLoopRunInMode + 123
[ERROR] : 14 GraphicsServices 0x068c524f GSEventRunModal + 192
[ERROR] : 15 GraphicsServices 0x068c508c GSEventRun + 104
[ERROR] : 16 UIKit 0x01c71e16 UIApplicationMain + 1526
[ERROR] : 17 HIP Mobile 0x000b0a28 main + 456
[ERROR] : 18 libdyld.dylib 0x06bb7ac9 start + 1
[ERROR] :
[ERROR] : 2015-02-24 17:01:06.613 HIP Mobile[33936:2697052] *** Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController () should have a non-nil sourceView or barButtonItem set before the presentation occurs.'
[ERROR] : *** First throw call stack:
[ERROR] : (
[ERROR] : 0 CoreFoundation 0x050aedf6 __exceptionPreprocess + 182
[ERROR] : 1 libobjc.A.dylib 0x04c81a97 objc_exception_throw + 44
[ERROR] : 2 UIKit 0x0249ba37 -[UIPopoverPresentationController presentationTransitionWillBegin] + 3086
[ERROR] : 3 UIKit 0x01da2f75 __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 1666
[ERROR] : 4 UIKit 0x01da1554 __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 226
[ERROR] : 5 UIKit 0x01dd521b __40+[UIViewController _scheduleTransition:]_block_invoke + 18
[ERROR] : 6 UIKit 0x01c9b62e ___afterCACommitHandler_block_invoke + 15
[ERROR] : 7 UIKit 0x01c9b5d9 _applyBlockToCFArrayCopiedToStack + 415
[ERROR] : 8 UIKit 0x01c9b3ee _afterCACommitHandler + 545
[ERROR] : 9 CoreFoundation 0x04fd1fbe __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 30
[ERROR] : 10 CoreFoundation 0x04fd1f00 __CFRunLoopDoObservers + 400
[ERROR] : 11 CoreFoundation 0x04fc793a __CFRunLoopRun + 1226
[ERROR] : 12 CoreFoundation 0x04fc71ab CFRunLoopRunSpecific + 443
[ERROR] : 13 CoreFoundation 0x04fc6fdb CFRunLoopRunInMode + 123
[ERROR] : 14 GraphicsServices 0x068c524f GSEventRunModal + 192
[ERROR] : 15 GraphicsServices 0x068c508c GSEventRun + 104
[ERROR] : 16 UIKit 0x01c71e16 UIApplicationMain + 1526
[ERROR] : 17 HIP Mobile 0x000b0a28 main + 456
[ERROR] : 18 libdyld.dylib 0x06bb7ac9 start + 1
[ERROR] : )
[ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException
{panel}
[~mrahman] Can you please verify and test this with 3.5.0 3.5.1 and master?
Hi Team, Any updates on this issue, maybe some workaround which we can implement for now until next TiSDK release. regards, Ankur Garha
Any updates related to this issue, Any Ideas `when can we expect a fix for this issue or atleast let us know the work around for this one.
[~speedyankur@gmail.com] we can not replicate this issue, can you please help us to replicate? Thanks