{ "id": "172229", "key": "AC-5890", "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": "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-11-28T22:33:16.000+0000", "created": "2018-09-16T11:21:17.000+0000", "labels": [ "android", "camera" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-11-28T22:33:16.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "attachment": [ { "id": "65622", "filename": "test_camera.zip", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-20T05:35:07.000+0000", "size": 710410, "mimeType": "application/zip" }, { "id": "65533", "filename": "ti_camera_issue.mp4", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-18T16:22:01.000+0000", "size": 2775275, "mimeType": "video/mp4" }, { "id": "65626", "filename": "ti_camera_issue2.mp4", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-20T15:24:44.000+0000", "size": 6341178, "mimeType": "video/mp4" } ], "flagged": false, "summary": "Android: Camera activity crashes app on some devices", "creator": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "environment": null, "comment": { "comments": [ { "id": "441632", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, I have tried to reproduce the issue in Nokia 6 Android 8.1.0. I wasn't able to reproduce the crash. The camera overlay opens fine. Is this only happening for your HTC A9? any other device this is reproducible? Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-09-17T21:40:35.000+0000", "updated": "2018-09-17T21:40:35.000+0000" }, { "id": "441653", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've updated the example with a simple button to re-open the camera and added a video of my device (sorry for the rotation, it's a recording from the device with scrcpy and it rotates the screen).\r\n\r\nI've tested it on a Samsung A5 (2017) and a Moto G2 without a problem. But as you can see in the 100 comments in the old thread its happening on other devices (e.g. a Nexus 5x, Moto E, Moto G3), too. I'll try to get some other devices to record a log.\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-18T16:44:48.000+0000", "updated": "2018-09-18T16:44:48.000+0000" }, { "id": "441654", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Oh and I don't even need to take a picture! I can just go back (back arrow in the Android menu) after the camera is opened and it will restart the app. So as soon as the camera is opened my app is closed.\r\nSo if I add a log to the MediaModule.java the last thing I see is: {{activity.runOnUiThread(resultHandler);}} in {{launchNativeCamera}} the {{onResult}} in the {{CameraResultHandler}} is never reached. A normal camera route looks like this in the log\r\n{code}\r\n[3695,3695] run\r\n[51,3746] resultHandler\r\n[10768,14514] onResult 1\r\n[5,14519] validateFile\r\n[18,14537] decode\r\n[13,14550] checkAndDeleteDuplicate 240107\r\n[114,14664] validateFile\r\n[0,14664] decode\r\n[18,14682] copyFile\r\n[38,14720] save file\r\n{code}", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-18T17:25:30.000+0000", "updated": "2018-09-18T17:25:30.000+0000" }, { "id": "441663", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Attach a full sample project that can be imported and run on the studio. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-09-18T21:33:15.000+0000", "updated": "2018-09-18T21:33:15.000+0000" }, { "id": "441826", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Project add. \r\n\r\nKeep in mind: the log above was done in a custom SDK where I added a log in every function that is called when opening the Camera. So it won't be visibile in the test app!", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-20T05:37:40.000+0000", "updated": "2018-09-20T05:37:40.000+0000" }, { "id": "441833", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~michael],\r\n\r\nWe are unable to reproduce the issue using your sample test project. Can you please check the sample code from [here|https://gist.github.com/rakhimonimitro/20ee61c0571608a7ffee887bd2517349] and let us know how it goes?", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-09-20T10:19:27.000+0000", "updated": "2018-09-20T10:19:27.000+0000" }, { "id": "441853", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi [~rmitro],\r\nsame with this example:\r\ncompiled, installed: working fine for 4 images (image is shown in the background) then I've closed the app and reopened it took 2 more images and then it restarts and just shows the red background without the image (like a normal app start)\r\n\r\n\r\n{noformat}\r\n[WARN] IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection\r\n[ERROR] TiMedia: (main) [39493,39493] Camera preview is not open, unable to hide\r\n[INFO] Adreno: QUALCOMM build : 6933d31, I73c5708217\r\n[INFO] Adreno: Build Date : 12/28/16\r\n[INFO] Adreno: OpenGL ES Shader Compiler Version: XE031.09.00.04\r\n[INFO] Adreno: Local Branch :\r\n[INFO] Adreno: Remote Branch : quic/LA.BR.1.3.6_rb1.11\r\n[INFO] Adreno: Remote Branch : NONE\r\n[INFO] Adreno: Reconstruct Branch : NOTHING\r\n[INFO] Choreographer: Skipped 36 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 37 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 34 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 34 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 36 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 72 frames! The application may be doing too much work on its main thread.\r\n[WARN] InputMethodManager: com.miga.testcamera spent 1594ms to start processing msg:100\r\n[WARN] IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection\r\n[INFO] Choreographer: Skipped 53 frames! The application may be doing too much work on its main thread.\r\n[ERROR] TiMedia: (main) [11484,50977] Camera preview is not open, unable to hide\r\n[INFO] Adreno: QUALCOMM build : 6933d31, I73c5708217\r\n[INFO] Adreno: Build Date : 12/28/16\r\n[INFO] Adreno: OpenGL ES Shader Compiler Version: XE031.09.00.04\r\n[INFO] Adreno: Local Branch :\r\n[INFO] Adreno: Remote Branch : quic/LA.BR.1.3.6_rb1.11\r\n[INFO] Adreno: Remote Branch : NONE\r\n[INFO] Adreno: Reconstruct Branch : NOTHING\r\n[WARN] art: Suspending all threads took: 6.290ms\r\n[INFO] art: Background partial concurrent mark sweep GC freed 266(8KB) AllocSpace objects, 1(38MB) LOS objects, 23% free, 52MB/68MB, paused 7.126ms total 54.943ms\r\n[INFO] Choreographer: Skipped 38 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 41 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 31 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 72 frames! The application may be doing too much work on its main thread.\r\n[WARN] InputMethodManager: com.miga.testcamera spent 1408ms to start processing msg:100\r\n[WARN] IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection\r\n[INFO] Choreographer: Skipped 39 frames! The application may be doing too much work on its main thread.\r\n[ERROR] TiMedia: (main) [17680,68657] Camera preview is not open, unable to hide\r\n[INFO] Adreno: QUALCOMM build : 6933d31, I73c5708217\r\n[INFO] Adreno: Build Date : 12/28/16\r\n[INFO] Adreno: OpenGL ES Shader Compiler Version: XE031.09.00.04\r\n[INFO] Adreno: Local Branch :\r\n[INFO] Adreno: Remote Branch : quic/LA.BR.1.3.6_rb1.11\r\n[INFO] Adreno: Remote Branch : NONE\r\n[INFO] Adreno: Reconstruct Branch : NOTHING\r\n[WARN] art: Suspending all threads took: 5.511ms\r\n[INFO] art: Background sticky concurrent mark sweep GC freed 409(53KB) AllocSpace objects, 4(80KB) LOS objects, 0% free, 90MB/90MB, paused 7.380ms total 30.791ms\r\n[INFO] Choreographer: Skipped 39 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 41 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 31 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 34 frames! The application may be doing too much work on its main thread.\r\n[WARN] InputMethodManager: com.miga.testcamera spent 806ms to start processing msg:100\r\n[WARN] IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection\r\n[INFO] Choreographer: Skipped 41 frames! The application may be doing too much work on its main thread.\r\n[ERROR] TiMedia: (main) [9678,78335] Camera preview is not open, unable to hide\r\n[INFO] Adreno: QUALCOMM build : 6933d31, I73c5708217\r\n[INFO] Adreno: Build Date : 12/28/16\r\n[INFO] Adreno: OpenGL ES Shader Compiler Version: XE031.09.00.04\r\n[INFO] Adreno: Local Branch :\r\n[INFO] Adreno: Remote Branch : quic/LA.BR.1.3.6_rb1.11\r\n[INFO] Adreno: Remote Branch : NONE\r\n[INFO] Adreno: Reconstruct Branch : NOTHING\r\n[INFO] art: Do partial code cache collection, code=21KB, data=30KB\r\n[INFO] art: After code cache collection, code=21KB, data=30KB\r\n[INFO] art: Increasing code cache capacity to 128KB\r\n[INFO] Choreographer: Skipped 41 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 35 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 69 frames! The application may be doing too much work on its main thread.\r\n[WARN] InputMethodManager: com.miga.testcamera spent 1300ms to start processing msg:100\r\n[WARN] IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection\r\n[INFO] Choreographer: Skipped 31 frames! The application may be doing too much work on its main thread.\r\n[ERROR] TiMedia: (main) [8108,86443] Camera preview is not open, unable to hide\r\n[INFO] Adreno: QUALCOMM build : 6933d31, I73c5708217\r\n[INFO] Adreno: Build Date : 12/28/16\r\n[INFO] Adreno: OpenGL ES Shader Compiler Version: XE031.09.00.04\r\n[INFO] Adreno: Local Branch :\r\n[INFO] Adreno: Remote Branch : quic/LA.BR.1.3.6_rb1.11\r\n[INFO] Adreno: Remote Branch : NONE\r\n[INFO] Adreno: Reconstruct Branch : NOTHING\r\n[DEBUG] TiBaseActivity: (main) [2066,88509] onBackPressed: exit\r\n[DEBUG] Window: Window is closed normally.\r\n[INFO] Choreographer: Skipped 30 frames! The application may be doing too much work on its main thread.\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity create, savedInstanceState: null\r\n[WARN] TiApplication: (main) [281,281] Registering module with name already in use.\r\n[INFO] TiApplication: (main) [196,477] Analytics have been disabled\r\n[INFO] TiRootActivity: (main) [0,0] checkpoint, on root activity resume. activity = com.miga.testcamera.Test_cameraActivity@58268ef\r\n[DEBUG] Window: Checkpoint: postWindowCreated()\r\n[INFO] Adreno: QUALCOMM build : 6933d31, I73c5708217\r\n[INFO] Adreno: Build Date : 12/28/16\r\n[INFO] Adreno: OpenGL ES Shader Compiler Version: XE031.09.00.04\r\n[INFO] Adreno: Local Branch :\r\n[INFO] Adreno: Remote Branch : quic/LA.BR.1.3.6_rb1.11\r\n[INFO] Adreno: Remote Branch : NONE\r\n[INFO] Adreno: Reconstruct Branch : NOTHING\r\n[WARN] IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection\r\n[ERROR] TiMedia: (main) [6826,6826] Camera preview is not open, unable to hide\r\n[INFO] Adreno: QUALCOMM build : 6933d31, I73c5708217\r\n[INFO] Adreno: Build Date : 12/28/16\r\n[INFO] Adreno: OpenGL ES Shader Compiler Version: XE031.09.00.04\r\n[INFO] Adreno: Local Branch :\r\n[INFO] Adreno: Remote Branch : quic/LA.BR.1.3.6_rb1.11\r\n[INFO] Adreno: Remote Branch : NONE\r\n[INFO] Adreno: Reconstruct Branch : NOTHING\r\n[INFO] Choreographer: Skipped 36 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 46 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 30 frames! The application may be doing too much work on its main thread.\r\n[INFO] Choreographer: Skipped 69 frames! The application may be doing too much work on its main thread.\r\n[WARN] InputMethodManager: com.miga.testcamera spent 1545ms to start processing msg:100\r\n[WARN] IInputConnectionWrapper: reportFullscreenMode on inexistent InputConnection\r\n[INFO] Choreographer: Skipped 49 frames! The application may be doing too much work on its main thread.\r\n\r\n{noformat}\r\n\r\nalso added a new video. The app restart is not required, it sometimes happens right away when I start the app for the first time, sometimes only after a few switching of apps. \r\n", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-20T15:24:06.000+0000", "updated": "2018-09-20T15:24:06.000+0000" }, { "id": "441919", "author": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Hello,\r\nThanks for your feedback. Did you test using the sample code provided by us? I tested this issue and try to closed the app and reopened it took 4/5 more images and then it works as expected. Can you please share your environment details ? I am using SDK 7.4.0.GA and Huawei Y9 2018(Android 8) for testing.", "updateAuthor": { "name": "rmitro", "key": "rmitro", "displayName": "Rakhi Mitro", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2018-09-23T06:42:52.000+0000", "updated": "2018-09-23T06:42:52.000+0000" }, { "id": "441921", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "As you hopefully saw in the last video I was testing your code.\r\n\r\nMy details:\r\n{code}\r\nOperating System\r\n Name = Fedora\r\n Version = 28\r\n Architecture = 64bit\r\n # CPUs = 12\r\n Memory = 15.3GB\r\n\r\nNode.js\r\n Node.js Version = 8.11.4\r\n npm Version = 5.6.0\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.13\r\n Core Package = 7.0.6\r\n\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\n node-appc Version = 0.2.44\r\n\r\nJava Development Kit\r\n Version = 1.8.0_172\r\n Java Home = /usr/java/latest\r\n\r\n{code}\r\n\r\nHTC A9, 7.0", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-09-23T09:37:48.000+0000", "updated": "2018-09-23T09:37:48.000+0000" }, { "id": "441927", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~michael], I tested the sample code provided by [~rmitro], I wasn't able to reproduce the issue as you described. For me, and Rakhi the app works as expected before and after closing and reopening the app. I am able to see the same behavior after the app reopens. Each time after taking the image the image is shown in the window. No red screen (like the first open). I am testing on Nokia 6 (Android 8.1.0). Can you confirm this on any Android 8 version? We need to make sure this is happing in lower version than Android 8. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2018-09-23T20:44:04.000+0000", "updated": "2018-09-23T20:44:04.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }