Project: titanium
Issue TIMOB-20623: The application has crashed with an uncaught exception 'org.voya_crash.TiUITabProxy'
Following the steps below causes the app to crash with: The application has crashed with an uncaught exception 'org.voya_crash.TiUITabProxy'. Reason: Invalid type passed to function 1) Create a classic Titanium app for iOS 2) Replace the Resources with the ones from the attachment 3) Run in iOS Simulator 4) Click on the 'Welcome' message 5) Click on 'tab2' 6) Click on 'welcome2' 7) Click on tab1 8) Click on 'welcome1' 9) Background the app and close it from the Multitasking screen 10) App crashes Console output of crash: [ERROR] : The application has crashed with an uncaught exception 'org.voya_crash.TiUITabProxy'. [ERROR] : Reason: [ERROR] : Invalid type passed to function [ERROR] : Stack trace: [ERROR] : [ERROR] : 0 CoreFoundation 0x000000010ce86d6d __exceptionPreprocess + 141 [ERROR] : 1 libobjc.A.dylib 0x000000010c854deb objc_exception_throw + 48 [ERROR] : 2 voya_crash 0x000000010702ff78 TiExceptionThrowWithNameAndReason + 200 [ERROR] : 3 voya_crash 0x0000000106ff8819 -[TiProxy throwException:subreason:location:] + 105 [ERROR] : 4 voya_crash 0x0000000106f8f14d -[TiUITabProxy rootController] + 429 [ERROR] : 5 voya_crash 0x0000000106f8f73b -[TiUITabProxy closeWindowProxy:animated:] + 107 [ERROR] : 6 voya_crash 0x0000000106f8f581 -[TiUITabProxy closeOnUIThread:] + 401 [ERROR] : 7 voya_crash 0x0000000106f903ea __28-[TiUITabProxy closeWindow:]_block_invoke + 42 [ERROR] : 8 voya_crash 0x0000000107030b94 __TiThreadPerformOnMainThread_block_invoke + 52 [ERROR] : 9 voya_crash 0x00000001070305d7 TiThreadPerformOnMainThread + 407 [ERROR] : 10 voya_crash 0x0000000106f903b2 -[TiUITabProxy closeWindow:] + 610 [ERROR] : 11 voya_crash 0x000000010713156f -[TiWindowProxy close:] + 335 [ERROR] : 12 voya_crash 0x0000000106f7048a __27-[TiUIWindowProxy _destroy]_block_invoke + 42 [ERROR] : 13 voya_crash 0x0000000107030b94 __TiThreadPerformOnMainThread_block_invoke + 52 [ERROR] : 14 voya_crash 0x0000000107030f23 TiThreadProcessPendingMainThreadBlocks + 403 [ERROR] : 15 voya_crash 0x00000001070e740f -[TiApp waitForKrollProcessing] + 159 [ERROR] : 16 voya_crash 0x00000001070e75af -[TiApp applicationWillTerminate:] + 399 [ERROR] : 17 UIKit 0x0000000108e20401 -[UIApplication _terminateWithStatus:] + 136 [ERROR] : 18 UIKit 0x0000000108e214fc __102-[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]_block_invoke1979 + 911 [ERROR] : 19 UIKit 0x0000000108e24f62 _runAfterCACommitDeferredBlocks + 317 [ERROR] : 20 UIKit 0x0000000108e38e4c _cleanUpAfterCAFlushAndRunDeferredBlocks + 95 [ERROR] : 21 UIKit 0x0000000108e45147 _afterCACommitHandler + 90 [ERROR] : 22 CoreFoundation 0x000000010cdabc37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 [ERROR] : 23 CoreFoundation 0x000000010cdabba7 __CFRunLoopDoObservers + 391 [ERROR] : 24 CoreFoundation 0x000000010cda17fb __CFRunLoopRun + 1147 [ERROR] : 25 CoreFoundation 0x000000010cda10f8 CFRunLoopRunSpecific + 488 [ERROR] : 26 GraphicsServices 0x000000010e99bad2 GSEventRunModal + 161 [ERROR] : 27 UIKit 0x0000000108e18f09 UIApplicationMain + 171 [ERROR] : 28 voya_crash 0x0000000106f1abb6 main + 310 [ERROR] : 29 libdyld.dylib 0x000000010e29f92d start + 1 [ERROR] : [ERROR] : 2016-03-24 14:51:52.487 voya_crash[28440:14850942] *** Terminating app due to uncaught exception 'org.voya_crash.TiUITabProxy', reason: 'Invalid type passed to function' [ERROR] : *** First throw call stack: [ERROR] : ( [ERROR] :	0 CoreFoundation 0x000000010ce86d85 __exceptionPreprocess + 165 [ERROR] :	1 libobjc.A.dylib 0x000000010c854deb objc_exception_throw + 48 [ERROR] :	2 voya_crash 0x000000010702ff78 TiExceptionThrowWithNameAndReason + 200 [ERROR] :	3 voya_crash 0x0000000106ff8819 -[TiProxy throwException:subreason:location:] + 105 [ERROR] :	4 voya_crash 0x0000000106f8f14d -[TiUITabProxy rootController] + 429 [ERROR] :	5 voya_crash 0x0000000106f8f73b -[TiUITabProxy closeWindowProxy:animated:] + 107 [ERROR] :	6 voya_crash 0x0000000106f8f581 -[TiUITabProxy closeOnUIThread:] + 401 [ERROR] :	7 voya_crash 0x0000000106f903ea __28-[TiUITabProxy closeWindow:]_block_invoke + 42 [ERROR] :	8 voya_crash 0x0000000107030b94 __TiThreadPerformOnMainThread_block_invoke + 52 [ERROR] :	9 voya_crash 0x00000001070305d7 TiThreadPerformOnMainThread + 407 [ERROR] :	10 voya_crash 0x0000000106f903b2 -[TiUITabProxy closeWindow:] + 610 [ERROR] :	11 voya_crash 0x000000010713156f -[TiWindowProxy close:] + 335 [ERROR] :	12 voya_crash 0x0000000106f7048a __27-[TiUIWindowProxy _destroy]_block_invoke + 42 [ERROR] :	13 voya_crash 0x0000000107030b94 __TiThreadPerformOnMainThread_block_invoke + 52 [ERROR] :	14 voya_crash 0x0000000107030f23 TiThreadProcessPendingMainThreadBlocks + 403 [ERROR] :	15 voya_crash 0x00000001070e740f -[TiApp waitForKrollProcessing] + 159 [ERROR] :	16 voya_crash 0x00000001070e75af -[TiApp applicationWillTerminate:] + 399 [ERROR] :	17 UIKit 0x0000000108e20401 -[UIApplication _terminateWithStatus:] + 136 [ERROR] :	18 UIKit 0x0000000108e214fc __102-[UIApplication _handleApplicationDeactivationWithScene:shouldForceExit:transitionContext:completion:]_block_invoke1979 + 911 [ERROR] :	19 UIKit 0x0000000108e24f62 _runAfterCACommitDeferredBlocks + 317 [ERROR] :	20 UIKit 0x0000000108e38e4c _cleanUpAfterCAFlushAndRunDeferredBlocks + 95 [ERROR] :	21 UIKit 0x0000000108e45147 _afterCACommitHandler + 90 [ERROR] :	22 CoreFoundation 0x000000010cdabc37 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23 [ERROR] :	23 CoreFoundation 0x000000010cdabba7 __CFRunLoopDoObservers + 391 [ERROR] :	24 CoreFoundation 0x000000010cda17fb __CFRunLoopRun + 1147 [ERROR] :	25 CoreFoundation 0x000000010cda10f8 CFRunLoopRunSpecific + 488 [ERROR] :	26 GraphicsServices 0x000000010e99bad2 GSEventRunModal + 161 [ERROR] :	27 UIKit 0x0000000108e18f09 UIApplicationMain + 171 [ERROR] :	28 voya_crash 0x0000000106f1abb6 main + 310 [ERROR] :	29 libdyld.dylib 0x000000010e29f92d start + 1 [ERROR] : ) [ERROR] : libc++abi.dylib: terminating with uncaught exception of type NSException
Story points: 5