{ "id": "170011", "key": "TIMOB-25392", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2018-07-19T13:12:32.000+0000", "created": "2017-10-13T14:54:40.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "crash", "ios", "ipad", "photo" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2018-07-19T13:12:33.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "Nothing special with my code...this is hit the first time and it works...the second..app crashes\r\n\r\n{code:js}\r\nTi.Media.showCamera({\r\n success: function(event) {\r\n // called when media returned from the camera\r\n Ti.API.info('Our type was: ' + event.mediaType);\r\n if (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {\r\n\r\n var photo = event.media;\r\n if (photo != null) {\r\n\r\n }\r\n } else {\r\n\r\n }\r\n },\r\n cancel: function() {\r\n\r\n },\r\n error: function(error) {\r\n // called when there's an error\r\n var a = Titanium.UI.createAlertDialog({\r\n title: 'Camera'\r\n });\r\n if (error.code == Titanium.Media.NO_CAMERA) {\r\n a.setMessage('Please run this test on device');\r\n } else {\r\n a.setMessage('Unexpected error: ' + error.code);\r\n }\r\n a.show();\r\n },\r\n saveToPhotoGallery: false,\r\n allowEditing: false,\r\n mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO]\r\n});\r\n{code}\r\n\t\t", "attachment": [], "flagged": false, "summary": "iPad Crash: Taking a photo will cause app to crash after the first successful attempt", "creator": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1053, "state": "closed", "name": "2018 Sprint 15 SDK", "startDate": "2018-07-15T21:52:05.453Z", "endDate": "2018-07-29T21:52:00.000Z", "completeDate": "2018-07-29T22:25:11.723Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "429082", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Titanium SDK-version used? iOS version used? And does it work on the iPhone?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-13T19:09:32.000+0000", "updated": "2017-10-13T19:11:31.000+0000" }, { "id": "429083", "author": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here are my specs from build\r\n\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.12.6\r\n Architecture = 64bit\r\n # CPUs = 8\r\n Memory = 17179869184\r\nNode.js\r\n Node.js Version = 4.8.4\r\n npm Version = 2.15.11\r\nTitanium CLI\r\n CLI Version = 5.0.14\r\nTitanium SDK\r\n SDK Version = 6.2.2.GA\r\n SDK Path = /Users/pladis/Library/Application Support/Titanium/mobilesdk/osx/6.2.2.GA\r\n Target Platform = iphone\r\n\r\n\r\n****Note after moving to ios11 and the new SDK...take photo was crashing on iPhone when i had the setting set to \"Save to Phone\" by taking that off...iphone works fine....but my users out in the field are complaining about iPad crashes", "updateAuthor": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-13T19:13:52.000+0000", "updated": "2017-10-13T19:13:52.000+0000" }, { "id": "429084", "author": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "IOS is 9.3.5", "updateAuthor": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-13T19:14:14.000+0000", "updated": "2017-10-13T19:14:14.000+0000" }, { "id": "429085", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "The iOS 11 crash is because Apple requires the new key {{NSPhotoLibraryAddUsageDescription}} in addition to {{NSPhotoLibraryUsageDescription}} in order to save photos to the gallery. Ti SDK 6.3.0 will throw a readable error log before Apple let's it crash. For the iOS 9.3.5 iPad crash, we'll try to reproduce it. And please add a crash trace-log", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-13T19:23:02.000+0000", "updated": "2017-10-13T19:31:04.000+0000" }, { "id": "429087", "author": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So I'm running on an actually device...it just stops tracing.. says application ended. Any other suggestions?\r\n\r\nI added this: NSPhotoLibraryAddUsageDescription but i have since turned off all saving to library feature. and the iPad is still crashing", "updateAuthor": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-13T19:33:19.000+0000", "updated": "2017-10-13T19:33:19.000+0000" }, { "id": "429089", "author": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Also...attaching a photo from library seems to work fine...its only taking a photo.", "updateAuthor": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-13T19:46:05.000+0000", "updated": "2017-10-13T19:46:05.000+0000" }, { "id": "429098", "author": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "my users had not issue with 6.2.0 should i move the app back?", "updateAuthor": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-13T21:46:49.000+0000", "updated": "2017-10-13T21:46:49.000+0000" }, { "id": "429106", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Thank you for the insight Peter! If it did not happen in 6.2.0, then that's even more interesting. If possible, are you able to see if it works in 6.2.1? I checked the underlaying code but it did not change anything related in Ti.Media, so it has to to something different to look into.\r\n\r\n*EDIT*: Both 6.2.1 and 6.2.2 did not change any iOS sources (only CLI-changes and Android-fixes). Are you sure 6.2.0 works fine? Also, does using Xcode 8 change the situation? Trying hard to troubleshoot this.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-10-15T08:37:47.000+0000", "updated": "2017-10-15T08:40:23.000+0000" }, { "id": "429107", "author": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "OK so i went back to 6.2.1 and it works. Moving to 6.2.0...first time i tried to take a picture it crashed....Same code..same device", "updateAuthor": { "name": "peterladis", "key": "peterladis", "displayName": "Peter Ladis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-10-15T13:29:21.000+0000", "updated": "2017-10-15T13:29:21.000+0000" }, { "id": "439343", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving as cannot reproduce, since our internal tests all passed and the kind of error suggests missing Info.plist permissions.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-07-19T13:12:33.000+0000", "updated": "2018-07-19T13:12:33.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }