{ "id": "131420", "key": "AC-1464", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2014-06-30T07:19:46.000+0000", "created": "2014-06-09T14:37:47.000+0000", "labels": [ "android", "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:54.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. Details\r\n* I'm using an overlay with the camera\r\nh2. Stack trace\r\n{code}\r\njava.lang.RuntimeException: Unable to resume activity {com.twogrand.twogrand/ti.modules.titanium.media.TiCameraActivity}: java.lang.NullPointerException\r\nat android.app.ActivityThread.performResumeActivity(ActivityThread.java:2788)\r\nat android.app.ActivityThread.handleResumeActivity(ActivityThread.java:2817)\r\nat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2250)\r\nat android.app.ActivityThread.access$800(ActivityThread.java:135)\r\nat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1196)\r\nat android.os.Handler.dispatchMessage(Handler.java:102)\r\nat android.os.Looper.loop(Looper.java:136)\r\nat android.app.ActivityThread.main(ActivityThread.java:5017)\r\nat java.lang.reflect.Method.invokeNative(Native Method)\r\nat java.lang.reflect.Method.invoke(Method.java:515)\r\nat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)\r\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)\r\nat dalvik.system.NativeStart.main(Native Method)\r\nCaused by: java.lang.NullPointerException\r\nat ti.modules.titanium.media.TiCameraActivity.onResume(TiCameraActivity.java:207)\r\nat android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1192)\r\nat android.app.Activity.performResume(Activity.java:5310)\r\nat android.app.ActivityThread.performResumeActivity(ActivityThread.java:2778)\r\n... 12 more\r\n{code}", "attachment": [ { "id": "48750", "filename": "Screen Shot 2014-06-09 at 7.30.29 AM.png", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-09T14:37:47.000+0000", "size": 146876, "mimeType": "image/png" } ], "flagged": false, "summary": "Google Play Crash Report: RuntimeException - Unable to resume activity TiCameraActivity", "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\nTiSDK 3.2.2.GA", "comment": { "comments": [ { "id": "308018", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please provide a simple runnable test case to reproduce this issue. ", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-09T16:42:43.000+0000", "updated": "2014-06-12T04:26:29.000+0000" }, { "id": "309082", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Ritu, I understand a test case would help but I can't reproduce this issue and was hoping the stack trace would provide some information to help Appcelerator guide me in the right direction debugging this. This is the basic camera code, using an overlay:\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\nMaybe the resume issue is somehow caused by the camera having an overlay? Maybe I should close the camera when the app is paused to avoid this?", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-16T06:32:49.000+0000", "updated": "2014-06-16T06:32:49.000+0000" }, { "id": "311572", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "DUP of TC-4234", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-06-30T07:19:46.000+0000", "updated": "2014-06-30T07:19:46.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }