[TIMOB-27523] iOS: PopOver is crashing in iPad using Ti SDK 8.2.1.GA
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | None |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2019-11-04T18:08:44.000+0000 |
Affected Version/s | Release 8.2.1 |
Fix Version/s | n/a |
Components | iPad |
Labels | escalation |
Reporter | Motiur Rahman |
Assignee | Motiur Rahman |
Created | 2019-11-04T14:21:07.000+0000 |
Updated | 2019-11-04T18:08:44.000+0000 |
Description
*Description:* Popover sample code of our doc shows error on iPad but it works as expected on TI SDK 8.2.0.GA
- http://docs.appcelerator.com/platform/latest/#!/api/Titanium.UI.iPad.Popover-method-show
*Steps To Reproduce:*
1. Create an Alloy App with the above sample code
2. Run it on iPad simulator or device, iOS v12.X or 13.X
3. Click on Open Popover button
[DEBUG] : APSAnalytics: Attempting to send 2 analytics event(s)
[DEBUG] : *** Terminating app due to uncaught exception 'NSGenericException', reason: 'UIPopoverPresentationController (<UIPopoverPresentationController: 0x7fbb09521a40>) should have a non-nil sourceView or barButtonItem set before the presentation occurs.'
[DEBUG] : *** First throw call stack:
[DEBUG] : (
[DEBUG] : 0 CoreFoundation 0x000000010b1521bb __exceptionPreprocess + 331
[DEBUG] : 1 libobjc.A.dylib 0x0000000109f4d735 objc_exception_throw + 48
[DEBUG] : 2 UIKitCore 0x00000001169baed1 -[UIPopoverPresentationController presentationTransitionWillBegin] + 3168
[DEBUG] : 3 UIKitCore 0x00000001169c487b __71-[UIPresentationController _initViewHierarchyForPresentationSuperview:]_block_invoke + 2495
[DEBUG] : 4 UIKitCore 0x00000001169c1e6b __56-[UIPresentationController runTransitionForCurrentState]_block_invoke + 468
[DEBUG] : 5 UIKitCore 0x00000001170d20d2 _runAfterCACommitDeferredBlocks + 318
[DEBUG] : 6 UIKitCore 0x00000001170c0b2c _cleanUpAfterCAFlushAndRunDeferredBlocks + 384
[DEBUG] : 7 UIKitCore 0x00000001170efefc _afterCACommitHandler + 135
[DEBUG] : 8 CoreFoundation 0x000000010b0b6c27 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
[DEBUG] : 9 CoreFoundation 0x000000010b0b10be __CFRunLoopDoObservers + 430
[DEBUG] : 10 CoreFoundation 0x000000010b0b1751 __CFRunLoopRun + 1537
[DEBUG] : 11 CoreFoundation 0x000000010b0b0e11 CFRunLoopRunSpecific + 625
[DEBUG] : 12 GraphicsServices 0x000000010f7811dd GSEventRunModal + 62
[DEBUG] : 13 UIKitCore 0x00000001170c681d UIApplicationMain + 140
[DEBUG] : 14 HelloWorldTest 0x00000001049030ef main + 1231
[DEBUG] : 15 libdyld.dylib 0x000000010d5da575 start + 1
[DEBUG] : )
[DEBUG] : libc++abi.dylib: terminating with uncaught exception of type NSException
I attached the sample code and screenshots.
Thanks!
Attachments
File | Date | Size |
---|---|---|
app.zip | 2019-11-04T14:17:23.000+0000 | 8086414 |
build_iphone.log | 2019-11-04T14:14:38.000+0000 | 22151 |
Simulator_Screen_Shot_-_iPad_(5th_generation)_-_2019-11-04_at_17.14.47.png | 2019-11-04T14:16:27.000+0000 | 72308 |
Simulator_Screen_Shot_-_iPad_(5th_generation)_-_2019-11-04_at_17.14.49.png | 2019-11-04T14:16:27.000+0000 | 58589 |
No comments