Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17756] iOS8: Tapping "open in" function in Safari leads to uncaught exception 'NSInvalidArgumentException'

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionDuplicate
Resolution Date2014-09-24T22:06:12.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.4.0
ComponentsiOS
Labelsios8
ReporterEduardo Gomez
AssigneeIngo Muschenetz
Created2014-09-24T21:35:09.000+0000
Updated2017-03-22T22:16:51.000+0000

Description

Issue description

The "Open In" function does not work when building an app with Appcelerator and running on iOS8.

Steps to reproduce

Install sample app to iOS simulator

Go to Safari and put this URL: http://www.act.org/compass/sample/pdf/reading.pdf

The app Opens, Splash Screen appears and quickly crashes.

Built app on 3.3.0.GA/iOS7 and same sequence launches the app as we expect.

Crash logs

[ERROR] The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
[ERROR] Reason:
[ERROR] *** setObjectForKey: object cannot be nil (key: source)
[ERROR] Stack trace:
[ERROR]   
[ERROR] 0   CoreFoundation                      0x04b80dda __exceptionPreprocess + 154
[ERROR] 1   libobjc.A.dylib                     0x04743a97 objc_exception_throw + 44
[ERROR] 2   CoreFoundation                      0x04a7419c -[__NSDictionaryM setObject:forKey:] + 940
[ERROR] 3   testOpenIn                          0x001ec66e -[TiApp application:openURL:sourceApplication:annotation:] + 318
[ERROR] 4   UIKit                               0x01477689 -[UIApplication _applicationOpenURL:payload:] + 323
[ERROR] 5   UIKit                               0x01480eb5 -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:] + 3375
[ERROR] 6   UIKit                               0x01485c58 -[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:] + 2295
[ERROR] 7   UIKit                               0x01485015 __88-[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_invoke + 190
[ERROR] 8   UIKit                               0x01484f4f -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 384
[ERROR] 9   UIKit                               0x0146c526 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 513
[ERROR] 10  FrontBoardServices                  0x084da475 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke_2 + 71
[ERROR] 11  FrontBoardServices                  0x084da1ef __40-[FBSSceneImpl _performDelegateCallOut:]_block_invoke + 54
[ERROR] 12  FrontBoardServices                  0x084ee425 __31-[FBSSerialQueue performAsync:]_block_invoke + 26
[ERROR] 13  CoreFoundation                      0x04aa47a0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
[ERROR] 14  CoreFoundation                      0x04a9a0b3 __CFRunLoopDoBlocks + 195
[ERROR] 15  CoreFoundation                      0x04a99f0b __CFRunLoopRun + 2715
[ERROR] 16  CoreFoundation                      0x04a991ab CFRunLoopRunSpecific + 443
[ERROR] 17  CoreFoundation                      0x04a98fdb CFRunLoopRunInMode + 123
[ERROR] 18  GraphicsServices                    0x0514824f GSEventRunModal + 192
[ERROR] 19  GraphicsServices                    0x0514808c GSEventRun + 104
[ERROR] 20  UIKit                               0x0146ee16 UIApplicationMain + 1526
[ERROR] 21  testOpenIn                          0x00017778 main + 456
[ERROR] 22  libdyld.dylib                       0x05436ac9 start + 1
[ERROR]   
[ERROR] 2014-09-24 16:28:24.521 testOpenIn[72919:561604] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** setObjectForKey: object cannot be nil (key: source)'
[ERROR] *** First throw call stack:
[ERROR] ( 
[ERROR]         0   CoreFoundation                      0x04b80df6 __exceptionPreprocess + 182
[ERROR]         1   libobjc.A.dylib                     0x04743a97 objc_exception_throw + 44
[ERROR]         2   CoreFoundation                      0x04a7419c -[__NSDictionaryM setObject:forKey:] + 940
[ERROR]         3   testOpenIn                          0x001ec66e -[TiApp application:openURL:sourceApplication:annotation:] + 318
[ERROR]         4   UIKit                               0x01477689 -[UIApplication _applicationOpenURL:payload:] + 323
[ERROR]         5   UIKit                               0x01480eb5 -[UIApplication _handleNonLaunchSpecificActions:forScene:withTransitionContext:] + 3375
[ERROR]         6   UIKit                               0x01485c58 -[UIApplication _handleApplicationActivationWithScene:transitionContext:completion:] + 2295
[ERROR]         7   UIKit                               0x01485015 __88-[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:]_block_invoke + 190
[ERROR]         8   UIKit                               0x01484f4f -[UIApplication _handleApplicationLifecycleEventWithScene:transitionContext:completion:] + 384
[ERROR]         9   UIKit                               0x0146c526 -[UIApplication scene:didUpdateWithDiff:transitionContext:completion:] + 513
[ERROR]         10  FrontBoardServices                  0x084da475 __80-[FBSSceneImpl updater:didUpdateSettings:withDiff:transitionContext:completion:]_block_invoke_2 + 71
[ERROR]         11  FrontBoardServices                  0x084da1ef __40-[FBSSceneImpl _performDelegateCallOut:]_block_invoke + 54
[ERROR]         12  FrontBoardServices                  0x084ee425 __31-[FBSSerialQueue performAsync:]_block_invoke + 26
[ERROR]         13  CoreFoundation                      0x04aa47a0 __CFRUNLOOP_IS_CALLING_OUT_TO_A_BLOCK__ + 16
[ERROR]         14  CoreFoundation                      0x04a9a0b3 __CFRunLoopDoBlocks + 195
[ERROR]         15  CoreFoundation                      0x04a99f0b __CFRunLoopRun + 2715
[ERROR]         16  CoreFoundation                      0x04a991ab CFRunLoopRunSpecific + 443
[ERROR]         17  CoreFoundation                      0x04a98fdb CFRunLoopRunInMode + 123
[ERROR]         18  GraphicsServices                    0x0514824f GSEventRunModal + 192
[ERROR]         19  GraphicsServices                    0x0514808c GSEventRun + 104
[ERROR]         20  UIKit                               0x0146ee16 UIApplicationMain + 1526
[ERROR]         21  testOpenIn                          0x00017778 main + 456
[ERROR]         22  libdyld.dylib                       0x05436ac9 start + 1
[ERROR] ) 
[ERROR] libc++abi.dylib: terminating with uncaught exception of type NSException
-- End simulator log ---------------------------------------------------------

Details

This appears to be regression since works on 3.3.0.GA/iOS7 but crashes only on 3.4.0.v20140903121714 though there is no crash on 3.4.0.v20140918202513.

Attachments

FileDateSize
testOpenIn_Appc.zip2014-09-24T21:35:09.000+00001880850

Comments

  1. Ingo Muschenetz 2014-09-24

    Not sure what this means: Crashes only on 3.4.0.v20140903121714 though there is no crash on 3.4.0.v20140918202513. That suggests it's fixed, right?
  2. Lee Morris 2017-03-22

    Closing ticket as duplicate and links to the related ticket have been provided above.

JSON Source