{ "id": "141662", "key": "TIMOB-18214", "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": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-12-17T20:44:58.000+0000", "created": "2014-12-16T17:07:38.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [], "versions": [], "issuelinks": [ { "id": "44232", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "141812", "key": "TIMOB-18249", "fields": { "summary": "64bit iOS devices: Intermittent crashes with SDK 3.5.0", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-12-23T16:37:08.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.Issue Description\r\nInvoking Ti.Media.showCamera works perfect if we do a command line build of our app on device. If we take the provided sample app and then publish AdHoc then it fails.\r\n\r\nh6.Steps to reproduce\r\n1. Launch sample app (Run As > Device)\r\n2. Hit Camera Button to Take a photograph\r\n3. Hit Use Photo and monitor logs\r\n4. Image Dimensions are correctly returned (running App on device iPhone5s):\r\n\r\n{quote}\r\n[INFO] : Image Captured, Dims 2448,3264 Aspect Ratio: 0.75\r\n[INFO] : Image Captured, Dims 2448,3264 Aspect Ratio: 0.75\r\n{quote}\r\n\r\n5. Repeat all steps under Ad Hoc mode. \r\n6. Logs are slightly different now: \r\n\r\n{quote}\r\n[ERROR] : assertion failed: 12A366: libxpc.dylib + 71820 [4BC9CA3D-4DEE-314C-ADBF-53BDCEEFE45C]: 0x7d \r\n[ERROR] : Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates. \r\n[ERROR] : Image Captured, Dims: undefined,undefined Aspect Ratio: NaN \r\n[ERROR] : Image Captured, Dims: undefined,undefined Aspect Ratio: NaN \r\n{quote} \r\n\r\nh6.Test Case\r\n{code}\r\n(function() {\r\n\tTitanium.Media.showCamera({\r\n\t\tsuccess : function(event) {\r\n\t\t\tvar capturedImage = event.media;\r\n\t\t\tTi.API.info('Image Captured, Dims: ' + event.media.width + ',' + event.media.height + \" Aspect Ratio: \" + event.media.width / event.media.height);\r\n\t\t\tTi.API.info('Image Captured, Dims: ' + capturedImage.width + ',' + capturedImage.height + \" Aspect Ratio: \" + capturedImage.width / capturedImage.height);\r\n\t\t},\r\n\t\tcancel : function() {\r\n\t\t},\r\n\t\terror : function(error) {\r\n\t\t},\r\n\t\tsaveToPhotoGallery : false,\r\n\t\tallowEditing : false,\r\n\t\tmediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],\r\n\t\tshowControls : true,\r\n\t\tautohide : false\r\n\t});\r\n})(); \r\n{code}\r\n\r\nh6.Device Output (Ad Hoc Distribution)\r\niPhone 4 iOS7.1\r\n{quote}\r\nDec 16 09:46:46 lAlO wifid[15] : \r\nDec 16 09:46:51 lAlO Super.Simple[208] : [INFO] Image Captured, Dims: 1936,2592 Aspect Ratio: 0.7469135802469136\r\nDec 16 09:46:51 lAlO Super.Simple[208] : [INFO] Image Captured, Dims: 1936,2592 Aspect Ratio: 0.7469135802469136\r\n{quote}\r\n\r\niPhone 5s iOS 8.1\r\n{quote}\r\nDec 16 10:36:41 iPhone Super.Simple[253] : [INFO] Image Captured, Dims: undefined,undefined Aspect Ratio: NaN\r\nDec 16 10:36:41 iPhone Super.Simple[253] : [INFO] Image Captured, Dims: undefined,undefined Aspect Ratio: NaN\r\n{quote}\r\n\r\n", "attachment": [], "flagged": false, "summary": "iOS8: Titanium.Media.showCamera unexpected behaviour on AdHoc distribution", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "iOS 8.1\r\nTiSDK Alpha V2 - 3.5.0.v20141205222614", "closedSprints": [ { "id": 272, "state": "closed", "name": "2014 Sprint 25 SDK", "startDate": "2014-12-08T22:49:31.264Z", "endDate": "2014-12-22T01:00:00.000Z", "completeDate": "2015-01-05T18:18:28.523Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "336617", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Able to reproduce with iOS 8.0.2 Device (iPhone 5s) with the following:\r\nSDK: 3.5.0.v20141205222614 <- reported config\r\nSDK: 3.5.0.v20141215113314 <- latest 3_5_X\r\n\r\nUnable to reproduce on iOS 8.1.1 Device (iPhone 4s) with the following:\r\nSDK: 3.5.0.v20141215113314\r\n\r\nLooks like a form-factor related error. Will continue to investigate. ", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-16T19:34:38.000+0000", "updated": "2014-12-16T19:34:38.000+0000" }, { "id": "336647", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ok, after a bit more research, I think I have a pattern:\r\n\r\niOS 8.1.1 or greater: Snapshot error which looks like this:\r\n{code}\r\nDec 16 13:07:54 Data-nerd timob18214[386] : assertion failed: 12B435: libxpc.dylib + 51955 [6D3E948A-39BD-3548-AA90-38575933BDEF]: 0x7d\r\nDec 16 13:07:54 Data-nerd Unknown[386] : \r\nDec 16 13:07:56 Data-nerd timob18214[386] : Snapshotting a view that has not been rendered results in an empty snapshot. Ensure your view has been rendered at least once before snapshotting or snapshot after screen updates.\r\n{code}\r\n\r\nRetina display = true: NaN which looks like this:\r\n{code}\r\nDec 16 13:16:57 Garfunkel timob18214[251] : [INFO] Image Captured, Dims: undefined,undefined Aspect Ratio: NaN\r\nDec 16 13:16:57 Garfunkel timob18214[251] : [INFO] Image Captured, Dims: undefined,undefined Aspect Ratio: NaN\r\n{code}\r\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-16T21:24:44.000+0000", "updated": "2014-12-16T21:24:44.000+0000" }, { "id": "336660", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "And a final note. Up until now, all testing was packaged ad-hoc.\r\n\r\nWith \"run on device\", I saw a difference in behavior in some cases:\r\nNaN not present in device build, present in Ad-hoc for:\r\niPhone 5s - \r\niPad Mini Retina 7.0.3 - \r\niPhone 6+ - \r\n\r\nThis is actually related to 64 bit capable hardware. On 32 bit only hardware, you don't get the NaN ", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-16T22:08:23.000+0000", "updated": "2014-12-17T22:39:57.000+0000" }, { "id": "336861", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pulls pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6497\r\n3_5_X - https://github.com/appcelerator/titanium_mobile/pull/6498", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-17T20:09:44.000+0000", "updated": "2014-12-17T20:09:44.000+0000" }, { "id": "336917", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Wrote TIMOB-18249 to track the other console output not related to the NaN issue.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-17T22:59:00.000+0000", "updated": "2014-12-17T22:59:00.000+0000" }, { "id": "336924", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed in SDK 3.5.0.v2014121712411 using the following mix of 64 bit and non hardware:\r\niPhone 4s iOS 8.1.1\r\niPhone 5c iOS 7.1\r\niPhone 5s iOS 8.0.2\r\niPhone 6+ iOS 8.1\r\niPad mini 1st gen iOS 8.1\r\niPad Air 2 iOS 8.2 beta 2", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-17T23:29:34.000+0000", "updated": "2014-12-17T23:29:34.000+0000" }, { "id": "337411", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Additional PR's merged\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6523\r\n3_5_X - https://github.com/appcelerator/titanium_mobile/pull/6524", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-12-23T16:37:08.000+0000", "updated": "2014-12-23T16:37:08.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }