{ "id": "131422", "key": "AC-761", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-07-09T22:21:19.000+0000", "created": "2014-06-09T15:11:26.000+0000", "labels": [ "android", "android-4.0", "android-4.3", "android-4.4", "camera", "crash" ], "versions": [], "issuelinks": [], "assignee": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "updated": "2016-03-08T07:37:01.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "h2. Stack trace\r\n{code}\r\njava.lang.RuntimeException: startPreview failed\r\nat android.hardware.Camera.startPreview(Native Method)\r\nat ti.modules.titanium.media.TiCameraActivity$3.onPictureTaken(TiCameraActivity.java:502)\r\nat android.hardware.Camera$EventHandler.handleMessage(Camera.java:692)\r\nat android.os.Handler.dispatchMessage(Handler.java:99)\r\nat android.os.Looper.loop(Looper.java:154)\r\nat android.app.ActivityThread.main(ActivityThread.java:4944)\r\nat java.lang.reflect.Method.invokeNative(Native Method)\r\nat java.lang.reflect.Method.invoke(Method.java:511)\r\nat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:784)\r\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:551)\r\nat dalvik.system.NativeStart.main(Native Method)\r\n{code}", "attachment": [ { "id": "48752", "filename": "Screen Shot 2014-06-09 at 8.10.43 AM.png", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-09T15:11:26.000+0000", "size": 91794, "mimeType": "image/png" } ], "flagged": false, "summary": "Google Play Crash Report: RuntimeException - TiCameraActivity startPreview failed", "creator": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Android 4.4\r\nAndroid 4.3\r\nAndroid 4.1\r\nAndroid 4.0.4\r\nAndroid 4.0.3\r\nTiSDK 3.2.2.GA", "comment": { "comments": [ { "id": "308016", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please provide a simple runnable test case to reproduce the issue.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-09T16:40:31.000+0000", "updated": "2014-06-12T04:27:20.000+0000" }, { "id": "309084", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Ritu,\r\n\r\nHere is the camera code we roughly use. Very straightforward:\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n\tbackgroundColor : \"#FFF\"\r\n});\r\n\r\nvar overlay = Ti.UI.createView({\r\n\tbackgroundColor : \"transparent\",\r\n\theight : Ti.UI.FILL,\r\n\twidth : Ti.UI.FILL\r\n});\r\n\r\noverlay.add(Ti.UI.createView({\r\n\tbackgroundColor : \"red\",\r\n\theight : 20,\r\n\twidth : Ti.UI.FILL\r\n}));\r\n\r\nwin.addEventListener('click', function() {\r\n\tTi.Media.showCamera({\r\n\t\toverlay : overlay,\r\n\t\tsuccess : function(event) {\r\n\t\t\tTi.Media.hideCamera();\r\n\r\n\t\t\t//showApprovalPage(event.media);\r\n\t\t},\r\n\t\tcancel : function(e) {\r\n\t\t},\r\n\t\terror : function(e) {\r\n\t\t},\r\n\t\tsaveToPhotoGallery : false,\r\n\t\tallowEditing : false,\r\n\t\ttransform : null,\r\n\t\tmediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],\r\n\t\tshowControls : false,\r\n\t\tautohide : false,\r\n\t\tanimated : false\r\n\t});\r\n});\r\n\r\nwin.open(); \r\n{code}\r\n\r\nThe showApprovalPage function opens a window with an imageView in it and a button for the user to approve the image.", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T06:41:41.000+0000", "updated": "2014-06-16T06:41:41.000+0000" }, { "id": "311564", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~athorne]!\r\n\r\nDo you mind to test your testcase with 3.3.0? Looks like it's fixed now. I tested your testcase with Moto X, Android 4.4.2, Mobile SDK 3.3.0 \r\n\r\nBest Regards, ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-06-30T06:54:31.000+0000", "updated": "2014-06-30T06:54:31.000+0000" }, { "id": "313102", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "This is fixed in 3.3.0.RC. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-07-09T22:21:19.000+0000", "updated": "2014-07-09T22:21:19.000+0000" }, { "id": "327247", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Mauro Parra-Miranda, I'll try it out. I'm upgrading to 3.4 as we speak. I couldn't reproduce it, only got reports of it from the Play Store, but I'll reply back if I release and get more reports of it. Thank you for closing the loop with me!", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-10-08T03:15:21.000+0000", "updated": "2014-10-08T03:15:21.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }