Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-17756

iOS8: Tapping "open in" function in Safari leads to uncaught exception 'NSInvalidArgumentException'

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: Release 3.4.0
    • Component/s: iOS
    • Labels:
    • Environment:

      iOS 8 GM
      TiSDK 3.4.0

      Description

      Issue description

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

      Steps to reproduce
      1. Install sample app to iOS simulator
      2. Go to Safari and put this URL: http://www.act.org/compass/sample/pdf/reading.pdf
      3. The app Opens, Splash Screen appears and quickly crashes.
      4. 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

          Issue Links

            Activity

              People

              • Assignee:
                ingo Ingo Muschenetz
                Reporter:
                egomez Eduardo Gomez (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19256
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code