Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-28484] iOS: NavigationWindow opening a child with a ListView and SearchBar crashes on iOS 12

GitHub Issuen/a
TypeBug
PriorityMedium
StatusOpen
ResolutionUnresolved
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
LabelsListView, NavigationWindow, SearchBar, iOS
ReporterJoshua Quick
AssigneeUnknown
Created2021-06-09T02:15:49.000+0000
Updated2021-06-09T02:16:10.000+0000

Description

*Summary:* On iOS 12, if a NavigationWindow opens a child window containing a ListView with a SearchBar attached will cause the app to crash. If the ListView does not a SearchBar, then the child window opens without issue. *Steps to reproduce:*

Build and run [^NavWindowListViewTest.js] on iOS 12.

Tap on one of the rows.

Noticed the app crashes when opening the child window.

*Result:*
[INFO]  *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Only one palette with a top boundary edge can be active outside of a transition. Current active palette is <_UINavigationControllerManagedSearchPalette: 0x7fd051717e70; frame = (0 116; 414 0); layer = <CALayer: 0x6000011385a0>>'
[INFO]  *** First throw call stack:
[INFO]  (
[INFO]          0   CoreFoundation                      0x000000010ef968db __exceptionPreprocess + 331
[INFO]          1   libobjc.A.dylib                     0x000000010e31fac5 objc_exception_throw + 48
[INFO]          2   CoreFoundation                      0x000000010ef96735 +[NSException raise:format:] + 197
[INFO]          3   UIKitCore                           0x000000011a2c6318 -[UINavigationController(_UIPalette) attachPalette:isPinned:] + 516
[INFO]          4   UIKitCore                           0x000000011a2a2e72 -[UINavigationController _createAndAttachSearchPaletteForTopViewControllerIfNecessary:] + 584
[INFO]          5   UIKitCore                           0x000000011a2c0169 -[UINavigationController _navigationItemDidUpdateSearchController:oldSearchController:] + 419
[INFO]          6   UIKitCore                           0x000000011a1465a8 -[_UINavigationBarVisualProviderModernIOS navigationItemUpdatedSearchController:oldSearchController:animated:] + 160
[INFO]          7   UIKitCore                           0x000000011a0ff8bd -[UINavigationItem setSearchController:] + 135
[INFO]          8   ClassicAppTest                      0x00000001087df202 -[TiUIListView viewGetFocus] + 482
[INFO]          9   ClassicAppTest                      0x0000000108819e04 -[TiUIListViewProxy gainFocus] + 52
[INFO]          10  TitaniumKit                         0x000000010e22bd74 -[TiWindowProxy gainFocus] + 339
[INFO]          11  ClassicAppTest                      0x000000010891f7a5 -[TiUINavigationWindowProxy navigationController:didShowViewController:animated:] + 501
[INFO]          12  UIKitCore                           0x000000011a2ade50 -[UINavigationController navigationTransitionView:didEndTransition:fromView:toView:] + 1599
[INFO]          13  UIKitCore                           0x000000011a2a21b2 __49-[UINavigationController _startCustomTransition:]_block_invoke + 241
[INFO]          14  UIKitCore                           0x000000011a37d698 -[_UIViewControllerTransitionContext completeTransition:] + 102
[INFO]          15  UIKitCore                           0x000000011a38f342 __53-[_UINavigationParallaxTransition animateTransition:]_block_invoke.118 + 877
[INFO]          16  UIKitCore                           0x000000011ae273e3 -[UIViewAnimationBlockDelegate _didEndBlockAnimation:finished:context:] + 847
[INFO]          17  UIKitCore                           0x000000011adfae47 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 343
[INFO]          18  UIKitCore                           0x000000011adfb469 -[UIViewAnimationState animationDidStop:finished:] + 293
[INFO]          19  UIKitCore                           0x000000011adfb51d -[UIViewAnimationState animationDidStop:finished:] + 473
[INFO]          20  QuartzCore                          0x000000010ccdcc5b _ZN2CA5Layer23run_animation_callbacksEPv + 321
[INFO]          21  libdispatch.dylib                   0x0000000111e8dd02 _dispatch_client_callout + 8
[INFO]          22  libdispatch.dylib                   0x0000000111e99a50 _dispatch_main_queue_callback_4CF + 1276
[INFO]          23  CoreFoundation                      0x000000010eefda79 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
[INFO]          24  CoreFoundation                      0x000000010eef8126 __CFRunLoopRun + 2310
[INFO]          25  CoreFoundation                      0x000000010eef74d2 CFRunLoopRunSpecific + 626
[INFO]          26  GraphicsServices                    0x00000001138552fe GSEventRunModal + 65
[INFO]          27  UIKitCore                           0x000000011a954fc2 UIApplicationMain + 140
[INFO]          28  ClassicAppTest                      0x0000000108758ce2 main + 1170
[INFO]          29  libdyld.dylib                       0x0000000111efb541 start + 1
[INFO]  )
[INFO]  libc++abi.dylib: terminating with uncaught exception of type NSException
*Note 1:* This issue was discovered when testing [TIMOB-28428] with it's attached test project. *Note 2:* Does not crash on iOS 14. (Have not tested it on iOS 13.)

Attachments

FileDateSize
NavWindowListViewTest.js2021-06-09T02:12:52.000+00001069

Comments

No comments

JSON Source