Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19888] iOS 9: 3D touch peek/preview from native gallery causes app to crash

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionNot Our Bug
Resolution Date2015-11-06T23:33:06.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sn/a
ComponentsiOS
Labelsqe-5.1.0
ReporterHarry Bryant
AssigneeEric Merriman
Created2015-11-06T20:01:21.000+0000
Updated2017-03-24T18:58:17.000+0000

Description

When the iOS native gallery is accessed from with an app, using 3D touch features peek/preview on an image will cause the app to crash with the following error:
[ERROR] :  The application has crashed with an uncaught exception 'NSInvalidArgumentException'.
[ERROR] :  Reason:
[ERROR] :  +[NSObject previewingContext:viewControllerForLocation:]: unrecognized selector sent to class 0x1a075a020
[ERROR] :  Stack trace:
[ERROR] :  
[ERROR] :  0   CoreFoundation                      0x0000000183f2cf48 <redacted> + 124
[ERROR] :  1   libobjc.A.dylib                     0x00000001993d7f80 objc_exception_throw + 56
[ERROR] :  2   CoreFoundation                      0x0000000183f33b54 <redacted> + 0
[ERROR] :  3   UIKit                               0x0000000189cf438c <redacted> + 172
[ERROR] :  4   UIKit                               0x0000000189847d7c <redacted> + 248
[ERROR] :  5   UIKit                               0x0000000189afcd4c <redacted> + 224
[ERROR] :  6   UIKit                               0x0000000189afd848 <redacted> + 136
[ERROR] :  7   UIKit                               0x0000000189afe8c0 <redacted> + 100
[ERROR] :  8   UIKit                               0x0000000189a3b330 <redacted> + 164
[ERROR] :  9   UIKit                               0x0000000189664b5c <redacted> + 172
[ERROR] :  10  UIKit                               0x00000001894f285c <redacted> + 784
[ERROR] :  11  UIKit                               0x0000000189a3c70c <redacted> + 72
[ERROR] :  12  UIKit                               0x00000001894b18b8 <redacted> + 372
[ERROR] :  13  UIKit                               0x00000001894ae63c <redacted> + 2404
[ERROR] :  14  UIKit                               0x00000001894f06cc <redacted> + 1132
[ERROR] :  15  UIKit                               0x00000001894efcc8 <redacted> + 764
[ERROR] :  16  UIKit                               0x00000001894c04a4 <redacted> + 248
[ERROR] :  17  UIKit                               0x00000001894be76c <redacted> + 5528
[ERROR] :  18  CoreFoundation                      0x0000000183ee4544 <redacted> + 24
[ERROR] :  19  CoreFoundation                      0x0000000183ee3fd8 <redacted> + 540
[ERROR] :  20  CoreFoundation                      0x0000000183ee1cd8 <redacted> + 724
[ERROR] :  21  CoreFoundation                      0x0000000183e10ca0 CFRunLoopRunSpecific + 384
[ERROR] :  22  GraphicsServices                    0x000000018f394088 GSEventRunModal + 180
[ERROR] :  23  UIKit                               0x0000000189528ffc UIApplicationMain + 204
[ERROR] :  24  i3DtouchBug                         0x0000000100085aa8 i3DtouchBug + 23208
[ERROR] :  25  libdyld.dylib                       0x0000000199c1a8b8 <redacted> + 4
[ERROR] :  *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '+[NSObject previewingContext:viewControllerForLocation:]: unrecognized selector sent to class 0x1a075a020'
[ERROR] :  *** First throw call stack:
[ERROR] :  (0x183f2cf48 0x1993d7f80 0x183f33b54 0x189cf438c 0x189847d7c 0x189afcd4c 0x189afd848 0x189afe8c0 0x189a3b330 0x189664b5c 0x1894f285c 0x189a3c70c 0x1894b18b8 0x1894ae63c 0x1894f06cc 0x1894efcc8 0x1894c04a4 0x1894be76c 0x183ee4544 0x183ee3fd8 0x183ee1cd8 0x183e10ca0 0x18f394088 0x189528ffc 0x100085aa8 0x199c1a8b8)

Steps to Reproduce:

1. Create a classic app. 2. Include Ti.Media.openPhotoGallery(); in app.js. 3. Build project to either 6S or 6S + device. 4.Navigate to an image and press with force to initiate 3D touch.

*Actual Result:*

App will crash immediately upon 3D touch.

*Expected Result:*

App should not crash, and open up image preview.

Comments

  1. Hans Knöchel 2015-11-06

    iOS issue: * https://forums.developer.apple.com/thread/21932 * http://stackoverflow.com/questions/33331758/uiimagepickercontroller-crashing-on-force-touch
  2. Lee Morris 2017-03-24

    Closing ticket with reference to the previous comments.

JSON Source