{ "id": "106605", "key": "TIMOB-12848", "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": "15931", "description": "2014 Sprint 05", "name": "2014 Sprint 05", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "15933", "description": "2014 Sprint 05 Core", "name": "2014 Sprint 05 Core", "archived": true, "released": true, "releaseDate": "2014-03-14" }, { "id": "18414", "description": "", "name": "Release 6.2.0", "archived": false, "released": true, "releaseDate": "2017-09-13" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-29T21:08:52.000+0000", "created": "2012-12-17T05:46:41.000+0000", "epic": { "id": 105183, "key": "TIMOB-11818", "name": "Android: Camera Bugs", "summary": "Android: Address deficiencies in the Camera implementation", "color": { "key": "color_1" }, "done": false }, "priority": { "name": "Critical", "id": "1" }, "labels": [ "qe-closed-3.3.0", "triage" ], "versions": [ { "id": "15419", "description": "2013 Sprint 09 Core", "name": "2013 Sprint 09 Core", "archived": true, "released": true, "releaseDate": "2013-05-06" }, { "id": "15107", "description": "2013 Sprint 09", "name": "2013 Sprint 09", "archived": true, "released": true, "releaseDate": "2013-05-06" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "35343", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "77656", "key": "TIMOB-4899", "fields": { "summary": "Android: Camera crashes Sony Ericsson Xperia Arc Android 2.3.2, 2.3.3 with all branches", "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 } } } }, { "id": "33324", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "92454", "key": "TIMOB-9363", "fields": { "summary": "Android: Application forced close after taking picture from camera or selecting picture from gallery on first load.", "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 } } } }, { "id": "35344", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "105645", "key": "TIMOB-11887", "fields": { "summary": "Android: Media - Application crashes on Motorola RAZR i ", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "54633", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "166770", "key": "TIMOB-24528", "fields": { "summary": "Android: Fails to load images that exceed GPU max texture size", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "26868", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "103377", "key": "AC-1984", "fields": { "summary": "Android: Titanium.Media.showCamera crashes for pictures of 6MP or more", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "26873", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "99055", "key": "TIMOB-10411", "fields": { "summary": "Android: showCamera - does not work on HTC Droid Incredible and Droid Incredible 2 running Android 2.3.4", "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 } } } }, { "id": "32637", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "116736", "key": "TIMOB-14533", "fields": { "summary": "Android: Picture capture returns last photo in gallery, not the one just captured", "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 } } } }, { "id": "35491", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "126991", "key": "TIMOB-16524", "fields": { "summary": "Android: Alert dialog appears behind window", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } }, { "id": "26871", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "105978", "key": "TIMOB-11959", "fields": { "summary": "Android: ShowCamera crashes application on \"Sony Ericsson Xperia u\"", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2018-08-31T14:32:11.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "Call Ti.Media.showCamera and the camera opens up fine, takes the picture fine, then click ok, and the app crashes before reaching the success function.\r\n\r\nThe picture does manage to get saved into the photo gallery.\r\n\r\nSample code. Paste this into a new Android application.\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\nvar imageView = Ti.UI.createImageView({height: Ti.UI.FILL, width: Ti.UI.Fill});\r\nwin.add(imageView);\r\n\tTitanium.Media.showCamera({\r\n \r\n\t\tsuccess:function(event)\r\n\t\t{\r\n\t\t\tTi.API.info('#### Camera Success');\r\n\t\t\tvar cropRect = event.cropRect;\r\n\t\t\tvar image = event.media;\r\n\t\t\tTi.API.info(image.length);\r\n\t\t\tvar filename = Titanium.Filesystem.tempDirectory + \"/\"+ 'camera_photo' + new Date().getTime() + \".png\";\r\n\t\t\tTi.API.info(filename);\r\n\t\t\tvar f = Titanium.Filesystem.getFile(filename);\r\n\t\t\tTi.API.info(f.nativePath);\r\n\t\t\tif (f.exists()) {\r\n\t\t\t\tTi.API.info('The file exist , trying to delete it before using it :' + f.deleteFile());\r\n\t\t\t\tf = Titanium.Filesystem.getFile(filename);\r\n\t\t\t}\r\n\t\t\tf.write(image);\r\n\t\t\talert('Camera Success! The file size is '+f.size+' bytes.\\n Now trying to assign it to an image on the screen (this may fail for hi res images)')\r\n\t\t\timageView.image = f.nativePath;\r\n\t\t},\r\n\t\tcancel:function()\r\n\t\t\r\n\t\t{\r\n\t\t\tTi.API.info('#### Camera Cancel');\r\n\t\t},\r\n\t\terror:function(error)\r\n\t\t{\r\n\t\t\t// create alert\r\n\t\t\tTi.API.info('#### Camera Error');\r\n\t\t\tvar a = Titanium.UI.createAlertDialog({title:'Camera'});\r\n \r\n\t\t\t// set message\r\n\t\t\tif (error.code == Titanium.Media.NO_CAMERA)\r\n\t\t\t{\r\n\t\t\t\ta.setMessage('Device does not have video recording capabilities');\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ta.setMessage('Unexpected error: ' + error.code);\r\n\t\t\t}\r\n \r\n\t\t\t// show alert\r\n\t\t\ta.show();\r\n\t\t},\r\n\t\tallowEditing:true\r\n\t});\r\nwin.open();\r\n{code}", "attachment": [ { "id": "61446", "filename": "camera_crash_android.txt", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-04T14:04:44.000+0000", "size": 432432, "mimeType": "text/plain" } ], "flagged": false, "summary": "Android: Using the camera on certain devices causes the app to crash", "creator": { "name": "jmlewis1", "key": "jmlewis1", "displayName": "Justin Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jmlewis1", "key": "jmlewis1", "displayName": "Justin Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Motorola Droid HD Razr Maxx running Android 4.1.1", "closedSprints": [ { "id": 920, "state": "closed", "name": "2017 Sprint 14 SDK", "startDate": "2017-07-02T16:29:41.455Z", "endDate": "2017-07-16T16:29:00.000Z", "completeDate": "2017-07-17T14:39:47.328Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "231673", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Justin,\r\n\r\nThanks for the report. If you could provide a reproducible test case then I'll see about escalating this.\r\n\r\nCheers.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-17T18:12:11.000+0000", "updated": "2012-12-17T18:12:11.000+0000" }, { "id": "232762", "author": { "name": "jmlewis1", "key": "jmlewis1", "displayName": "Justin Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The KitchenSink app shows this behavior on my Motorola Droid HD Maxx.", "updateAuthor": { "name": "jmlewis1", "key": "jmlewis1", "displayName": "Justin Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-29T00:10:42.000+0000", "updated": "2012-12-29T00:10:42.000+0000" }, { "id": "234055", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Allow me to help a little:\n\nhttp://developer.appcelerator.com/question/143949/camera-shuts-down-application\n\n", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-01-11T19:26:33.000+0000", "updated": "2013-01-11T19:26:33.000+0000" }, { "id": "234322", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "The success event is never fired. The app restarts, no exception is thrown, coming back from the media intent. This occurs with the camera and from the gallery both.\r\n\r\nSometimes the device logs shows an error about the intent being 'out-of-order'.\r\n\r\nUsed Kitchen sink code in full from github.\r\n\r\nUsed a stripped down single file sample of the kitchen sink code (added image view since on high end systems, an out of memory error is tossed when trying to load a 3mb image as the window background) https://gist.github.com/4527649\r\n\r\nClient is testing on a Razr Maxx running 4.1.2\r\nSample code built with 2.1.4 and 3.0.0GA", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-01-15T03:46:32.000+0000", "updated": "2013-01-15T03:51:17.000+0000" }, { "id": "239541", "author": { "name": "jmlewis1", "key": "jmlewis1", "displayName": "Justin Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Is there any update, or ETA on this?", "updateAuthor": { "name": "jmlewis1", "key": "jmlewis1", "displayName": "Justin Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-23T19:19:06.000+0000", "updated": "2013-02-23T19:19:06.000+0000" }, { "id": "239542", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Lost a client over this...", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-02-23T19:33:40.000+0000", "updated": "2013-02-23T19:33:40.000+0000" }, { "id": "239663", "author": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I will escalate this now. Sorry for the inconvenience.", "updateAuthor": { "name": "dsefton", "key": "dsefton", "displayName": "Daniel Sefton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-25T17:43:40.000+0000", "updated": "2013-02-25T17:43:40.000+0000" }, { "id": "242497", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I see this is marked as a regression. When did it last work for people (if known)?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-15T18:58:57.000+0000", "updated": "2013-03-15T18:58:57.000+0000" }, { "id": "242719", "author": { "name": "jmlewis1", "key": "jmlewis1", "displayName": "Justin Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've never seen this functionality work. I've been developing with Appcelerator since November of 2012, I don't remember the released API version then. Since then I've used tried every released version of the API, and I've tried several development versions with no luck.", "updateAuthor": { "name": "jmlewis1", "key": "jmlewis1", "displayName": "Justin Lewis", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T18:53:15.000+0000", "updated": "2013-03-18T18:53:15.000+0000" }, { "id": "242735", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "Ingo,\r\n\r\nSample code listed above works on some devices, but fails consistently on the Razr Maxx, occasionally on the DroidX, never on an S3, Droid Pro, or a Droid 2.\r\nOne client dumped Titanium curses Appcelerator's name at every opportunity because of this, and the MULTI-MONTH queue delay didn't help.\r\n\r\n\r\nsf\r\n\r\n", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-18T20:15:58.000+0000", "updated": "2013-03-18T20:15:58.000+0000" }, { "id": "242762", "author": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified the issue on Motorola droid Razr HD running android 4.0.4 & I am able to reproduce the issue.\r\nThe kitchensink app crashes & restarts as soon as we take the pic & finalize it. Also, pic taken gets saved in the picture gallery of the device.\r\nI noticed that after taking the pic we have to finalize it by taping on a tick mark, which is not so common on many phones.Not sure whether this would be causing the crash.\r\n\r\nVerified the issue on the environment below:\r\nTi sdk : 3.0.0 GA\r\nTi studio : 3.0.2 stable\r\nApp used : kitchensink\r\n", "updateAuthor": { "name": "lokeshchdhry", "key": "lokeshchdhry", "displayName": "Lokesh Choudhary", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-03-18T21:18:42.000+0000", "updated": "2013-03-18T22:34:57.000+0000" }, { "id": "243088", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "https://github.com/appcelerator/titanium_mobile/pull/3992", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-20T00:58:57.000+0000", "updated": "2013-03-20T00:58:57.000+0000" }, { "id": "244356", "author": { "name": "jeromywaldron", "key": "jeromywaldron", "displayName": "Jeromy Waldron", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Was this tested on a RAZR Maxx? I pulled the latest SDK (3.1.0.v20130327075056) from the CI builds and found that the camera crashes as soon as our app calls it. Other non-Moto devices that we tried seem to work properly. That is slightly different than the symptoms which created the ticket but it certainly doesn't appear usable yet either.", "updateAuthor": { "name": "jeromywaldron", "key": "jeromywaldron", "displayName": "Jeromy Waldron", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T19:04:20.000+0000", "updated": "2013-03-27T19:04:20.000+0000" }, { "id": "244365", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This was only tested on a Droid Razr HD. We don't have a droid RAZR MAXX available. Do you have a log the error that occurred?", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-27T20:02:15.000+0000", "updated": "2013-03-27T20:02:15.000+0000" }, { "id": "244422", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "So glad I didnt email the client we lost and tell then you all had actually fixed this.\r\n\r\n'Motorola Droid HD Razr Maxx running Android 4.1.1' vs `We don't have a droid RAZR MAXX available.`\r\n\r\n\r\n", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2013-03-27T23:33:49.000+0000", "updated": "2013-03-27T23:33:49.000+0000" }, { "id": "245299", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have tried this on the Droid Razr Maxx HD 4.1.2 (There isn't a easy way to downgrade to 4.1.1) and it worked fine for me. I am able to take the picture, save it, and open the image according to the test case provided https://gist.github.com/4527649\n\nI also tried the Kitchen sink test and that worked fine as well. [~jeromywaldron] Please use the build 3.1.0.v20130402092426 or later from the CI server and test again. That was the build that I used to test.", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-02T22:19:52.000+0000", "updated": "2013-04-02T22:19:52.000+0000" }, { "id": "248150", "author": { "name": "renaud", "key": "renaud", "displayName": "Renaud Delcoigne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I confirm I encounter the same issue with Sony Xperia Z, Android 4.1.1 and SDK 3.1.0.", "updateAuthor": { "name": "renaud", "key": "renaud", "displayName": "Renaud Delcoigne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-18T16:11:24.000+0000", "updated": "2013-04-18T16:11:24.000+0000" }, { "id": "248172", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~renaud] Can you please provide more information on this?\n\nWere you using 3.1.0.GA, or some custom build from CI? Which android version is your phone? Do you have logs relating to the crash? Which test case were you using? What is the behavior, does it crash and exit... or just hang?", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-04-18T17:23:14.000+0000", "updated": "2013-04-18T17:23:14.000+0000" }, { "id": "252512", "author": { "name": "nezam", "key": "nezam", "displayName": "Nezam Uddin", "active": true, "timeZone": "Asia/Kolkata" }, "body": "I confirm the issue on my Nexus S(Android 4.2.2),built and application with the feature to choose pictures from the android gallery.It restarts the app sometimes without throwing any sort of exception\r\n\r\nUsing the latest titanium SDK.Same happens on Sony Xperia U running on Gingerbread\r\n\r\nEDIT:\r\n\r\nI can't believe that such a critical bug still happens to exist in the SDK while the appcelerator people are busy marketing their service as high quality cross platform development!", "updateAuthor": { "name": "nezam", "key": "nezam", "displayName": "Nezam Uddin", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-05-17T04:46:05.000+0000", "updated": "2013-06-19T13:54:11.000+0000" }, { "id": "259340", "author": { "name": "nezam", "key": "nezam", "displayName": "Nezam Uddin", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Why can't you people release an important fix for this bug!! I am still waiting for your supposed fix of 3.2.0!\r\n\r\nI downloaded the master and its not fixed in it.Cmon release a GA today!!!!!!", "updateAuthor": { "name": "nezam", "key": "nezam", "displayName": "Nezam Uddin", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-25T10:24:28.000+0000", "updated": "2013-06-25T10:24:28.000+0000" }, { "id": "259344", "author": { "name": "renaud", "key": "renaud", "displayName": "Renaud Delcoigne", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Here how I fixed it programaticaly:\r\nIt's a bit specific to my app and it's not perfectly coded but it seems to work on all Android devices and iOS.\r\nnote: callback should be function with a blob parameter.\r\n{code:title=showCamera|borderStyle=solid}\r\nshowCamera = function(callback) {\r\n if (Ti.Android) {\r\n var intent = Ti.Android.createIntent({\r\n action : \"android.media.action.IMAGE_CAPTURE\",\r\n });\r\n\r\n var tmpfile = Ti.Filesystem.getFile(Ti.Filesystem.externalStorageDirectory, \"temp.jpg\")\r\n\r\n intent.putExtraUri(\"output\", tmpfile.nativePath);\r\n Ti.Android.currentActivity.startActivityForResult(intent, function(e) {\r\n var blob = tmpfile.read();\r\n callback(blob);\r\n tmpfile.deleteFile();\r\n if (blob.length > 0) {\r\n } else {\r\n callback(undefined);\r\n }\r\n });\r\n } else {\r\n Titanium.Media.showCamera({\r\n success : function(event) {\r\n if (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {\r\n callback(event.media);\r\n } else {\r\n alert(\"got the wrong type back =\" + event.mediaType);\r\n callback(undefined);\r\n }\r\n },\r\n cancel : function() {\r\n callback(undefined);\r\n },\r\n error : function(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 callback(undefined);\r\n },\r\n saveToPhotoGallery : false,\r\n allowEditing : true,\r\n mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO]\r\n });\r\n }\r\n}\r\n{code}", "updateAuthor": { "name": "renaud", "key": "renaud", "displayName": "Renaud Delcoigne", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-25T11:03:37.000+0000", "updated": "2013-06-25T11:03:37.000+0000" }, { "id": "259357", "author": { "name": "nezam", "key": "nezam", "displayName": "Nezam Uddin", "active": true, "timeZone": "Asia/Kolkata" }, "updateAuthor": { "name": "nezam", "key": "nezam", "displayName": "Nezam Uddin", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-25T13:39:16.000+0000", "updated": "2013-06-25T13:39:16.000+0000" }, { "id": "259536", "author": { "name": "jluis", "key": "jluis", "displayName": "Jose Luis Preciado", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, I have encountered the same bug, I have tested my app at two different android devices, at Samsung Galaxy S2 with android 4.0 and at Samsung Galaxy Ace with android 2.3, everything works fine with Samsung Galaxy S2, but in Galaxy Ace the app restarts when I select an image from gallery or took a picture, I have tested with TI sdk 3.1.1.GA and 3.1.2 CI. I am wondering if it is a problem whit the latest upgrade of android sdk tools (android sdk tools 22)\r\n\r\nSuch a shame that appcelerator have critical bugs like this unresolved from several months ago.", "updateAuthor": { "name": "jluis", "key": "jluis", "displayName": "Jose Luis Preciado", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-26T17:59:21.000+0000", "updated": "2013-06-26T17:59:21.000+0000" }, { "id": "259547", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Again, apologies for the delay. We can't pick up every Android device, nor do we have every device in every configuration. We are attempting to procure devices that reproduce the issue which is why it has taken as long as it has. If people are local to Mountain View, we welcome individuals to stop by our office with a device that causes the problem so we can figure it out. Alternately, if you can file a patch that you believe fixes it, great. However, so far, the patches we have gotten have solved it in certain circumstances, so we can't use them universally.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-26T18:29:22.000+0000", "updated": "2013-06-26T18:29:22.000+0000" }, { "id": "259676", "author": { "name": "nezam", "key": "nezam", "displayName": "Nezam Uddin", "active": true, "timeZone": "Asia/Kolkata" }, "body": "@Ingo\r\n\r\nWe can all see that this issue relates to four different issues and in all of the issues the person concerned comments to watch this thread.This means that this issue is *more critical* so it should have been taken seriously within few weeks of it being filed.I can't understand ,is the business of the company so slow that it can't invest on devices at the earliest ? \r\n\r\nplease excuse me for the bravity,but there are a lot of people who are {color:red}*loosing clients*{color} for this bug.That can be taken as a loss in business of developers who have chosen appcelerator over phonegap and native code.\r\n\r\nPlease fix it as soon as you can.", "updateAuthor": { "name": "nezam", "key": "nezam", "displayName": "Nezam Uddin", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2013-06-27T04:37:14.000+0000", "updated": "2013-06-27T04:37:14.000+0000" }, { "id": "259727", "author": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "body": "Ingo is saying they can't seem to procure the specific devices & configurations that cause the problem. If the problem is critical to you, and you can reproduce it, let them borrow your phone. UPS can even get it there overnight.", "updateAuthor": { "name": "iotashan", "key": "iotashan", "displayName": "Shannon Hicks", "active": true, "timeZone": "America/Chicago" }, "created": "2013-06-27T12:50:44.000+0000", "updated": "2013-06-27T12:50:44.000+0000" }, { "id": "259745", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~nezam] As Shannon mentioned, we have tried this on many different devices, including the specific ones that people mention, and have been unable to reproduce the issue. We spend significant amounts of money each month on procuring existing and new mobile devices, but it is just not possible to have all devices in all configurations. Just yesterday we tried this on a Sony Xperia U with no success. This leads me to believe that it's either a problem where the test case we have is wrong, or the configuration is a mismatch.\n\nYour statement leads me to a few questions:\n\n# If you try the test code in the description of the ticket, does it reproduce the problem. What are the exact steps you followed?\n# If not, what is the test case we can use that _does_ reproduce the problem for you?\n# In either case, we need any crash logs you can provide\n\nThank you for your assistance.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-27T15:17:20.000+0000", "updated": "2013-06-27T15:17:20.000+0000" }, { "id": "259887", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce on Sony Experia U running 2.3.7 and sample code in original post.\nI did change line 2 from Ti.UI.Fill to Ti.UI.FILL.\n\nI tried various scenarios, sleep/wake, let the camera sit while active, took many photos. I could not reproduce but we did encounter some strange behavior\n\nThe sample code does not have \"save to gallery\" set, so the images from the camera should not be saved to the gallery. In the first few shots while testing, what looked like sample images where shown instead of my photos. For these cases, the images were saved to the gallery. After around 3 shots like this, my photos began being displayed the actual photo after the photo was taken, and these photos were placed in the gallery in a \"_tmp\" file. These photos were not saved in the gallery, as upon revisiting the gallery the image was not there. \n\nWe will investigate these issues discovered and continue to try and reproduce the crash. Our device was delivered with no SIM, we will add one and retry, then discuss moving from 2.3.7 to another OS to continue trying to reproduce.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-06-27T20:54:44.000+0000", "updated": "2013-06-27T20:54:44.000+0000" }, { "id": "260798", "author": { "name": "jluis", "key": "jluis", "displayName": "Jose Luis Preciado", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi everybody, I have tested today again with the latest Titaniun sdk continuous build (3.1.2.v20130629) and looks like the bug of take a picture with the camera have been solved, at least at Samsung Galaxy Ace, but I still having problems when I want to select a picture from android gallery, the app open android native gallery but when I choose a picture it restarts my app at the same way that the bug of taking a picture did, I have also used Titanium SDK 3.1.1.GA and I have the same problem. What can I do? please I need help with this.\r\nDevice: Samsung galaxy Ace\r\nTI SDK: 3.1.2.v20130629\r\nHere's my code:\r\n{code}\r\nself.addEventListener('open', function(e){\r\n\t\tTitanium.Media.openPhotoGallery({\r\n\t\t\tsuccess:function(event)\r\n\t\t\t{\r\n\t\t\t\timgPhoto.image = event.media;\r\n\t\t\t},\r\n\t\t\tcancel:function()\r\n\t\t\t{\r\n\t\t\t\tself.close();\r\n\t\t\t}\r\n\t\t});\r\n\t});\r\n{code}\r\n\r\nself is a window", "updateAuthor": { "name": "jluis", "key": "jluis", "displayName": "Jose Luis Preciado", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-07-03T19:11:29.000+0000", "updated": "2013-07-03T19:11:29.000+0000" }, { "id": "260840", "author": { "name": "torlanco", "key": "torlanco", "displayName": "Francisco Tirado", "active": true, "timeZone": "America/Santo_Domingo" }, "body": "h2. After many wasted days, this is the fix that works on emulator and device :)\r\n\r\nhandle_listing is the function you can use to manage the image.\r\n\r\nh5. Fix for Camera Snapshot\r\n{code:title=Fix for Camera Snapshot|borderStyle=solid}\r\n\tvar intent = Ti.Android.createIntent({\r\n\t\taction : \"android.media.action.IMAGE_CAPTURE\"\r\n\t});\r\n\r\n\tvar tmpfile = Ti.Filesystem.getFile(Ti.Filesystem.externalStorageDirectory, \"temp.jpg\")\r\n\r\n\tintent.putExtraUri(\"output\", tmpfile.nativePath);\r\n\r\n\tTi.Android.currentActivity.startActivityForResult(intent, function(e) {\r\n\r\n\t\tif (e.error) {\r\n\t\t\tTi.UI.createNotification({ message: 'Error: ' + e.error }).show();\r\n\t\t}else{\r\n\t\t\tif (e.resultCode === Titanium.Android.RESULT_OK) {\r\n\t\t\t\thandle_listing(tmpfile.read());\r\n\t\t\t}else {\r\n\t\t\t\tTi.UI.createNotification({ message: 'Canceled/Error? Result code: ' + e.resultCode }).show();\r\n\t\t\t}\r\n\t\t}\r\n\t\ttmpfile.deleteFile();\r\n\t\t\r\n\t});\r\n{code} \r\n\r\nh5. Fix for Gallery Image\r\n{code:title=Fix for Gallery Image|borderStyle=solid}\r\n\tvar intent = Ti.Android.createIntent({\r\n\t\taction: Ti.Android.ACTION_PICK,\r\n\t\ttype: \"image/*\"\r\n\t});\r\n\r\n\tTi.Android.currentActivity.startActivityForResult(intent, function(e) {\r\n\r\n\t\tif (e.error) {\r\n\t\t\tTi.UI.createNotification({ message: 'Error: ' + e.error }).show();\r\n\t\t}else{\r\n\t\t\tif (e.resultCode === Titanium.Android.RESULT_OK) {\r\n\t\t\t\t\r\n\t\t\t\t// get file path from gallery as a file\r\n\t\t\t\tvar tmpfile = Ti.Filesystem.getFile(e.intent.data);\r\n\r\n\t\t\t\t// create a new temp file\r\n\t\t\t\tvar tmpfile2 = Ti.Filesystem.getFile(Ti.Filesystem.externalStorageDirectory, \"temp.jpg\")\r\n\t\t\t\t\t\r\n\t\t\t\t// copy the unaccesable file from gallery to the temp file\r\n\t\t\t\ttmpfile.copy(tmpfile2.nativePath);\r\n\t\t\t\t\r\n\t\t\t\t// send to the handler\r\n\t\t\t\thandle_listing(tmpfile2.read());\r\n\t\t\t\t\r\n\t\t\t\ttmpfile2.deleteFile();\r\n\t\t\t\t\r\n\t\t\t}else {\r\n\t\t\t\tTi.UI.createNotification({ message: 'Canceled/Error? Result code: ' + e.resultCode }).show();\r\n\t\t\t}\r\n\t\t}\r\n\t\t\t \r\n });\r\n{code} ", "updateAuthor": { "name": "torlanco", "key": "torlanco", "displayName": "Francisco Tirado", "active": true, "timeZone": "America/Santo_Domingo" }, "created": "2013-07-04T05:25:58.000+0000", "updated": "2013-07-04T05:25:58.000+0000" }, { "id": "273866", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi All. No matter how hard we try and what devices we purchase, we can't reproduce this. Does anyone have this issue and is located in the SF Bay Area who could drop by our office?", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-10-04T20:49:26.000+0000", "updated": "2013-10-04T20:49:26.000+0000" }, { "id": "273892", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2013-10-04T22:07:37.000+0000", "updated": "2013-10-04T22:08:03.000+0000" }, { "id": "290338", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ran the code in the description on Sony Xperia J ST26i running android 4.1.2. We get a success alert & the app does not crash.Pics taken from the device camera are successfully saved in the gallery.\r\n\r\nEnvironment:\r\nAppc Studio : 3.2.1.201401281409\r\nTi SDK : 3.2.1.v20140128171647\r\nMac OSX : 10.8.5\r\nAlloy : 1.3.1-beta4 \t\r\nCLI - 3.2.1 beta3\r\nSony Xperia ST26i - android 4.1.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-29T22:33:43.000+0000", "updated": "2014-01-29T22:37:08.000+0000" }, { "id": "294477", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ran the code in the description on Sony Xperia J ST26i running android 4.1.2. We get a success alert & the app does not crash.Pics taken from the device camera are successfully saved in the gallery.\n\nEnvironment:\nAppc Studio : 3.2.1.201402061120\nTi SDK : 3.2.1.GA\nMac OSX : 10.8.5\nAlloy : 1.3.1\nCLI - 3.2.1\nSony Xperia ST26i - android 4.1.2", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T21:52:57.000+0000", "updated": "2014-02-24T21:52:57.000+0000" }, { "id": "294508", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "So far, no matter what device we try, we can't reproduce it. If anyone has a device that they are willing to loan us, we will pay for shipping the device here and back, as well as some swag in the bogs. Otherwise, we will be forced to close this as \"cannot reproduce\".", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-02-24T23:22:58.000+0000", "updated": "2014-02-24T23:22:58.000+0000" }, { "id": "295164", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Given that a number of people (including us) with this issue can no longer reproduce it, I am going to call it fixed by previous commits to this ticket, or related tickets.\r\n\r\nThere is a different, less severe behavior going on, as documented in TIMOB-16524. That ticket will be used for tracking this fix.\r\n\r\nIf anyone still can reproduce this issue, we need the following:\r\n\r\n# An exact test case\r\n# The specific device (make, model, OS) that reproduces the issue\r\n# A willingness to possibly loan us the device for a short time if we do not have it in house. We will pay for all expenses related to shipping.\r\n\r\nThank you to all of those involved in helping us try and understand the cause of the issue here.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-03-01T03:35:34.000+0000", "updated": "2014-03-01T03:35:34.000+0000" }, { "id": "302504", "author": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Verified fix with below environment:\r\n\r\nAppc Studio: 3.3.0.201404241755\r\nSDK build: 3.3.0.v20140424130915\r\nacs: 1.0.14\r\nnpm: 1.3.2\r\nalloy: 1.4.0-dev\r\nCLI: titanium-3.3.0-dev\r\ntitanium-code-processor:1.1.1-beta1\r\nXcode: 5.1.1\r\nOsx: Mavericks(10.9.2)\r\nDevice: Nexus 5(4.4.2), Nexus 7(4.3) \r\n\r\nApp does not get crash using camera on above devices. Hence closing the issue.", "updateAuthor": { "name": "nmittal", "key": "nmittal", "displayName": "Neha Mittal", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2014-04-25T10:10:32.000+0000", "updated": "2014-04-25T10:10:32.000+0000" }, { "id": "302505", "author": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "body": "This appears to have been closed despite the tests to confirm it works being performed on devices that were not mentioned as causing the problem in the first place.\r\n\r\nHave any checks been made specifically on those devices mentioned above? The problem appears to be related to devices that are not considered the gold standard - but rather those device with less sales.\r\n\r\nThis problem was found on Motorola devices, but we also know that sony devices have also had Android camera issues.\r\n\r\nGiven the length of time this ticket has been around and the number of camera related issues with Android devices over time - I imagine this ticket has been closed prematurely due to the lack of testing against those devices that actually exhibited the problems. ", "updateAuthor": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "created": "2014-04-25T11:07:54.000+0000", "updated": "2014-04-25T11:07:54.000+0000" }, { "id": "302509", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm going to instead resolve this to HOLD. [~core13], yes, we've tried it on the devices we have as all as specifically purchasing devices mentioned here as causing the issue. We are now down to asking someone to loan us one of their devices that cause the issue. We will PAY to ship it to us, and PAY to ship is back, AND include some nice swag in the process. I first made this offer a year ago, and no one has stepped forward. This leads me to believe that some other change we made in the meantime may have fixed the problem. But if anyone has a device, please let us know.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-25T13:18:49.000+0000", "updated": "2014-04-25T13:19:06.000+0000" }, { "id": "321800", "author": { "name": "sdelgaol", "key": "sdelgaol", "displayName": "Sergio Delgado", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi Ingo,\r\n\r\nI'm having the same problem with the camera in some devices. The app is crashing when clicking the save button in the image preview, the success event is never fired and the app restarts. In some devices works fine but in others not. Next you will see my development enviroment configuration and a list with devices with and without error.\r\n\r\nI can't send you any devices because the devices are from our customers. Sorry, I'll try to find a device with this error to send you, but it will be complicate.\r\n\r\n\r\n\r\nEnvironment:\r\n----------------\r\nTitanium Studio, build: 3.3.0.201407100905\r\nTitanium CLI: 3.3.0\r\nTitanium SDK: 3.3.0 GA\r\n\r\n\r\nDevices WITH ERROR:\r\n-----------------------------\r\nSamsung Galaxy FAME GT-S6810P\r\nSony XPERIA Z2\r\nSamsung Young mini\r\nAlcatel One Touch 4033x\r\n\r\n\r\nDevices without error:\r\n---------------------------\r\nSamsung Galaxy S3 mini GT-I8190N\r\nSamsung Galaxy 4\r\nXiaomi Mi 3\r\nXiaomi Mi 2s\r\nSony XPERIA S\r\n\r\n\r\nAny help/suggestions will be appreciated.\r\nThanks", "updateAuthor": { "name": "sdelgaol", "key": "sdelgaol", "displayName": "Sergio Delgado", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-04T11:35:00.000+0000", "updated": "2014-09-04T11:35:00.000+0000" }, { "id": "321801", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks for the feedback. Yes, unfortunately, we need an actual device that can reproduce the issue. We've tried buying exact devices, and that hasn't even helped.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-04T12:34:10.000+0000", "updated": "2014-09-04T12:34:10.000+0000" }, { "id": "324696", "author": { "name": "bicpi", "key": "bicpi", "displayName": "Philipp Rieber", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi,\r\nI can confirm this issue still exists, I can reproduce using the pure kitchen sink code: More often than not my app crashes/restarts after clicking the confirm/save button of the device camera - the success handler of my app never gets called.\r\n\r\nFor Titanium, I'm using the latest SDK/Studio version at the time of writing: 3.3.0.201407100905\r\n\r\nIt happens on my Samsung Galaxy S3 (Android 4.3 Jelly Bean) as well as on my brand new Moto G (2nd generation, Android 4.4 KitKat). It happens after a fresh install as well as after restarting the app and without being connected to Titanium Studio.\r\n\r\nBtw, I've the same issue with PhoneGap.\r\n\r\nAny news how to solve this? Seems to be some kind of memory issue, the app gets garbage collected in the background when the camera is active. In PhoneGap there are some inofficial plugins solving this issue with some kind of \"foreground\" magic keeping the app in the foreground so it does not go into onPause or onStop state and thus cannot be garbage collected.\r\n\r\nIssue seems to happen less when the phone is fresh booted and more frequently when a good number of apps are open.\r\n\r\nCheers,\r\nPhilipp\r\n", "updateAuthor": { "name": "bicpi", "key": "bicpi", "displayName": "Philipp Rieber", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-19T13:15:14.000+0000", "updated": "2014-09-19T14:03:23.000+0000" }, { "id": "324810", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~bicpi] Thank you. As mentioned before, we're looking ideally for someone in the Mountain View area that can stop by our HQ and work with the engineers there to reproduce this.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-09-19T22:49:41.000+0000", "updated": "2014-09-19T22:49:41.000+0000" }, { "id": "324849", "author": { "name": "bicpi", "key": "bicpi", "displayName": "Philipp Rieber", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi, I would really love to come by and show you the issue on my devices, but I'm too far away in Europe ;-)\r\n\r\nBut I've created a screen recording with the Moto G: http://youtu.be/1X47O6K5eqM\r\n\r\nHere's a thread about the same topic using PhoneGap; seems to be Anroid related, not PhoneGap or Titanium:\r\nhttp://stackoverflow.com/questions/8368091/phonegap-camera-restarts-the-application/9524643#\r\n\r\nBut it seems to be solvable with this (outdated) plugin: \r\nhttps://code.google.com/p/foreground-camera-plugin/\r\nor with this more recent adaption of the same plugin: \r\nhttps://github.com/shaithana/cordova-plugin-wezka-nativecamera \r\nI've checked with the latter and it worked.\r\n\r\nIt's definitely something with the memory. After a fresh restart of my device, it worked fine. But one hour later, after using some other apps, the issue started again.\r\n\r\nThe only intention of the app I'm currently developing is to take one or more pictures and send them to a server. So it's a real showstopper for me right now. Does it really never happen on your (low end) test devices?\r\n\r\nThanks,\r\nPhilipp\r\n", "updateAuthor": { "name": "bicpi", "key": "bicpi", "displayName": "Philipp Rieber", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-21T10:59:23.000+0000", "updated": "2014-09-21T11:00:11.000+0000" }, { "id": "324996", "author": { "name": "bicpi", "key": "bicpi", "displayName": "Philipp Rieber", "active": true, "timeZone": "Europe/Berlin" }, "body": "I was able to improve my experience with this issue a little bit.\r\n\r\nFirst, while using a screen recorder I cannot take a single pictures, it always leads to a restart. So this is a bad idea.\r\n\r\nAfter deinstalling some Apps, including Skype, a restart and implementing some code to only show small thumbnails of the pictures, it worked quite well and I was able to take 20 pictures in a row without a crash. But after an uptime of some hours while using the phone normally, it startet again. I was only able to take 0-5 pictures before the crash.\r\n\r\nPhilipp\r\n", "updateAuthor": { "name": "bicpi", "key": "bicpi", "displayName": "Philipp Rieber", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-09-22T20:11:12.000+0000", "updated": "2014-09-22T20:11:12.000+0000" }, { "id": "327995", "author": { "name": "bicpi", "key": "bicpi", "displayName": "Philipp Rieber", "active": true, "timeZone": "Europe/Berlin" }, "body": "For WebView, this is a confirmed behavior on a lot of devices, see https://code.google.com/p/android/issues/detail?id=53088\r\n\r\n=> Open web app in browser\r\n=> Simple file input opens camera (no JS involved)\r\n=> Browser tab goes into background \r\n=> Android kills Browser tab to free memory (because of Android's design)\r\n=> On return to the (web) application, Browser tab gets reloaded\r\n=> State of the app is lost, taken picture cannot be processed\r\n\r\nMaybe it's some kind of similiar behavior for Titanium.", "updateAuthor": { "name": "bicpi", "key": "bicpi", "displayName": "Philipp Rieber", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-10-14T09:03:17.000+0000", "updated": "2014-10-14T09:03:17.000+0000" }, { "id": "337264", "author": { "name": "xcash", "key": "xcash", "displayName": "Paolo Casciello", "active": true, "timeZone": "Europe/Berlin" }, "body": "Guys PLEASE.\r\nThis is a showstopper problem for ALL developers using Titanium!\r\n\r\nThe problem is easy explained:\r\n\r\n * titanium calls the native camera\r\n * on low ram devices or on android versions more aggressive on memory management, android kills the background app waiting for the image.\r\n\r\nSimple as this.\r\n\r\nSo, how do native developers manage this?\r\n\r\nThere will be MORE AND MORE devices subject of this bug. My new Moto G second edition, a 2014 kitkat phone, kills the app as soon as the pic is taken, cause it needs ram to store the image. More devices will be like this, please Fix this thing. \r\n\r\nOr a lot of developers will move away from Titanium.\r\n\r\nAnd, to Philipp, neither phonegap is immune. The \"native\" plugins are really buggy... and unmaintained.\r\n\r\nAppcelerator guys, let us know something on this bug, PLEASE!\r\n\r\n", "updateAuthor": { "name": "xcash", "key": "xcash", "displayName": "Paolo Casciello", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-12-21T21:02:28.000+0000", "updated": "2014-12-21T21:02:28.000+0000" }, { "id": "337266", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~xcash] Please read the above threads.\r\n\r\n# It appears to be a native bug with Android.\r\n# We can't reproduce this on any device we have, and we have bought many to reproduce this bug.\r\n\r\nIf you run into this issue and can send/ship us a phone (we'll pay for it), we would be grateful", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-21T22:11:03.000+0000", "updated": "2014-12-21T22:11:03.000+0000" }, { "id": "337267", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "I agree!\r\n\r\nI have a 200k users App and the #1 major complaint is about Android crashing when taking pictures!\r\n\r\nThis is long overlooked and really should be prioritized.", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2014-12-21T22:12:08.000+0000", "updated": "2014-12-21T23:07:25.000+0000" }, { "id": "337268", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "I have just reproduced the test case of this issue on a brand new Moto G (2nd gen) (XT1069) running Android 4.4.4 (kitkat)\r\n\r\nThe testcase was compiled using Titanium 3.4.1.GA with default tiapp.xml\r\n\r\nThe device has some apps installed like Facebook,Twitter, Gmail, etc... it is under a \"normal\" usage pattern... (running latest firmware and all apps updated to latest version)\r\n\r\nI can send you guys the device, but I'm on Brazil and I'm afraid the shipping costs will be very high.\r\n\r\nIf you guys want I can collect lower level logs with Android Monitor, run debug apps, etc...\r\n\r\nAny way I can help solve this?\r\n", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2014-12-21T22:42:11.000+0000", "updated": "2014-12-21T22:42:11.000+0000" }, { "id": "337270", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "On android monitor, logcat reports some low level camera related errors:\r\n\r\n{code:logcat}\r\n12-21 20:54:02.917: I/QCameraHalWatchdog(296): Starting Watchdog Thread...\r\n12-21 20:54:02.917: E/QCamera2HWI(296): [KPI Perf] static void qcamera::QCamera2HardwareInterface::stop_preview(camera_device*): E PROFILE_STOP_PREVIEW\r\n12-21 20:54:02.917: D/QCameraParameters(296): int32_t qcamera::QCameraParameters::setFaceDetection(bool): face process mask not changed, no ops here\r\n12-21 20:54:02.918: D/QCamera2HWI(296): int qcamera::QCamera2HardwareInterface::stopPreview(): E\r\n12-21 20:54:02.918: D/QCameraParameters(296): int32_t qcamera::QCameraParameters::AddSetParmEntryToBatch(void*, cam_intf_parm_type_t, uint32_t, void*): num_entry: 4, paramType: 33, paramLength: 4, aligned_size_req: 20\r\n12-21 20:54:02.919: E/mm-camera(427): mct_pipeline_send_ctrl_events: Send Set Parm events\r\n12-21 20:54:02.920: D/QCameraParameters(296): int32_t qcamera::QCameraParameters::commitSetBatch():waiting for commitSetBatch to complete\r\n12-21 20:54:02.921: E/mm-camera(427): mct_pipeline_process_set: stream_type = 3\r\n12-21 20:54:02.921: E/mm-camera-sensor(427): module_sensor_module_process_event:3106 ide 10003 MCT_EVENT_CONTROL_STREAMOFF\r\n12-21 20:54:02.921: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10003, STREAMOFF\r\n12-21 20:54:02.922: E/mm-camera(427): isp_streamoff: E, session_id = 1, stream_id = 3, active_count = 2\r\n12-21 20:54:02.922: E/mm-camera(427): isp_proc_streamoff: E,session_id = 1, stream_id= 3, stream_type= 3 meta 0\r\n12-21 20:54:02.922: E/mm-camera(427): isp_hw_action: last pix stop, pix_cnt = 2, cnt = 2\r\n12-21 20:54:02.922: E/mm-camera(427): isp_thread_proc_cmd: start/stop, thread_data = 0xb8fa3054, action_code = 2\r\n12-21 20:54:02.922: E/mm-camera(427): isp_axi_util_subscribe_v4l2_event: event_type = 0x8000100, is_subscribe = 0\r\n12-21 20:54:02.922: E/mm-camera(427): isp_ch_util_streamoff: session_id = 1, vfe_mask = 0x1, async streamoff, rc = 0\r\n12-21 20:54:02.922: E/mm-camera(427): isp_hw_action: hw_thread for ack\r\n12-21 20:54:02.927: W/ContextImpl(1338): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.frameworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114 \r\n12-21 20:54:02.962: D/WifiStateMachine(1080): handleMessage: E msg.what=151572\r\n12-21 20:54:02.962: D/WifiStateMachine(1080): processMsg: ConnectedState\r\n12-21 20:54:02.962: D/WifiStateMachine(1080): processMsg: L2ConnectedState\r\n12-21 20:54:02.976: E/mm-camera(427): isp_axi_unreg_buf: session_id = 1, stream_id = 2, buf_handle = 0x10000\r\n12-21 20:54:02.976: E/mm-camera(427): isp_axi_unreg_buf: session_id = 1, stream_id = 3, buf_handle = 0x20001\r\n12-21 20:54:02.976: E/mm-camera(427): stats_action_buf_config: cfg = 0, stats_mask = 0x7b8\r\n12-21 20:54:02.978: E/mm-camera(427): isp_thread_proc_cmd: start/stop ack done, thread_data = 0xb8fa3054, action_code = 3, rc = 0\r\n12-21 20:54:02.978: E/mm-camera(427): isp_ch_util_streamoff: session_id = 1, sync ack done\r\n12-21 20:54:02.978: E/mm-camera(427): isp_streamoff: X, session_id = 1, rc = 0\r\n12-21 20:54:02.978: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10003, STREAMOFF, ret = 0\r\n12-21 20:54:02.978: E/mm-camera(427): stream id 3, stream num_meta 0\r\n12-21 20:54:02.982: D/WifiStateMachine(1080): handleMessage: X\r\n12-21 20:54:02.997: D/WifiStateMachine(1080): handleMessage: E msg.what=131155\r\n12-21 20:54:02.998: D/WifiStateMachine(1080): processMsg: ConnectedState\r\n12-21 20:54:02.998: D/WifiStateMachine(1080): processMsg: L2ConnectedState\r\n12-21 20:54:03.002: D/WifiStateMachine(1080): handleMessage: X\r\n12-21 20:54:03.009: E/mm-camera(427): ispif_streamoff: session_id = 1, active_streams = 0\r\n12-21 20:54:03.009: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_off:929 any bundle started 0\r\n12-21 20:54:03.009: E/mm-camera(427): mct_pipeline_process_set: stream_type = 1\r\n12-21 20:54:03.009: E/mm-camera-sensor(427): module_sensor_module_process_event:3106 ide 10002 MCT_EVENT_CONTROL_STREAMOFF\r\n12-21 20:54:03.009: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10002, STREAMOFF\r\n12-21 20:54:03.010: E/mm-camera(427): c2d_module_handle_streamoff_event:1268, info: doing stream-off for identity 0x10002\r\n12-21 20:54:03.015: E/mm-camera(427): module_faceproc_port_event_func:510] STREAMOFF 0\r\n12-21 20:54:03.015: E/mm-camera-img(427): faceproc_comp_abort:608] state 2\r\n12-21 20:54:03.023: E/mm-camera-img(427): faceproc_comp_abort:635] X\r\n12-21 20:54:03.023: E/mm-camera(427): af_fdprio_process_fd_roi:440 Process FD_ROI data\r\n12-21 20:54:03.023: E/mm-camera-CORE(427): aec_set_fd_roi: invalid CPP width and height (0, 0)!\r\n12-21 20:54:03.024: E/mm-camera(427): c2d_module_handle_streamoff_event:1387, info: stream-off done for identity 0x10002\r\n12-21 20:54:03.024: E/mm-camera(427): cpp_module_handle_streamoff_event:1989] iden:0x10002, linked_params:0x0\r\n12-21 20:54:03.024: E/mm-camera(427): cpp_hardware_process_streamoff:510] skip_iden:0x0, duplicate_stream_status:0x0\r\n12-21 20:54:03.024: E/mm-camera(427): isp_streamoff: E, session_id = 1, stream_id = 2, active_count = 0\r\n12-21 20:54:03.025: E/mm-camera(427): isp_proc_streamoff: E,session_id = 1, stream_id= 2, stream_type= 1 meta 0\r\n12-21 20:54:03.025: E/mm-camera(427): isp_streamoff: X, session_id = 1, rc = 0\r\n12-21 20:54:03.025: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10002, STREAMOFF, ret = 0\r\n12-21 20:54:03.025: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_off:929 any bundle started 0\r\n12-21 20:54:03.025: E/mm-camera-sensor(427): module_sensor_module_process_event:3125 ide 10002 MCT_EVENT_CONTROL_STREAMOFF\r\n12-21 20:54:03.025: E/mm-camera-sensor(427): module_sensor_module_process_event: Sending stop bus message\r\n12-21 20:54:03.025: E/mm-camera(427): stop_sof_check_thread: Stopping SOF timeout thread\r\n12-21 20:54:03.025: E/mm-camera(427): mct_pipeline_process_set: stream_type = 7\r\n12-21 20:54:03.026: D/QCameraStream(296): int32_t qcamera::QCameraStream::putBufs(mm_camera_map_unmap_ops_tbl_t*): wait for buf allocation thread dead\r\n12-21 20:54:03.026: D/QCameraStream(296): int32_t qcamera::QCameraStream::putBufs(mm_camera_map_unmap_ops_tbl_t*): return from buf allocation thread\r\n12-21 20:54:03.037: I/QCameraHWI_Mem(296): deallocate: E \r\n12-21 20:54:03.037: D/QCameraHWI_Mem(296): put buffer 0 successfully\r\n12-21 20:54:03.037: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73cd7e0\r\n12-21 20:54:03.037: D/QCameraHWI_Mem(296): put buffer 1 successfully\r\n12-21 20:54:03.038: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73cda40\r\n12-21 20:54:03.038: D/QCameraHWI_Mem(296): put buffer 2 successfully\r\n12-21 20:54:03.038: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73cdd48\r\n12-21 20:54:03.038: D/QCameraHWI_Mem(296): put buffer 3 successfully\r\n12-21 20:54:03.038: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73cdfa8\r\n12-21 20:54:03.039: D/QCameraHWI_Mem(296): put buffer 4 successfully\r\n12-21 20:54:03.039: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73ce208\r\n12-21 20:54:03.039: D/QCameraHWI_Mem(296): put buffer 5 successfully\r\n12-21 20:54:03.039: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73ce468\r\n12-21 20:54:03.039: D/QCameraHWI_Mem(296): put buffer 6 successfully\r\n12-21 20:54:03.040: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73ce6c8\r\n12-21 20:54:03.040: D/QCameraHWI_Mem(296): put buffer 7 successfully\r\n12-21 20:54:03.040: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73ce950\r\n12-21 20:54:03.040: D/QCameraHWI_Mem(296): put buffer 8 successfully\r\n12-21 20:54:03.040: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73cec58\r\n12-21 20:54:03.041: D/QCameraHWI_Mem(296): put buffer 9 successfully\r\n12-21 20:54:03.041: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73ceee0\r\n12-21 20:54:03.041: D/QCameraHWI_Mem(296): put buffer 10 successfully\r\n12-21 20:54:03.041: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73cf168\r\n12-21 20:54:03.041: D/QCameraHWI_Mem(296): put buffer 11 successfully\r\n12-21 20:54:03.041: D/QCameraHWI_Mem(296): put buffer 12 successfully\r\n12-21 20:54:03.042: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73cf650\r\n12-21 20:54:03.042: D/QCameraHWI_Mem(296): put buffer 13 successfully\r\n12-21 20:54:03.042: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73cf8d8\r\n12-21 20:54:03.042: D/QCameraHWI_Mem(296): put buffer 14 successfully\r\n12-21 20:54:03.043: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73cfb60\r\n12-21 20:54:03.043: D/QCameraHWI_Mem(296): put buffer 15 successfully\r\n12-21 20:54:03.043: D/QCameraHWI_Mem(296): cancel_buffer: hdl =0xb73cfde8\r\n12-21 20:54:03.043: D/QCameraHWI_Mem(296): put buffer 16 successfully\r\n12-21 20:54:03.043: I/QCameraHWI_Mem(296): deallocate : X \r\n12-21 20:54:03.046: D/mm-camera(427): mct_pipeline_remove_stream_from_linked_streams: stream type: 7\r\n12-21 20:54:03.046: D/mm-camera(427): mct_pipeline_remove_stream_from_linked_streams: linked streams: 0xa\r\n12-21 20:54:03.048: E/mm-camera(427): mct_stream_streamoff: Enter\r\n12-21 20:54:03.048: E/mm-camera(427): mct_stream_streamoff: Enter\r\n12-21 20:54:03.048: E/mm-camera-sensor(427): port_sensor_unlink_func:220 ide 10002\r\n12-21 20:54:03.048: E/mm-camera-sensor(427): port_sensor_caps_unreserve:183 ide 10002\r\n12-21 20:54:03.048: D/MotISP_VNR(427): LiveLux destroyed\r\n12-21 20:54:03.049: E/mm-camera(427): c2d_port_check_caps_unreserve:170, identity=0x10002\r\n12-21 20:54:03.049: E/mm-camera(427): c2d_port_check_caps_unreserve:179, identity=0x10002, unreserved\r\n12-21 20:54:03.052: E/mm-camera(427): c2d_port_check_caps_unreserve:170, identity=0x10002\r\n12-21 20:54:03.052: E/mm-camera(427): c2d_port_check_caps_unreserve:179, identity=0x10002, unreserved\r\n12-21 20:54:03.052: E/mm-camera-img(427): faceproc_comp_abort:608] state 1\r\n12-21 20:54:03.052: E/mm-camera-img(427): faceproc_save_album:795] Error No album \r\n12-21 20:54:03.052: E/mm-camera-img(427): faceproc_comp_eng_destroy: Album save failed -1\r\n12-21 20:54:03.052: D/SensorListener(427): void android::SensorListener::disableSensor(android::SensorListener::sensor_type_t): SensorEventQueue disableSensor(TYPE_DISPLAY_ROTATE)\r\n12-21 20:54:03.053: D/bsthal(1080): setDelay, handle: 1598182242 delay: 66667000\r\n12-21 20:54:03.053: D/mm-camera(427): mct_pipeline_remove_stream_from_linked_streams: stream type: 1\r\n12-21 20:54:03.053: D/mm-camera(427): mct_pipeline_remove_stream_from_linked_streams: linked streams: 0x8\r\n12-21 20:54:03.054: E/mm-camera(427): mct_stream_streamoff: Enter\r\n12-21 20:54:03.054: E/mm-camera-sensor(427): port_sensor_unlink_func:220 ide 10003\r\n12-21 20:54:03.054: E/mm-camera-sensor(427): port_sensor_caps_unreserve:183 ide 10003\r\n12-21 20:54:03.054: E/mm-camera(427): q3a_thread_aecawb_stop:346 MSG_STOP_THREAD\r\n12-21 20:54:03.054: D/mm-camera(427): mct_pipeline_remove_stream_from_linked_streams: stream type: 3\r\n12-21 20:54:03.054: D/mm-camera(427): mct_pipeline_remove_stream_from_linked_streams: linked streams: 0x0\r\n12-21 20:54:03.054: D/QCamera2HWI(296): int qcamera::QCamera2HardwareInterface::stopPreview(): CameraKpiTag: PREVIEW_STOP_TIME : 136\r\n12-21 20:54:03.054: D/QCamera2HWI(296): int qcamera::QCamera2HardwareInterface::stopPreview(): X\r\n12-21 20:54:03.055: D/QCamera2HWI(296): [KPI Perf] static void qcamera::QCamera2HardwareInterface::stop_preview(camera_device*): X\r\n12-21 20:54:03.055: I/QCameraHalWatchdog(296): Stopped Watchdog Thread...\r\n12-21 20:54:03.055: I/QCameraHalWatchdog(296): Starting Watchdog Thread...\r\n12-21 20:54:03.055: D/QCameraStateMachine(296): int32_t qcamera::QCameraStateMachine::procEvtPreviewStoppedState(qcamera::qcamera_sm_evt_enum_t, void*): No ops for evt(20) in state(0)\r\n12-21 20:54:03.056: I/QCameraHalWatchdog(296): Stopped Watchdog Thread...\r\n12-21 20:54:03.056: I/QCameraHalWatchdog(296): Starting Watchdog Thread...\r\n12-21 20:54:03.056: I/QCameraHalWatchdog(296): Stopped Watchdog Thread...\r\n12-21 20:54:03.061: I/QCameraHalWatchdog(296): Starting Watchdog Thread...\r\n12-21 20:54:03.061: I/QCameraHalWatchdog(296): Stopped Watchdog Thread...\r\n12-21 20:54:03.070: I/CameraClient(296): Destroying camera 0\r\n12-21 20:54:03.070: I/QCameraHalWatchdog(296): Starting Watchdog Thread...\r\n12-21 20:54:03.070: D/QCamera2HWI(296): [KPI Perf] static int qcamera::QCamera2HardwareInterface::close_camera_device(hw_device_t*): E\r\n12-21 20:54:03.070: D/QCamera2HWI(296): static void* qcamera::QCamera2HardwareInterface::defferedWorkRoutine(void*): stop data proc\r\n12-21 20:54:03.080: D/hardware_info(296): hw_info_append_hw_type : device_name = speaker\r\n12-21 20:54:03.080: E/msm8974_platform(296): platform_update_tpa_poll: Could not get ctl for mixer cmd - TPA6165 POLL ACC DET\r\n12-21 20:54:03.088: E/qomx_image_core(296): OMX_Deinit:118] Complete\r\n12-21 20:54:03.090: E/QCameraPostProc(296): int32_t qcamera::QCameraPostProcessor::deinit(): Jpeg closed, rc = 0, mJpegClientHandle = 600\r\n12-21 20:54:03.090: I/Thermal-Lib(296): Thermal-Lib-Client: Unregisteration is successfull for handle:13\r\n12-21 20:54:03.090: I/Thermal-Lib(296): Thermal-Lib-Client: Unregisteration is successfull for handle:14\r\n12-21 20:54:03.090: E/mm-camera(427): mct_pipeline_get_stream: no children\r\n12-21 20:54:03.090: E/mm-camera(427): mct_pipeline_process_set:1981: Couldn't find stream\r\n12-21 20:54:03.091: E/mm-camera-sensor(427): module_sensor_stop_session:737 session 1\r\n12-21 20:54:03.092: E/mm-camera(427): stats_module_stop_session: list =0xb8e0aaf0, remove port =0xb8e10f40 name=stats_sink from module=0xb8d6d330, name=stats\r\n12-21 20:54:03.092: E/mm-camera(427): stats_module_stop_session: 1 port =0xb8e10f40 name=stats_sink \r\n12-21 20:54:03.092: E/mm-camera(427): stats_module_stop_session: 2 port =0xb8e10f40 name=stats_sink \r\n12-21 20:54:03.092: E/mm-camera-CORE(427): mot_af_deinit: E\r\n12-21 20:54:03.093: E/mm-camera(427): is_module_stop_session: Enter\r\n12-21 20:54:03.093: E/mm-camera(427): is_module_stop_session: Exit successful\r\n12-21 20:54:03.094: E/mm-camera(427): stats_module_stop_session: 3 port =0xb8e10f40 name=stats_sink \r\n12-21 20:54:03.094: E/hdr(427): Port hdr_sink_0 destroyed\r\n12-21 20:54:03.094: E/hdr(427): Port hdr_src_0 destroyed\r\n12-21 20:54:03.094: E/hdr(427): Session id 0x1 stopped\r\n12-21 20:54:03.094: E/mm-camera-img(427): module_imglib_free_port:1667 port 0xb8ff0c98 p_mct_mod 0xb8d720f8\r\n12-21 20:54:03.096: D/QCameraStateMachine(296): static void* qcamera::QCameraStateMachine::smEvtProcRoutine(void*): X\r\n12-21 20:54:03.096: D/QCamera2HWI(296): [KPI Perf] static int qcamera::QCamera2HardwareInterface::close_camera_device(hw_device_t*): X\r\n12-21 20:54:03.096: E/mm-camera(427): c2d_module_stop_session:323, info: stopping session 1 ...\r\n12-21 20:54:03.096: E/mm-camera(427): c2d_thread_process_pipe_message:716, C2D_THREAD_MSG_ABORT: c2d_thread exiting..\r\n12-21 20:54:03.096: E/mm-camera(427): c2d_module_stop_session:365, info: session 1 stopped.\r\n12-21 20:54:03.097: I/QCameraHalWatchdog(296): Stopped Watchdog Thread...\r\n12-21 20:54:03.129: D/dalvikvm(1080): GC_EXPLICIT freed 1272K, 37% free 24428K/38544K, paused 4ms+16ms, total 170ms\r\n12-21 20:54:03.133: I/MediaFocusControl(1080): AudioFocus abandonAudioFocus() from android.media.AudioManager@426bf020\r\n12-21 20:54:03.135: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb7366650 successful\r\n12-21 20:54:03.138: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb7366598 successful\r\n12-21 20:54:03.138: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb7366148 successful\r\n12-21 20:54:03.138: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb73b1860 successful\r\n12-21 20:54:03.138: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb73627b0 successful\r\n12-21 20:54:03.138: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb736a788 successful\r\n12-21 20:54:03.138: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb7362288 successful\r\n12-21 20:54:03.138: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb7368490 successful\r\n12-21 20:54:03.141: W/libutils.threads(296): Thread (this=0xb73650c0): don't call join() from this Thread object's thread. It's a guaranteed deadlock!\r\n12-21 20:54:03.142: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb72fc3d0 successful\r\n12-21 20:54:03.143: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb72fc318 successful\r\n12-21 20:54:03.143: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb72fc248 successful\r\n12-21 20:54:03.143: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb7352450 successful\r\n12-21 20:54:03.143: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb73c5d88 successful\r\n12-21 20:54:03.143: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb73c5c60 successful\r\n12-21 20:54:03.144: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb72fc750 successful\r\n12-21 20:54:03.144: I/OMXNodeInstance(296): OMX_FreeBuffer for buffer header 0xb72fc550 successful\r\n12-21 20:54:03.145: W/libutils.threads(296): Thread (this=0xb72b69c0): don't call join() from this Thread object's thread. It's a guaranteed deadlock!\r\n12-21 20:54:03.146: E/mm-camera-sensor(427): Got some events\r\n12-21 20:54:03.146: E/mm-camera-sensor(427): sensor_thread_func:152 sensor_thread_func:Sensor thread is exiting\r\n12-21 20:54:03.159: W/ContextImpl(1338): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.frameworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114 \r\n12-21 20:54:03.209: I/Adreno-EGL(1369): : EGL 1.4 QUALCOMM build: RGURRAM_AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04.02.048.056+PATCH[ES]_msm8226_LNX.LA.3.5.1_RB1__release_ENGG ()\r\n12-21 20:54:03.209: I/Adreno-EGL(1369): OpenGL ES Shader Compiler Version: E031.24.00.15\r\n12-21 20:54:03.209: I/Adreno-EGL(1369): Build Date: 05/27/14 Tue\r\n12-21 20:54:03.209: I/Adreno-EGL(1369): Local Branch: \r\n12-21 20:54:03.209: I/Adreno-EGL(1369): Remote Branch: quic/LNX.LA.3.5.1_RB1.2\r\n12-21 20:54:03.209: I/Adreno-EGL(1369): Local Patches: f0931b5dfb60c536e5444f9053822ad191929528 ES2.0: Fix for seg fault in VBO validation\r\n12-21 20:54:03.209: I/Adreno-EGL(1369): 0c6f7c995c347b2eb54a9baa340cab69ba279634 es20: Remove extra-logging info\r\n12-21 20:54:03.209: I/Adreno-EGL(1369): Reconstruct Branch: AU_LINUX_ANDROID_LNX.LA.3.5.1_RB1.04.04\r\n12-21 20:54:03.240: W/HandlerScheduledExecuto(1369): Task does not implement UiTask. Consider using NamedUiRunnable for eww@425a1d90\r\n12-21 20:54:03.290: V/RenderScript(1369): 0x6370c7d8 Launching thread(s), CPUs 4\r\n12-21 20:54:03.301: V/AlarmManager(1080): sending alarm Alarm{437cdeb8 type 0 com.android.vending}\r\n12-21 20:54:03.312: I/ActivityManager(1080): Start proc com.android.vending for service com.android.vending/com.google.android.finsky.services.ContentSyncService: pid=17903 uid=10039 gids={50039, 3003, 1028, 1015}\r\n12-21 20:54:03.428: I/MicrophoneInputStream(1605): mic_starting fib@4259dca8\r\n12-21 20:54:03.429: I/HotwordRecognitionRnr(1605): Starting hotword detection.\r\n12-21 20:54:03.450: V/msm8974_platform(296): platform_update_usecase_from_source: input source :6\r\n12-21 20:54:03.450: V/msm8974_platform(296): platform_get_input_snd_device: enter: out_device(0) in_device(0x4)\r\n12-21 20:54:03.450: V/msm8974_platform(296): platform_get_input_snd_device: exit: in_snd_device(voice-rec-mic)\r\n12-21 20:54:03.450: D/audio_hw_primary(296): select_devices: out_snd_device(0: ) in_snd_device(62: voice-rec-mic)\r\n\r\n{code}", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2014-12-21T22:59:22.000+0000", "updated": "2014-12-21T22:59:22.000+0000" }, { "id": "337271", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "more logs:\r\n\r\n(there is some Android related trash along the relevant logs, but we can get a glimpse on several camera related stuff and some buffer error messages)\r\n\r\n{code:log}\r\n12-21 21:02:49.835: E/mm-camera-sensor(427): port_sensor_ext_link_func:198 ide 10003\r\n12-21 21:02:49.836: E/mm-camera(427): mct_pipeline_send_ctrl_events: Send Set Parm events\r\n12-21 21:02:49.836: E/mm-camera(427): isp_util_set_la: vfe not started yet\r\n12-21 21:02:49.836: E/mm-camera-sensor(427): module_sensor_event_control_set_parm:2539 CAM_INTF_PARM_LED_MODE 0 \r\n12-21 21:02:49.837: E/mm-camera-sensor(427): sensor_util_assign_bundle_id:243 bundle_id=15104, num_streams=2\r\n12-21 21:02:49.837: E/mm-camera-sensor(427): sensor_util_assign_bundle_id:246 bundle stream id 2\r\n12-21 21:02:49.837: E/mm-camera-sensor(427): sensor_util_assign_bundle_id:246 bundle stream id 3\r\n12-21 21:02:49.837: E/mm-camera(427): module_drsd_port_event_func:605] Invalid type for reprocess \r\n12-21 21:02:49.837: E/mm-camera(427): module_faceproc_port_event_func:541] Invalid type for reprocess 10002 10002\r\n12-21 21:02:49.837: E/mm-camera-sensor(427): sensor_util_assign_bundle_id:243 bundle_id=15104, num_streams=2\r\n12-21 21:02:49.837: E/mm-camera-sensor(427): sensor_util_assign_bundle_id:246 bundle stream id 2\r\n12-21 21:02:49.837: E/mm-camera-sensor(427): sensor_util_assign_bundle_id:246 bundle stream id 3\r\n12-21 21:02:49.838: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.839: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.839: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.840: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.840: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.841: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.841: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.842: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.843: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.845: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.845: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.846: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.846: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.847: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.847: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.853: E/mm-camera-intf(296): mm_stream_request_buf: buf_num = 15, stream type = 7\r\n12-21 21:02:49.859: E/mm-camera(427): mct_pipeline_process_set: stream_type = 7\r\n12-21 21:02:49.860: E/QCameraParameters(296): int qcamera::QCameraParameters::getPreviewHalPixelFormat() const: format 17\r\n12-21 21:02:49.891: E/MDMCTBK(372): MdmCutbackHndler,Could not open ''\r\n12-21 21:02:49.924: E/mm-camera-intf(296): mm_stream_request_buf: buf_num = 17, stream type = 1\r\n12-21 21:02:49.929: E/mm-camera(427): mct_pipeline_process_set: stream_type = 1\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): module_sensor_stream_on:1494 ide 10002 SENSOR_START_STREAM\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:819 any bundle started 0\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:857 bundle_info->stream_on_count 1\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:859 bundle_info->bundle_config.num_of_streams 2\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:860 s_bundle->stream_on_count 0\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:861 is_bundle_started 0\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): modules_sensor_set_new_resolution:957 SENSOR_SET_RESOLUTION 3264*1836 mask a\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): sensor_set_resolution:1799 Enter\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): sensor_set_resolution:1823 Requested width 3264, height 1836\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): sensor_set_resolution:1825 Requested stream mask a hfr mode 0 Cur fps 30.000000\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): sensor_pick_resolution:1585 Enter\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): sensor_pick_resolution:1604 Height 1836 Width 3264\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): sensor_pick_resolution:1621 req_asp_ratio 177 stream type a\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): sensor_pick_resolution:1710 req_asp_ratio 177 sup_asp_ratio 133\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): sensor_pick_resolution:1714 fabs 44\r\n12-21 21:02:49.929: E/mm-camera-sensor(427): sensor_pick_resolution:1724 pick res 0\r\n12-21 21:02:49.930: E/mm-camera-sensor(427): sensor_pick_resolution:1776 Exit\r\n12-21 21:02:49.930: E/mm-camera-sensor(427): sensor_set_resolution:1834 Curr Res ID 8 New Res ID 0 New FPS 30.000000\r\n12-21 21:02:49.936: E/mm-camera-sensor(427): sensor_set_resolution:1980 Exit\r\n12-21 21:02:49.936: E/mm-camera(427): decide_isp_nums_camif: num_isp = 1\r\n12-21 21:02:49.936: E/mm-camera(427): decide_isp_nums_camif: num_isp = 1\r\n12-21 21:02:49.936: E/mm-camera(427): port_isp_module_event: E, identity = 0x10002, IFACE_SET_STREAM_CONFIG\r\n12-21 21:02:49.936: E/mm-camera(427): isp_sink_port_stream_config: E, session_id = 1, stream_id = 2, stream_type = 1\r\n12-21 21:02:49.936: E/mm-camera(427): isp_sink_port_stream_config: session_id = 1, stream_id = 2, is_split = 0\r\n12-21 21:02:49.936: E/mm-camera(427): isp_sink_port_stream_config: old vfe_id_mask = 0x0, new vfe_id_mask = 0x1\r\n12-21 21:02:49.937: E/mm-camera(427): port_isp_module_event: E, identity = 0x10003, IFACE_SET_STREAM_CONFIG\r\n12-21 21:02:49.938: E/mm-camera(427): isp_sink_port_stream_config: E, session_id = 1, stream_id = 3, stream_type = 3\r\n12-21 21:02:49.938: E/mm-camera(427): isp_sink_port_stream_config: session_id = 1, stream_id = 3, is_split = 0\r\n12-21 21:02:49.938: E/mm-camera(427): isp_sink_port_stream_config: old vfe_id_mask = 0x1, new vfe_id_mask = 0x1\r\n12-21 21:02:49.938: E/mm-camera-CORE(427): af_get_params: Focus is not initialized yet\r\n12-21 21:02:49.938: E/mm-camera-CORE(427): af_get_params: Focus is not initialized yet\r\n12-21 21:02:49.939: E/mm-camera-sensor(427): chromatix_whitebalance_calibration:558 Calibrating WB for libchromatix_imx179_preview.so\r\n12-21 21:02:49.939: E/mm-camera-sensor(427): chromatix_whitebalance_calibration:615 Calibration Factor: r_over_g_calib_factor = 1.012088, b_over_g_calib_factor = 1.023975\r\n12-21 21:02:49.939: E/mm-camera(427): isp_tintless_config: tint_correction_strength updated to 4\r\n12-21 21:02:49.939: E/mm-camera(427): isp_tintless_update_chromatix_params: lib returned config err=0\r\n12-21 21:02:49.940: E/mm-camera-CORE(427): af_get_params: Focus is not initialized yet\r\n12-21 21:02:49.940: E/mm-camera-CORE(427): af_get_params: Focus is not initialized yet\r\n12-21 21:02:49.940: E/mm-camera-CORE(427): mot_af_deinit: E\r\n12-21 21:02:49.940: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10002, STREAMON\r\n12-21 21:02:49.962: E/MDMCTBK(372): MdmCutbackHndler,Could not open ''\r\n12-21 21:02:49.986: E/mm-camera(427): module_faceproc_port_event_func:493] STREAMON 0\r\n12-21 21:02:49.986: E/mm-camera(427): module_faceproc_client_exec:820] 1280x720\r\n12-21 21:02:49.986: E/mm-camera-img(427): faceproc_comp_eng_config:1472] ###min_face_size 70\r\n12-21 21:02:49.986: E/mm-camera-img(427): Face Album FILE EXISTS\r\n12-21 21:02:49.987: E/mm-camera(427): c2d_module_handle_streamon_event:1222, identity=0x10002, stream-on done\r\n12-21 21:02:49.987: E/AEC_PORT(427): ddd exp 0.032935 iso 158\r\n12-21 21:02:49.987: E/mm-camera(427): cpp_hw_params_update_wnr_params:2891 invalid trigger input 0.000000\r\n12-21 21:02:49.987: E/mm-camera(427): isp_streamon: E, session_id = 1, stream_id = 2, active_count = 0 flash=FALSE\r\n12-21 21:02:49.987: E/mm-camera(427): isp_proc_streamon: E, session_id = 1, stream_id = 2, stream_type = 1\r\n12-21 21:02:49.987: E/mm-camera(427): isp_util_get_user_streams: bundling use case - bundle mask = 0x3,streamon_bundle = 0x1, nop\r\n12-21 21:02:49.987: E/mm-camera(427): isp_streamon: X, session_id = 1, rc = 0\r\n12-21 21:02:49.987: E/mm-camera(427): port_isp_send_streamon_done_event_downstream: ignore this streamon, hal_bundling_mask = 0x3, streamon_mask = 0x1\r\n12-21 21:02:49.987: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10002, STREAMON, ret = 0\r\n12-21 21:02:49.988: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.991: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:49.995: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:50.009: E/mm-camera-intf(296): mm_stream_request_buf: buf_num = 9, stream type = 3\r\n12-21 21:02:50.016: E/mm-camera(427): mct_pipeline_process_set: stream_type = 3\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): module_sensor_stream_on:1494 ide 10003 SENSOR_START_STREAM\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:819 any bundle started 0\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:857 bundle_info->stream_on_count 2\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:859 bundle_info->bundle_config.num_of_streams 2\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:860 s_bundle->stream_on_count 0\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:861 is_bundle_started 0\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_on:869 stream_on_count=2, w=3264, h=1836, stream_mask=a\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): modules_sensor_set_new_resolution:957 SENSOR_SET_RESOLUTION 3264*1836 mask a\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_set_resolution:1799 Enter\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_set_resolution:1823 Requested width 3264, height 1836\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_set_resolution:1825 Requested stream mask a hfr mode 0 Cur fps 30.000000\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_pick_resolution:1585 Enter\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_pick_resolution:1604 Height 1836 Width 3264\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_pick_resolution:1621 req_asp_ratio 177 stream type a\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_pick_resolution:1710 req_asp_ratio 177 sup_asp_ratio 133\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_pick_resolution:1714 fabs 44\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_pick_resolution:1724 pick res 0\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_pick_resolution:1776 Exit\r\n12-21 21:02:50.016: E/mm-camera-sensor(427): sensor_set_resolution:1834 Curr Res ID 0 New Res ID 0 New FPS 30.000000\r\n12-21 21:02:50.016: E/mm-camera(427): port_isp_module_event: E, identity = 0x10002, IFACE_SET_STREAM_CONFIG\r\n12-21 21:02:50.016: E/mm-camera(427): isp_sink_port_stream_config: E, session_id = 1, stream_id = 2, stream_type = 1\r\n12-21 21:02:50.016: E/mm-camera(427): isp_sink_port_stream_config: session_id = 1, stream_id = 2, is_split = 0\r\n12-21 21:02:50.016: E/mm-camera(427): isp_sink_port_stream_config: old vfe_id_mask = 0x1, new vfe_id_mask = 0x1\r\n12-21 21:02:50.017: E/mm-camera(427): port_isp_module_event: E, identity = 0x10003, IFACE_SET_STREAM_CONFIG\r\n12-21 21:02:50.017: E/mm-camera(427): isp_sink_port_stream_config: E, session_id = 1, stream_id = 3, stream_type = 3\r\n12-21 21:02:50.017: E/mm-camera(427): isp_sink_port_stream_config: session_id = 1, stream_id = 3, is_split = 0\r\n12-21 21:02:50.017: E/mm-camera(427): isp_sink_port_stream_config: old vfe_id_mask = 0x1, new vfe_id_mask = 0x1\r\n12-21 21:02:50.017: E/mm-camera-sensor(427): chromatix_whitebalance_calibration:550 Calibrating WB for libchromatix_imx179_snapshot.so\r\n12-21 21:02:50.017: E/mm-camera-sensor(427): chromatix_whitebalance_calibration:615 Calibration Factor: r_over_g_calib_factor = 1.012088, b_over_g_calib_factor = 1.023975\r\n12-21 21:02:50.017: E/mm-camera(427): isp_tintless_config: same cfg as current\r\n12-21 21:02:50.017: E/mm-camera(427): isp_tintless_update_chromatix_params: lib returned config err=0\r\n12-21 21:02:50.017: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10003, STREAMON\r\n12-21 21:02:50.018: E/mm-camera(427): isp_streamon: E, session_id = 1, stream_id = 3, active_count = 0 flash=FALSE\r\n12-21 21:02:50.018: E/mm-camera(427): isp_proc_streamon: E, session_id = 1, stream_id = 3, stream_type = 3\r\n12-21 21:02:50.018: E/mm-camera(427): isp_ch_util_sync_stream_cfg_to_channel: cannot find channel, Adding new channel for stream id 2\r\n12-21 21:02:50.018: E/mm-camera(427): isp_add_meta_channel: no meta data, session_id = 1, stream_id = 2\r\n12-21 21:02:50.018: E/mm-camera(427): isp_ch_util_sync_stream_cfg_to_channel: cannot find channel, Adding new channel for stream id 3\r\n12-21 21:02:50.018: E/mm-camera(427): isp_add_meta_channel: no meta data, session_id = 1, stream_id = 3\r\n12-21 21:02:50.018: E/mm-camera(427): isp_validate_buf_request: total 17 current buffer count 17 for stream 2\r\n12-21 21:02:50.018: E/mm-camera(427): isp_validate_buf_request: total 9 current buffer count 3 for stream 3\r\n12-21 21:02:50.018: E/mm-camera(427): isp_fmt_to_pix_pattern: format 31\r\n12-21 21:02:50.018: E/mm-camera(427): isp_fmt_to_pix_pattern: format 31\r\n12-21 21:02:50.019: E/mm-camera(427): isp_axi_stream_set_skip_pattern: cannot find stream, session_id = 0, stream_id = 0\r\n12-21 21:02:50.020: E/SchedPolicy(427): sched_setscheduler failed: tid 20976, errno=1\r\n12-21 21:02:50.020: E/SchedPolicy(427): sched_setscheduler failed: tid 20977, errno=1\r\n12-21 21:02:50.020: E/SchedPolicy(427): sched_setscheduler failed: tid 20978, errno=1\r\n12-21 21:02:50.020: E/SchedPolicy(427): sched_setscheduler failed: tid 20979, errno=1\r\n12-21 21:02:50.020: E/mm-camera(427): isp_hw_action: first start, hw thread for streamon/ack\r\n12-21 21:02:50.020: E/mm-camera(427): isp_thread_proc_cmd: start/stop, thread_data = 0xb8fe6354, action_code = 0\r\n12-21 21:02:50.021: E/mm-camera(427): isp_tintless_config: cfg: 10x13 mesh, 8x8 subgrid, subgrid sz 34x34\r\n12-21 21:02:50.021: E/mm-camera(427): isp_tintless_mesh_config: lib returned mesh config err=0\r\n12-21 21:02:50.021: E/mm-camera(427): isp_fmt_to_pix_pattern: format 31\r\n12-21 21:02:50.021: E/mm-camera(427): color_xform_config_601_to_601 for stream Encoder\r\n12-21 21:02:50.021: E/mm-camera(427): color_xform_config_601_to_601 for stream Viewfinder\r\n12-21 21:02:50.021: E/mm-camera(427): linearization_set_params: param_id is not supported in this module\r\n12-21 21:02:50.021: E/mm-camera(427): mesh_rolloff_set_params: param_id is not supported in this module\r\n12-21 21:02:50.021: E/mm-camera(427): wb_set_params: param_id is not supported in this module\r\n12-21 21:02:50.021: E/mm-camera(427): demosaic_set_params: param_id 7, is not supported in this module\r\n12-21 21:02:50.021: E/mm-camera(427): demux_set_params: param_id 7, is not supported in this module\r\n12-21 21:02:50.021: E/mm-camera(427): color_correct_set_effect: saturation level = 1.000000, asd_saturae_adjust = 1.000000\r\n12-21 21:02:50.021: E/mm-camera(427): gamma_set_spl_effect: Best shot enabled, skip set effect\r\n12-21 21:02:50.021: E/mm-camera(427): vfe_gamma_set_contrast: Warning Best shot enabled, ignore contast\r\n12-21 21:02:50.021: E/mm-camera(427): mce_set_params: param_id is not supported in this module\r\n12-21 21:02:50.021: E/mm-camera(427): sce_set_params: param_id is not supported in this module\r\n12-21 21:02:50.022: E/mm-camera(427): la_hist_trigger_update: luma target from AEC = 0! use default LA curve\r\n12-21 21:02:50.022: E/mm-camera(427): isp_tintless_stat_config: pointer okay \r\n12-21 21:02:50.022: E/mm-camera(427): isp_tintless_config: cfg: camif 3264x2448, elem sz 102x102, elems 24x32\r\n12-21 21:02:50.022: E/mm-camera(427): isp_tintless_stat_config: lib returned config err=0\r\n12-21 21:02:50.022: E/mm-camera(427): isp_fmt_to_pix_pattern: format 31\r\n12-21 21:02:50.024: E/mm-camera(427): stats_action_buf_config: cfg = 1, stats_mask = 0x7b8\r\n12-21 21:02:50.024: E/mm-camera(427): isp_validate_buf_request: total 4 current buffer count 4 for stream -2147418109\r\n12-21 21:02:50.024: E/mm-camera(427): isp_ch_util_streamon: session_id = 1, vfe_mask = 0x1, async streamon, rc = 0\r\n12-21 21:02:50.024: E/mm-camera(427): isp_hw_action: hw_thread for ack\r\n12-21 21:02:50.024: E/mm-camera(427): isp_validate_buf_request: total 4 current buffer count 4 for stream -2147418108\r\n12-21 21:02:50.025: E/mm-camera(427): isp_validate_buf_request: total 4 current buffer count 4 for stream -2147418107\r\n12-21 21:02:50.025: E/mm-camera(427): isp_validate_buf_request: total 4 current buffer count 4 for stream -2147418105\r\n12-21 21:02:50.026: E/mm-camera(427): isp_validate_buf_request: total 4 current buffer count 4 for stream -2147418104\r\n12-21 21:02:50.026: E/mm-camera(427): isp_validate_buf_request: total 4 current buffer count 4 for stream -2147418103\r\n12-21 21:02:50.026: E/mm-camera(427): isp_validate_buf_request: total 4 current buffer count 4 for stream -2147418102\r\n12-21 21:02:50.027: E/mm-camera(427): stats_action: stats mask = 0x7b8\r\n12-21 21:02:50.029: E/mm-camera(427): isp_axi_util_subscribe_v4l2_event: event_type = 0x8000100, is_subscribe = 1\r\n12-21 21:02:50.030: E/mm-camera(427): isp_ch_util_streamon: session_id = 1, sync ack done\r\n12-21 21:02:50.030: E/mm-camera(427): isp_thread_proc_cmd: start/stop ack done, thread_data = 0xb8fe6354, action_code = 1, rc = 0\r\n12-21 21:02:50.030: E/mm-camera(427): isp_streamon: X, session_id = 1, rc = 0\r\n12-21 21:02:50.030: E/mm-camera(427): port_isp_send_streamon_done_event_downstream: notify stream done downstream\r\n12-21 21:02:50.030: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10003, STREAMON, ret = 0\r\n12-21 21:02:50.031: E/mm-camera(427): ispif_proc_streamon: ispif_hw_reset done\r\n12-21 21:02:50.031: E/mm-camera(427): stream id 2, stream num_meta 0\r\n12-21 21:02:50.031: E/mm-camera(427): ispif_streamon: session_id = 1, active_streams = 2\r\n12-21 21:02:50.032: E/mm-camera-sensor(427): module_sensor_stream_on:1901 ide 10003 SENSOR_START_STREAM\r\n12-21 21:02:50.032: E/mm-camera-sensor(427): module_sensor_stream_on: Sending start bus message\r\n12-21 21:02:50.032: E/mm-camera(427): start_sof_check_thread: Starting SOF timeout thread\r\n12-21 21:02:50.032: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:50.032: E/mm-camera(427): mct_pipeline_send_ctrl_events: Send Set Parm events\r\n12-21 21:02:50.032: E/mm-camera-sensor(427): module_sensor_event_control_set_parm:2539 CAM_INTF_PARM_LED_MODE 0 \r\n12-21 21:02:50.038: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:50.042: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:50.045: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:50.049: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:50.053: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:50.066: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10003, UPDATE_BUF_INFO\r\n12-21 21:02:50.066: E/mm-camera(427): isp_validate_buf_request: total 9 current buffer count 4 for stream 3\r\n12-21 21:02:50.067: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10003, UPDATE_BUF_INFO, ret = 0\r\n12-21 21:02:50.070: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10003, UPDATE_BUF_INFO\r\n12-21 21:02:50.070: E/mm-camera(427): isp_validate_buf_request: total 9 current buffer count 5 for stream 3\r\n12-21 21:02:50.070: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10003, UPDATE_BUF_INFO, ret = 0\r\n12-21 21:02:50.073: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10003, UPDATE_BUF_INFO\r\n12-21 21:02:50.073: E/mm-camera(427): isp_validate_buf_request: total 9 current buffer count 6 for stream 3\r\n12-21 21:02:50.073: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10003, UPDATE_BUF_INFO, ret = 0\r\n12-21 21:02:50.076: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10003, UPDATE_BUF_INFO\r\n12-21 21:02:50.076: E/mm-camera(427): isp_validate_buf_request: total 9 current buffer count 7 for stream 3\r\n12-21 21:02:50.076: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10003, UPDATE_BUF_INFO, ret = 0\r\n12-21 21:02:50.079: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10003, UPDATE_BUF_INFO\r\n12-21 21:02:50.079: E/mm-camera(427): isp_validate_buf_request: total 9 current buffer count 8 for stream 3\r\n12-21 21:02:50.080: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10003, UPDATE_BUF_INFO, ret = 0\r\n12-21 21:02:50.082: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10003, UPDATE_BUF_INFO\r\n12-21 21:02:50.082: E/mm-camera(427): isp_validate_buf_request: total 9 current buffer count 9 for stream 3\r\n12-21 21:02:50.083: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10003, UPDATE_BUF_INFO, ret = 0\r\n12-21 21:02:50.135: E/mm-camera(427): la_hist_trigger_update: luma target from AEC = 0! use default LA curve\r\n12-21 21:02:50.217: E/MotISP_GPU(296): int MotISP_GPU::Init(int, int): GPU resolution: 1280x720\r\n12-21 21:02:50.217: E/QCamera2HWI(296): [KPI Perf] static void qcamera::QCamera2HardwareInterface::preview_stream_cb_routine(mm_camera_super_buf_t*, qcamera::QCameraStream*, void*) : PROFILE_FIRST_PREVIEW_FRAME\r\n12-21 21:02:50.297: E/QCameraParameters(296): [KPI Perf] int32_t qcamera::QCameraParameters::setFaceDetection(bool): PROFILE_FACE_DETECTION_VALUE = 1 num_fd = 5\r\n12-21 21:02:50.297: E/mm-camera(427): mct_pipeline_send_ctrl_events: Send Set Parm events\r\n12-21 21:02:52.105: W/ActivityManager(1080): Scheduling restart of crashed service com.facebook.katana/com.facebook.push.mqtt.service.MqttPushService in 1000ms\r\n12-21 21:02:52.579: E/msm8974_platform(296): platform_update_tpa_poll: Could not get ctl for mixer cmd - TPA6165 POLL ACC DET\r\n12-21 21:02:53.353: W/dalvikvm(21090): VFY: unable to resolve static field 24031 (a) in Lcom/facebook/katana/app/WorkAppTypes;\r\n12-21 21:02:53.353: W/dalvikvm(21090): VFY: unable to resolve static field 24032 (b) in Lcom/facebook/katana/app/WorkAppTypes;\r\n12-21 21:02:53.483: E/dalvik-internals(21090): Failed to look up ladDumpProfiles\r\n12-21 21:02:53.483: E/dalvik-internals(21090): Failed to look up ladResetProfiles\r\n12-21 21:02:53.483: E/dalvik-internals(21090): Failed to look up ladPrintHeaderInfo\r\n12-21 21:02:53.802: E/dalvik-internals(21090): Failed to find vmList in gDvm. Going to brute-force search for LinearAllocHdr.\r\n12-21 21:02:54.282: E/FbInjectorInitializer(21090): Multi-binding Key[type=com.facebook.bugreporter.BugReportExtraFileMapProvider, annotation=[none]] wasn't declared.\r\n12-21 21:02:54.282: E/FbInjectorInitializer(21090): Multi-binding Key[type=com.facebook.gk.SessionlessGatekeeperSetProvider, annotation=[none]] wasn't declared.\r\n12-21 21:02:54.282: E/FbInjectorInitializer(21090): Multi-binding Key[type=com.facebook.auth.privacy.IHaveUserData, annotation=[none]] wasn't declared.\r\n12-21 21:02:54.282: E/FbInjectorInitializer(21090): Multi-binding Key[type=com.facebook.gk.GatekeeperSetProvider, annotation=[none]] wasn't declared.\r\n12-21 21:02:54.282: E/FbInjectorInitializer(21090): Multi-binding Key[type=com.facebook.auth.component.AuthComponent, annotation=[none]] wasn't declared.\r\n12-21 21:02:54.401: W/fb4a(:):StaticBindingVerifier(21090): Verify\r\n12-21 21:02:54.481: E/QCamera2HWI(296): [KPI Perf] static int qcamera::QCamera2HardwareInterface::auto_focus(camera_device*) : E PROFILE_AUTO_FOCUS\r\n12-21 21:02:54.482: E/mm-camera-CORE(427): af_set_parameters: Unsupported parameter:0\r\n12-21 21:02:54.866: E/dalvikvm(21090): Could not find class 'org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl', referenced from method com.facebook.ssl.openssl.check.CheckOpenSSLImplHasRequiredMethods.\r\n12-21 21:02:54.866: W/dalvikvm(21090): VFY: unable to resolve const-class 10097 (Lorg/apache/harmony/xnet/provider/jsse/OpenSSLSocketImpl;) in Lcom/facebook/ssl/openssl/check/CheckOpenSSLImplHasRequiredMethods;\r\n12-21 21:02:54.869: E/dalvikvm(21090): Could not find class 'org.apache.harmony.xnet.provider.jsse.OpenSSLSocketFactoryImpl', referenced from method com.facebook.ssl.openssl.reflect.SSLParametersGetter.\r\n12-21 21:02:54.869: W/dalvikvm(21090): VFY: unable to resolve const-class 10096 (Lorg/apache/harmony/xnet/provider/jsse/OpenSSLSocketFactoryImpl;) in Lcom/facebook/ssl/openssl/reflect/SSLParametersGetter;\r\n12-21 21:02:54.870: E/dalvikvm(21090): Could not find class 'org.apache.harmony.xnet.provider.jsse.SSLParametersImpl', referenced from method com.facebook.ssl.openssl.reflect.SSLParametersGetter.a\r\n12-21 21:02:54.870: W/dalvikvm(21090): VFY: unable to resolve check-cast 10099 (Lorg/apache/harmony/xnet/provider/jsse/SSLParametersImpl;) in Lcom/facebook/ssl/openssl/reflect/SSLParametersGetter;\r\n12-21 21:02:54.873: E/dalvikvm(21090): Could not find class 'org.apache.harmony.xnet.provider.jsse.SSLParametersImpl', referenced from method com.facebook.ssl.openssl.reflect.SSLSessionTimeoutSetter.\r\n12-21 21:02:54.873: W/dalvikvm(21090): VFY: unable to resolve const-class 10099 (Lorg/apache/harmony/xnet/provider/jsse/SSLParametersImpl;) in Lcom/facebook/ssl/openssl/reflect/SSLSessionTimeoutSetter;\r\n12-21 21:02:54.874: W/dalvikvm(21090): VFY: unable to find class referenced in signature (Lorg/apache/harmony/xnet/provider/jsse/SSLParametersImpl;)\r\n12-21 21:02:54.875: E/dalvikvm(21090): Could not find class 'org.apache.harmony.xnet.provider.jsse.ClientSessionContext', referenced from method com.facebook.ssl.openssl.reflect.SSLSessionTimeoutSetter.a\r\n12-21 21:02:54.875: W/dalvikvm(21090): VFY: unable to resolve check-cast 10095 (Lorg/apache/harmony/xnet/provider/jsse/ClientSessionContext;) in Lcom/facebook/ssl/openssl/reflect/SSLSessionTimeoutSetter;\r\n12-21 21:02:54.877: W/dalvikvm(21090): VFY: unable to find class referenced in signature (Lorg/apache/harmony/xnet/provider/jsse/SSLParametersImpl;)\r\n12-21 21:02:54.877: W/dalvikvm(21090): Unable to resolve superclass of Lcom/facebook/ssl/openssl/TicketEnabledOpenSSLSocketImplWrapper; (10098)\r\n12-21 21:02:54.878: W/dalvikvm(21090): Link of class 'Lcom/facebook/ssl/openssl/TicketEnabledOpenSSLSocketImplWrapper;' failed\r\n12-21 21:02:54.879: E/dalvikvm(21090): Could not find class 'com.facebook.ssl.openssl.TicketEnabledOpenSSLSocketImplWrapper', referenced from method com.facebook.ssl.openssl.TicketEnabledOpenSSLSocketFactoryHelper.a\r\n12-21 21:02:54.879: W/dalvikvm(21090): VFY: unable to resolve new-instance 7319 (Lcom/facebook/ssl/openssl/TicketEnabledOpenSSLSocketImplWrapper;) in Lcom/facebook/ssl/openssl/TicketEnabledOpenSSLSocketFactoryHelper;\r\n12-21 21:02:54.881: W/dalvikvm(21090): Unable to resolve superclass of Lcom/facebook/ssl/openssl/TicketEnabledOpenSSLSocketImplWrapper; (10098)\r\n12-21 21:02:54.881: W/dalvikvm(21090): Link of class 'Lcom/facebook/ssl/openssl/TicketEnabledOpenSSLSocketImplWrapper;' failed\r\n12-21 21:02:54.883: E/MDMCTBK(372): MdmCutbackHndler,Could not open ''\r\n12-21 21:02:54.970: E/MDMCTBK(372): MdmCutbackHndler,Could not open ''\r\n12-21 21:02:56.178: E/mm-camera(427): mct_pipeline_send_ctrl_events: Send Set Parm events\r\n12-21 21:02:56.190: E/mm-camera(427): mct_pipeline_send_ctrl_events: Send Set Parm events\r\n12-21 21:02:56.191: E/mm-camera-sensor(427): module_sensor_event_control_set_parm:2539 CAM_INTF_PARM_LED_MODE 0 \r\n12-21 21:02:56.192: E/mm-camera(427): mct_pipeline_send_ctrl_events: Send Set Parm events\r\n12-21 21:02:56.192: E/mm-camera-sensor(427): module_sensor_event_control_set_parm:2539 CAM_INTF_PARM_LED_MODE 0 \r\n12-21 21:02:56.197: E/QCamera2HWI(296): [KPI Perf] static int qcamera::QCamera2HardwareInterface::take_picture(camera_device*): E PROFILE_TAKE_PICTURE\r\n12-21 21:02:56.197: E/QCamera2HWI(296): int qcamera::QCamera2HardwareInterface::takePicture(): numSnapshot = 1\r\n12-21 21:02:56.198: E/QCameraHWI_Mem(296): int qcamera::QCameraMemory::alloc(int, int, int) : No memory pool available\r\n12-21 21:02:56.201: E/mm-camera(427): mct_pipeline_add_stream_to_linked_streams: linked streams: 0x28a\r\n12-21 21:02:56.201: E/mm-camera(427): mct_stream_start_link: Starting offline stream linking \r\n12-21 21:02:56.201: E/mm-camera(427): mct_pproc_sink_port_caps_reserve:185] The port 0xb8d70f00 is not free\r\n12-21 21:02:56.201: E/mm-camera-img(427): wd_comp_init:130] mode 0\r\n12-21 21:02:56.201: E/mm-camera-img(427): module_imglib_create_port:1756 portname imglib_d2_i1\r\n12-21 21:02:56.201: E/mm-camera-img(427): module_imglib_port_check_caps_reserve:1493 port already reserved or invalid identity 65540\r\n12-21 21:02:56.201: E/mm-camera-img(427): module_imglib_port_check_caps_reserve:1557] Cap reserve failed \r\n12-21 21:02:56.202: E/QCameraHWI_Mem(296): int qcamera::QCameraMemoryPool::allocateBuffer(qcamera::QCameraMemory::QCameraMemInfo&, int, int, bool, cam_stream_type_t) : Buffer not found!\r\n12-21 21:02:56.250: E/mm-camera-img(427): img_alloc_ion:780 Ion allocation success virtaddr : 2875600896 fd 126\r\n12-21 21:02:56.256: E/mm-camera-intf(296): mm_stream_request_buf: buf_num = 1, stream type = 9\r\n12-21 21:02:56.260: E/mm-camera(427): mct_pipeline_process_set: stream_type = 9\r\n12-21 21:02:56.260: E/mm-camera(427): module_wnr_port_event_func:753] WNR STREAMON\r\n12-21 21:02:56.264: E/QCameraParameters(296): [KPI Perf] int32_t qcamera::QCameraParameters::setFaceDetection(bool): PROFILE_FACE_DETECTION_VALUE = 0 num_fd = 5\r\n12-21 21:02:56.266: E/mm-camera(427): mct_pipeline_send_ctrl_events: Send Set Parm events\r\n12-21 21:02:56.476: E/mm-camera(427): isp_set_hal_stream_param: Type 68 not supported\r\n12-21 21:02:56.477: E/mm-camera(427): isp_set_hal_stream_param: Type 136 not supported\r\n12-21 21:02:56.477: E/mm-camera(427): isp_set_hal_stream_param: Type 68 not supported\r\n12-21 21:02:56.477: E/mm-camera(427): module_drsd_port_event_func:605] Invalid type for reprocess \r\n12-21 21:02:56.477: E/mm-camera(427): module_faceproc_port_event_func:541] Invalid type for reprocess 10002 10002\r\n12-21 21:02:56.477: E/mm-camera(427): isp_set_hal_stream_param: Type 136 not supported\r\n12-21 21:02:56.478: E/mm-camera(427): module_drsd_port_event_func:605] Invalid type for reprocess \r\n12-21 21:02:56.478: E/mm-camera(427): module_faceproc_port_event_func:541] Invalid type for reprocess 10002 10002\r\n12-21 21:02:56.478: E/mm-camera(427): pproc_module_handle_reprocess_online:1138 ###AEC update 381.727570 15.687500\r\n12-21 21:02:56.478: E/mm-camera(427): pproc_module_handle_reprocess_online:1198 input buf index 3 input stream id 3\r\n12-21 21:02:56.478: E/mm-camera(427): cpp_module_handle_set_parm_event:1537, CAM_INTF_PARM_ROTATION,rotation 2\r\n12-21 21:02:56.478: E/mm-camera(427): cpp_module_set_parm_rotation:1346,SET UP STREAM ROTATION\r\n12-21 21:02:56.478: E/mm-camera(427): pproc_module_handle_reprocess_online:1246 input buf fd 118 type 2 size 9089024\r\n12-21 21:02:56.478: E/mm-camera(427): module_wnr_port_event_func:857] identity 10004\r\n12-21 21:02:56.478: E/mm-camera(427): module_wnr_client_exec:583]CDS enabled 0\r\n12-21 21:02:56.478: E/mm-camera(427): module_wnr_configure_client : IMG_COMP_SET_PARAM (QWD_EARLY_CB) rc 0\r\n12-21 21:02:56.478: E/mm-camera-img(427): wd_comp_calibrate:547] new_gain 15.802854 \r\n12-21 21:02:56.478: E/mm-camera-img(427): wd_comp_calibrate:560] WNR trigger mode= 1, calibration_level = 15.687500\r\n12-21 21:02:56.478: E/mm-camera-img(427): wd_comp_calibrate:596] binStart = 5, binEnd = 5 \r\n12-21 21:02:56.479: E/mm-camera-DENOISE(427): DSP enable\r\n12-21 21:02:56.497: E/mm-camera(427): Signal Process, process ids 427 427\r\n12-21 21:02:56.555: E/mm-camera-DENOISE(427): DSP Proc:47632, Seg W:3264, Seg H:528 rc 0\r\n12-21 21:02:56.575: E/msm8974_platform(296): platform_update_tpa_poll: Could not get ctl for mixer cmd - TPA6165 POLL ACC DET\r\n12-21 21:02:56.577: E/mm-camera-DENOISE(427): ARM Proc1:74534, Seg W:1632, Seg H:518\r\n12-21 21:02:56.599: E/mm-camera-DENOISE(427): ARM Proc1:95172, Seg W:1632, Seg H:528\r\n12-21 21:02:56.600: E/mm-camera(427): dynamic_work_partition_execute:555] Error while reading from queue\r\n12-21 21:02:56.609: E/mm-camera-DENOISE(427): ARM Proc1:104364, Seg W:1632, Seg H:528\r\n12-21 21:02:56.610: E/mm-camera(427): dynamic_work_partition_execute:555] Error while reading from queue\r\n12-21 21:02:56.611: E/AudioSink(296): received unknown event type: 1 inside CallbackWrapper !\r\n12-21 21:02:56.617: E/mm-camera-DENOISE(427): DSP Proc:56144, Seg W:3264, Seg H:592 rc 0\r\n12-21 21:02:56.658: E/mm-camera-DENOISE(427): ARM Proc1:75755, Seg W:1632, Seg H:518\r\n12-21 21:02:56.659: E/mm-camera(427): dynamic_work_partition_execute:555] Error while reading from queue\r\n12-21 21:02:56.688: E/mm-camera-DENOISE(427): DSP Proc:62848, Seg W:3264, Seg H:592 rc 0\r\n12-21 21:02:56.743: E/mm-camera-DENOISE(427): DSP Proc:49591, Seg W:3264, Seg H:508 rc 0\r\n12-21 21:02:56.746: E/mm-camera(427): All segments received \r\n12-21 21:02:56.746: E/mm-camera(427): Segment recd count i 0 count 4\r\n12-21 21:02:56.746: E/mm-camera(427): Segment recd count i 1 count 1\r\n12-21 21:02:56.746: E/mm-camera(427): Segment recd count i 2 count 1\r\n12-21 21:02:56.746: E/mm-camera(427): Segment recd count i 3 count 2\r\n12-21 21:02:56.767: E/mm-camera-DENOISE(427): Reinterleave time 21245\r\n12-21 21:02:56.769: E/mm-camera-img(427): wd_comp_invalidate_buffer: 1042:] buffer_size 9054336\r\n12-21 21:02:56.770: E/mm-camera-img(427): wd_comp_invalidate_buffer: 1055:] Cache Invalidation Success\r\n12-21 21:02:56.770: E/mm-camera-img(427): wd_comp_process_frame:1204] Wavelet Denoise Success\r\n12-21 21:02:56.770: E/mm-camera(427): module_wnr_client_divert_exec:896] after wait rc 0\r\n12-21 21:02:56.770: E/mm-camera(427): gjia module_wnr_client_divert_exec:915] p_client->early_cb_enabled0\r\n12-21 21:02:56.793: E/mm-jpeg-intf(296): mm_jpeg_create_session:2152] >>>> Work bufs need 1\r\n12-21 21:02:56.794: W/linker(296): libmmjpeg.so has text relocations. This is wasting memory and is a security risk. Please fix.\r\n12-21 21:02:56.795: E/qomx_image_core(296): OMX_GetHandle:236] get instance pts is 0xb73a34f0\r\n12-21 21:02:56.796: E/mm-still(296): OMX_ERRORTYPE qomx_component_set_callbacks(OMX_HANDLETYPE, OMX_CALLBACKTYPE*, OMX_PTR): 181: This ptr addr 0xb73a34f0\r\n12-21 21:02:56.796: E/qomx_image_core(296): OMX_GetHandle:260] Success\r\n12-21 21:02:56.796: E/mm-jpeg-intf(296): mm_jpeg_meta_enc_key:648] Key is invalid\r\n12-21 21:02:56.798: E/jpeg_hw(296): jpege_lib_init:400] handler 0x0 0x0 0x0\r\n12-21 21:02:56.798: E/QCamera2HWI(296): qcamera::QCameraExif* qcamera::QCamera2HardwareInterface::getExifData(): getExifGpsDataTimeStamp failed\r\n12-21 21:02:56.822: E/QCameraPostProc(296): [KPI Perf] int32_t qcamera::QCameraPostProcessor::encodeData(qcamera::qcamera_jpeg_data_t*, uint8_t&) : PROFILE_JPEG_JOB_START\r\n12-21 21:02:56.822: E/mm-jpeg-intf(296): mm_jpeg_start_job:2006] X\r\n12-21 21:02:56.822: E/mm-jpeg-intf(296): mm_jpeg_get_session:55] client_idx 0 session_idx 0\r\n12-21 21:02:56.823: E/mm-jpeg-intf(296): mm_jpeg_configure_job_params:1335] Work buffer 57 0xb0da7000 WorkBufSize: 12220416\r\n12-21 21:02:56.825: E/mm-jpeg-intf(296): mm_jpeg_configure_job_params: config makernote data failed\r\n12-21 21:02:56.825: E/mm-still(296): virtual OMX_ERRORTYPE OMXJpegEncoder::startEncode():389] startEncode()\r\n12-21 21:02:56.825: E/jpeg_hw(296): jpege_lib_hw_config:583] Version 30000000\r\n12-21 21:02:56.825: E/jpeg_hw(296): jpege_lib_hw_fe_buffer_cfg:304] w 1836 h 3264 stride 1856 scanline 3264\r\n12-21 21:02:56.825: E/jpeg_hw(296): we_buffer_cfg PLN0_WR_BUFFER_SIZE = 67120798\r\n12-21 21:02:56.825: E/jpeg_hw(296): we_buffer_cfg PLN0_WR_STRIDE = 11934\r\n12-21 21:02:56.825: E/jpeg_hw(296): we_buffer_cfg PLN0_WR_HSTEP = 11934\r\n12-21 21:02:56.825: E/jpeg_hw(296): we_buffer_cfg PLN0_WR_VSTEP = 1024\r\n12-21 21:02:56.885: E/mm-jpeg-intf(296): [KPI Perf] : PROFILE_JPEG_FBD\r\n12-21 21:02:56.885: E/mm-jpeg-intf(296): mm_jpegenc_destroy_job:2288] Exif entry count 24 6\r\n12-21 21:02:56.885: E/mm-jpeg-intf(296): mm_jpeg_queue_remove_job_by_job_id:2776] found matching job id\r\n12-21 21:02:56.888: E/QCameraPostProc(296): int32_t qcamera::QCameraPostProcessor::processJpegEvt(qcamera::qcamera_jpeg_evt_payload_t*) : Calling upperlayer callback to store JPEG image\r\n12-21 21:02:56.888: E/QCameraPostProc(296): [KPI Perf] int32_t qcamera::QCameraPostProcessor::processJpegEvt(qcamera::qcamera_jpeg_evt_payload_t*): PROFILE_JPEG_CB \r\n12-21 21:02:56.888: E/mm-jpeg-intf(296): mm_jpeg_get_session:55] client_idx 0 session_idx 0\r\n12-21 21:02:56.890: E/qomx_image_core(296): OMX_FreeHandle:331] \r\n12-21 21:02:56.890: E/qomx_image_core(296): get_idx_from_handle:290] comp_idx 0 inst_idx 0\r\n12-21 21:02:56.890: E/qomx_image_core(296): OMX_FreeHandle:366] Success\r\n12-21 21:02:56.890: E/mm-jpeg-intf(296): mm_jpeg_remove_session_idx:118] client_idx 0 session_idx 0\r\n12-21 21:02:56.890: E/mm-camera(427): mct_pipeline_process_set: stream_type = 9\r\n12-21 21:02:56.890: E/mm-camera-img(427): wd_comp_abort:1374] p_base->mode = 0\r\n12-21 21:02:56.890: E/mm-camera(427): cpp_module_handle_streamoff_event:1989] iden:0x10004, linked_params:0x0\r\n12-21 21:02:56.890: E/mm-camera(427): cpp_hardware_process_streamoff:510] skip_iden:0x0, duplicate_stream_status:0x0\r\n12-21 21:02:56.891: E/mm-camera-img(427): wd_comp_abort:1374] p_base->mode = 0\r\n12-21 21:02:56.895: E/mm-camera(427): mct_stream_streamoff: Enter\r\n12-21 21:02:56.895: E/mm-camera(427): mct_pipeline_send_ctrl_events: Send Set Parm events\r\n12-21 21:02:58.475: E/msm8974_platform(296): platform_update_tpa_poll: Could not get ctl for mixer cmd - TPA6165 POLL ACC DET\r\n12-21 21:02:58.519: W/ContextImpl(1338): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.frameworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114 \r\n12-21 21:02:58.540: E/bsthal(1080): disable accel, orig state: 1\r\n12-21 21:02:58.548: E/QCamera2HWI(296): [KPI Perf] static void qcamera::QCamera2HardwareInterface::stop_preview(camera_device*): E PROFILE_STOP_PREVIEW\r\n12-21 21:02:58.549: E/mm-camera(427): mct_pipeline_send_ctrl_events: Send Set Parm events\r\n12-21 21:02:58.551: E/mm-camera(427): mct_pipeline_process_set: stream_type = 3\r\n12-21 21:02:58.551: E/mm-camera-sensor(427): module_sensor_module_process_event:3106 ide 10003 MCT_EVENT_CONTROL_STREAMOFF\r\n12-21 21:02:58.551: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10003, STREAMOFF\r\n12-21 21:02:58.551: E/mm-camera(427): isp_streamoff: E, session_id = 1, stream_id = 3, active_count = 2\r\n12-21 21:02:58.552: E/mm-camera(427): isp_proc_streamoff: E,session_id = 1, stream_id= 3, stream_type= 3 meta 0\r\n12-21 21:02:58.552: E/mm-camera(427): isp_hw_action: last pix stop, pix_cnt = 2, cnt = 2\r\n12-21 21:02:58.552: E/mm-camera(427): isp_thread_proc_cmd: start/stop, thread_data = 0xb8fe6354, action_code = 2\r\n12-21 21:02:58.552: E/mm-camera(427): isp_ch_util_streamoff: session_id = 1, vfe_mask = 0x1, async streamoff, rc = 0\r\n12-21 21:02:58.552: E/mm-camera(427): isp_hw_action: hw_thread for ack\r\n12-21 21:02:58.552: E/mm-camera(427): isp_axi_util_subscribe_v4l2_event: event_type = 0x8000100, is_subscribe = 0\r\n12-21 21:02:58.682: E/mm-camera(427): isp_axi_unreg_buf: session_id = 1, stream_id = 2, buf_handle = 0x10000\r\n12-21 21:02:58.683: E/mm-camera(427): isp_axi_unreg_buf: session_id = 1, stream_id = 3, buf_handle = 0x20001\r\n12-21 21:02:58.683: E/mm-camera(427): stats_action_buf_config: cfg = 0, stats_mask = 0x7b8\r\n12-21 21:02:58.687: E/mm-camera(427): isp_thread_proc_cmd: start/stop ack done, thread_data = 0xb8fe6354, action_code = 3, rc = 0\r\n12-21 21:02:58.687: E/mm-camera(427): isp_ch_util_streamoff: session_id = 1, sync ack done\r\n12-21 21:02:58.688: E/mm-camera(427): isp_streamoff: X, session_id = 1, rc = 0\r\n12-21 21:02:58.688: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10003, STREAMOFF, ret = 0\r\n12-21 21:02:58.688: E/mm-camera(427): stream id 3, stream num_meta 0\r\n12-21 21:02:58.746: E/mm-camera(427): ispif_streamoff: session_id = 1, active_streams = 0\r\n12-21 21:02:58.746: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_off:929 any bundle started 0\r\n12-21 21:02:58.747: E/mm-camera(427): mct_pipeline_process_set: stream_type = 1\r\n12-21 21:02:58.747: E/mm-camera-sensor(427): module_sensor_module_process_event:3106 ide 10002 MCT_EVENT_CONTROL_STREAMOFF\r\n12-21 21:02:58.747: E/mm-camera(427): port_isp_mct_ctrl_cmd: E, identity = 0x10002, STREAMOFF\r\n12-21 21:02:58.748: E/mm-camera(427): c2d_module_handle_streamoff_event:1268, info: doing stream-off for identity 0x10002\r\n12-21 21:02:58.754: E/mm-camera(427): module_faceproc_port_event_func:510] STREAMOFF 0\r\n12-21 21:02:58.754: E/mm-camera-img(427): faceproc_comp_abort:608] state 2\r\n12-21 21:02:58.754: E/mm-camera-img(427): faceproc_comp_abort:635] X\r\n12-21 21:02:58.754: E/mm-camera(427): af_fdprio_process_fd_roi:440 Process FD_ROI data\r\n12-21 21:02:58.754: E/mm-camera-CORE(427): aec_set_fd_roi: invalid CPP width and height (0, 0)!\r\n12-21 21:02:58.756: E/mm-camera(427): c2d_module_handle_streamoff_event:1387, info: stream-off done for identity 0x10002\r\n12-21 21:02:58.756: E/mm-camera(427): cpp_module_handle_streamoff_event:1989] iden:0x10002, linked_params:0x0\r\n12-21 21:02:58.756: E/mm-camera(427): cpp_hardware_process_streamoff:510] skip_iden:0x0, duplicate_stream_status:0x0\r\n12-21 21:02:58.756: E/mm-camera(427): isp_streamoff: E, session_id = 1, stream_id = 2, active_count = 0\r\n12-21 21:02:58.756: E/mm-camera(427): isp_proc_streamoff: E,session_id = 1, stream_id= 2, stream_type= 1 meta 0\r\n12-21 21:02:58.756: E/mm-camera(427): isp_streamoff: X, session_id = 1, rc = 0\r\n12-21 21:02:58.756: E/mm-camera(427): port_isp_mct_ctrl_cmd: X, identity = 0x10002, STREAMOFF, ret = 0\r\n12-21 21:02:58.756: E/mm-camera-sensor(427): module_sensor_is_ready_for_stream_off:929 any bundle started 0\r\n12-21 21:02:58.756: E/mm-camera-sensor(427): module_sensor_module_process_event:3125 ide 10002 MCT_EVENT_CONTROL_STREAMOFF\r\n12-21 21:02:58.756: E/mm-camera-sensor(427): module_sensor_module_process_event: Sending stop bus message\r\n12-21 21:02:58.756: E/mm-camera(427): stop_sof_check_thread: Stopping SOF timeout thread\r\n12-21 21:02:58.757: E/mm-camera(427): mct_pipeline_process_set: stream_type = 7\r\n12-21 21:02:58.780: E/mm-camera(427): mct_stream_streamoff: Enter\r\n12-21 21:02:58.780: E/mm-camera(427): mct_stream_streamoff: Enter\r\n12-21 21:02:58.780: E/mm-camera-sensor(427): port_sensor_unlink_func:220 ide 10002\r\n12-21 21:02:58.780: E/mm-camera-sensor(427): port_sensor_caps_unreserve:183 ide 10002\r\n12-21 21:02:58.781: E/mm-camera(427): c2d_port_check_caps_unreserve:170, identity=0x10002\r\n12-21 21:02:58.781: E/mm-camera(427): c2d_port_check_caps_unreserve:179, identity=0x10002, unreserved\r\n12-21 21:02:58.784: E/mm-camera(427): c2d_port_check_caps_unreserve:170, identity=0x10002\r\n12-21 21:02:58.784: E/mm-camera(427): c2d_port_check_caps_unreserve:179, identity=0x10002, unreserved\r\n12-21 21:02:58.784: E/mm-camera-img(427): faceproc_comp_abort:608] state 1\r\n12-21 21:02:58.784: E/mm-camera-img(427): faceproc_save_album:795] Error No album \r\n12-21 21:02:58.784: E/mm-camera-img(427): faceproc_comp_eng_destroy: Album save failed -1\r\n12-21 21:02:58.785: E/mm-camera(427): mct_stream_streamoff: Enter\r\n12-21 21:02:58.785: E/mm-camera-sensor(427): port_sensor_unlink_func:220 ide 10003\r\n12-21 21:02:58.785: E/mm-camera-sensor(427): port_sensor_caps_unreserve:183 ide 10003\r\n12-21 21:02:58.786: E/mm-camera(427): q3a_thread_aecawb_stop:346 MSG_STOP_THREAD\r\n12-21 21:02:58.808: E/qomx_image_core(296): OMX_Deinit:118] Complete\r\n12-21 21:02:58.810: E/QCameraPostProc(296): int32_t qcamera::QCameraPostProcessor::deinit(): Jpeg closed, rc = 0, mJpegClientHandle = a00\r\n12-21 21:02:58.818: E/mm-camera(427): mct_pipeline_get_stream: no children\r\n12-21 21:02:58.818: E/mm-camera(427): mct_pipeline_process_set:1981: Couldn't find stream\r\n12-21 21:02:58.819: E/mm-camera-sensor(427): module_sensor_stop_session:737 session 1\r\n12-21 21:02:58.819: E/mm-camera(427): stats_module_stop_session: list =0xb90bb908, remove port =0xb9055f68 name=stats_sink from module=0xb8d6d330, name=stats\r\n12-21 21:02:58.820: E/mm-camera(427): stats_module_stop_session: 1 port =0xb9055f68 name=stats_sink \r\n12-21 21:02:58.820: E/mm-camera(427): stats_module_stop_session: 2 port =0xb9055f68 name=stats_sink \r\n12-21 21:02:58.821: E/hdr(427): Session id 0x1 stopped\r\n12-21 21:02:58.821: E/mm-camera-img(427): module_imglib_free_port:1667 port 0xb9105768 p_mct_mod 0xb8d720f8\r\n12-21 21:02:58.822: E/mm-camera-CORE(427): mot_af_deinit: E\r\n12-21 21:02:58.824: E/mm-camera(427): c2d_module_stop_session:323, info: stopping session 1 ...\r\n12-21 21:02:58.824: E/mm-camera(427): c2d_thread_process_pipe_message:716, C2D_THREAD_MSG_ABORT: c2d_thread exiting..\r\n12-21 21:02:58.824: E/mm-camera(427): is_module_stop_session: Enter\r\n12-21 21:02:58.824: E/mm-camera(427): is_module_stop_session: Exit successful\r\n12-21 21:02:58.824: E/mm-camera(427): stats_module_stop_session: 3 port =0xb9055f68 name=stats_sink \r\n12-21 21:02:58.825: E/mm-camera(427): c2d_module_stop_session:365, info: session 1 stopped.\r\n12-21 21:02:58.829: W/libutils.threads(296): Thread (this=0xb73036e8): don't call join() from this Thread object's thread. It's a guaranteed deadlock!\r\n12-21 21:02:58.842: W/ContextImpl(1338): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.frameworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114 \r\n12-21 21:02:58.876: E/mm-camera-sensor(427): Got some events\r\n12-21 21:02:58.876: E/mm-camera-sensor(427): sensor_thread_func:152 sensor_thread_func:Sensor thread is exiting\r\n12-21 21:02:58.896: W/HandlerScheduledExecuto(1369): Task does not implement UiTask. Consider using NamedUiRunnable for eww@425a1d90\r\n12-21 21:02:59.457: E/cutils(279): Failed to mkdirat(/storage/sdcard1/Android): Read-only file system\r\n12-21 21:02:59.457: W/Vold(279): Returning OperationFailed - no handler for errno 30\r\n12-21 21:02:59.458: W/ContextImpl(21090): Failed to ensure directory: /storage/sdcard1/Android/data/com.facebook.katana/cache\r\n12-21 21:02:59.561: W/BroadcastQueue(1080): Permission Denial: broadcasting Intent { act=android.net.conn.INET_CONDITION_ACTION flg=0x4000010 (has extras) } from null (pid=-1, uid=-1) requires com.facebook.permission.prod.FB_APP_COMMUNICATION due to registered receiver BroadcastFilter{428498f8 u0 ReceiverList{4285ab80 21090 com.facebook.katana/10114/u0 remote:428b35d8}}\r\n12-21 21:02:59.561: W/BroadcastQueue(1080): Permission Denial: broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 (has extras) } from null (pid=-1, uid=-1) requires com.facebook.permission.prod.FB_APP_COMMUNICATION due to registered receiver BroadcastFilter{428498f8 u0 ReceiverList{4285ab80 21090 com.facebook.katana/10114/u0 remote:428b35d8}}\r\n12-21 21:02:59.677: W/fb4a(:):AbstractMqttPushService(21090): Attempt to start service that is already started\r\n12-21 21:02:59.869: E/MDMCTBK(372): MdmCutbackHndler,Could not open ''\r\n12-21 21:02:59.953: E/MDMCTBK(372): MdmCutbackHndler,Could not open ''\r\n12-21 21:02:59.976: W/BroadcastQueue(1080): Permission Denial: broadcasting Intent { act=android.net.conn.CONNECTIVITY_CHANGE flg=0x4000010 (has extras) } from null (pid=-1, uid=-1) requires com.facebook.permission.prod.FB_APP_COMMUNICATION due to registered receiver BroadcastFilter{42bbfc58 u0 ReceiverList{42bbfbf8 21090 com.facebook.katana/10114/u0 remote:42c05638}}\r\n12-21 21:03:00.288: W/CursorWindow(21090): Window is full: requested allocation 2040 bytes, free space 872 bytes, window size 2097152 bytes\r\n12-21 21:03:00.371: E/msm8974_platform(296): platform_update_tpa_poll: Could not get ctl for mixer cmd - TPA6165 POLL ACC DET\r\n12-21 21:03:01.677: E/msm8974_platform(296): platform_update_tpa_poll: Could not get ctl for mixer cmd - TPA6165 POLL ACC DET\r\n12-21 21:03:08.295: W/MessageQueue(9383): Handler (android.os.Handler) {423a5b48} sending message to a Handler on a dead thread\r\n12-21 21:03:08.295: W/MessageQueue(9383): java.lang.RuntimeException: Handler (android.os.Handler) {423a5b48} sending message to a Handler on a dead thread\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat android.os.MessageQueue.enqueueMessage(MessageQueue.java:320)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat android.os.Handler.enqueueMessage(Handler.java:626)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat android.os.Handler.sendMessageAtTime(Handler.java:595)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat android.os.Handler.sendMessageDelayed(Handler.java:566)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat android.os.Handler.post(Handler.java:326)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat com.facebook.fbservice.a.s.a(DefaultBlueServiceOperation.java:780)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat com.facebook.fbservice.a.s.b(DefaultBlueServiceOperation.java:685)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat com.facebook.fbservice.a.v.b(DefaultBlueServiceOperation.java:636)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat com.facebook.fbservice.service.l.a(BlueServiceQueue.java:518)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat com.facebook.fbservice.service.l.e(BlueServiceQueue.java:383)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat com.facebook.fbservice.service.l.d(BlueServiceQueue.java:58)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat com.facebook.fbservice.service.o.run(BlueServiceQueue.java:280)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat com.facebook.common.executors.ax.run(ListenableScheduledFutureImpl.java:58)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat android.os.Handler.handleCallback(Handler.java:733)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat android.os.Handler.dispatchMessage(Handler.java:95)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat android.os.Looper.loop(Looper.java:136)\r\n12-21 21:03:08.295: W/MessageQueue(9383): \tat android.os.HandlerThread.run(HandlerThread.java:61)\r\n12-21 21:03:30.266: W/ContextImpl(1338): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.PauseResumeTrigger.handleFrameworkEvent:53 com.motorola.motocare.internal.frameworkevents.FwEventMonitor$FrameworkListener.processFrameworkEvent:114 \r\n12-21 21:03:30.369: E/audio_a2dp_hw(296): adev_set_parameters: ERROR: set param called even when stream out is null\r\n12-21 21:03:31.044: E/LocSvc_libulp(1080): W/int ulp_brain_transition_all_providers(), no QUIPC/GNSS transition logic run due to both engines are OFF \r\n12-21 21:03:31.924: W/IdleConnectionHandler(21090): Removing a connection that never existed!\r\n12-21 21:03:31.926: W/IdleConnectionHandler(21090): Removing a connection that never existed!\r\n12-21 21:03:32.528: W/ContextImpl(1338): Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1608 android.content.ContextWrapper.startService:494 android.content.ContextWrapper.startService:494 com.motorola.motocare.internal.batterystats.BatteryStatsAction.onReceive:33 android.app.ActivityThread.handleReceiver:2434 \r\n12-21 21:03:35.518: W/View(1154): requestLayout() improperly called by android.widget.TextClock{41f62d10 V.ED.... ......ID 148,0-440,213 #7f0a004b app:id/clock_view} during layout: running second layout pass\r\n12-21 21:03:35.519: W/View(1154): requestLayout() improperly called by android.widget.TextClock{42106758 V.ED.... ......ID 190,0-397,38 #7f0a0050 app:id/date_view} during layout: running second layout pass\r\n12-21 21:03:35.579: W/EventLogAggregator(16329): Unknown tag: snet\r\n12-21 21:03:35.579: W/EventLogAggregator(16329): Unknown tag: snet_gcore\r\n12-21 21:03:35.579: W/EventLogAggregator(16329): Unknown tag: snet_launch_service\r\n12-21 21:03:46.387: W/ContentResolver(21534): Failed to get type for: content://com.android.calendar (Unknown URL content://com.android.calendar)\r\n12-21 21:03:51.479: W/ContextImpl(1338): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.ProcessKillTrigger.sendTrigger:147 com.motorola.motocare.internal.frameworkevents.ProcessKillTrigger.handleLmkKill:337 \r\n12-21 21:03:51.481: W/ContextImpl(1338): Calling a method in the system process without a qualified user: android.app.ContextImpl.sendBroadcast:1252 android.content.ContextWrapper.sendBroadcast:365 com.motorola.motocare.util.TriggerHelper$TriggerBuilder.send:76 com.motorola.motocare.internal.frameworkevents.ProcessKillTrigger.sendTrigger:147 com.motorola.motocare.internal.frameworkevents.ProcessKillTrigger.handleLmkKill:337 \r\n\r\n{code}", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2014-12-21T23:07:04.000+0000", "updated": "2014-12-21T23:07:04.000+0000" }, { "id": "337272", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "The following logs are from Google Play Developer console itself, and are coming from my app in production.\r\n\r\nthose logs are generated when the users have problems taking pictures (app crashes just after picture is taken):\r\n\r\njava.lang.ClassCastException\r\nin android.widget.AbsListView.onRestoreInstanceState\r\n\r\n\r\nby device\r\n\r\nXperia S (LT26i)\t1\t4.8%\r\nGalaxy Grand duos (baffin)\t4\t19.0%\r\nDROID RAZR HD (vanquish_u)\t1\t4.8%\r\nMoto X (ghost)\t1\t4.8%\r\nOptimus L5 (m4)\t2\t9.5%\r\nOptimus 4X HD (x3)\t1\t4.8%\r\nGalaxy Core 2 (kanas)\t1\t4.8%\r\nMoto G (titan_umtsds)\t1\t4.8%\r\nGalaxy S4 (jflte)\t1\t4.8%\r\nMoto G (falcon_umtsds)\t1\t4.8%\r\nLG-P875 (l1e)\t1\t4.8%\r\nLG Optimus L5 II (vee5ds)\t1\t4.8%\r\nLG Optimus L1II (v1ts)\t1\t4.8%\r\nLG Optimus G Pro (geefhd)\t1\t4.8%\r\nMoto G w/4G LTE (peregrine)\t1\t4.8%\r\nGalaxy S3 Mini (golden)\t2\t9.5%\r\n\r\n\r\nby Android version\r\n\r\nAndroid 4.4\t7\t33.3%\r\nAndroid 4.1\t7\t33.3%\r\nAndroid 4.2\t4\t19.0%\r\nAndroid 4.0.3 - 4.0.4\t3\t14.3%\r\n\r\n\r\n{code}\r\njava.lang.RuntimeException: Unable to start activity ComponentInfo{br.com.pinion/org.appcelerator.titanium.TiActivity}: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.AbsListView$SavedState\r\nat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2198)\r\nat android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2225)\r\nat android.app.ActivityThread.handleRelaunchActivity(ActivityThread.java:3745)\r\nat android.app.ActivityThread.access$700(ActivityThread.java:151)\r\nat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307)\r\nat android.os.Handler.dispatchMessage(Handler.java:99)\r\nat android.os.Looper.loop(Looper.java:153)\r\nat android.app.ActivityThread.main(ActivityThread.java:5096)\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:790)\r\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:557)\r\nat dalvik.system.NativeStart.main(Native Method)\r\nCaused by: java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to android.widget.AbsListView$SavedState\r\nat android.widget.AbsListView.onRestoreInstanceState(AbsListView.java:1860)\r\nat android.view.View.dispatchRestoreInstanceState(View.java:12005)\r\nat android.view.ViewGroup.dispatchThawSelfOnly(ViewGroup.java:2604)\r\nat android.widget.AdapterView.dispatchRestoreInstanceState(AdapterView.java:790)\r\nat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2590)\r\nat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2590)\r\nat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2590)\r\nat android.view.ViewGroup.dispatchRestoreInstanceState(ViewGroup.java:2590)\r\nat android.view.View.restoreHierarchyState(View.java:11983)\r\nat com.android.internal.policy.impl.PhoneWindow.restoreHierarchyState(PhoneWindow.java:1805)\r\nat android.app.Activity.onRestoreInstanceState(Activity.java:1089)\r\nat org.appcelerator.titanium.TiBaseActivity.onRestoreInstanceState(TiBaseActivity.java:1297)\r\nat android.app.Activity.performRestoreInstanceState(Activity.java:1061)\r\nat android.app.Instrumentation.callActivityOnRestoreInstanceState(Instrumentation.java:1133)\r\nat android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2176)\r\n... 12 more\r\n{code}", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2014-12-21T23:22:13.000+0000", "updated": "2014-12-21T23:22:13.000+0000" }, { "id": "337299", "author": { "name": "xcash", "key": "xcash", "displayName": "Paolo Casciello", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ingo the \"not reproducible\" is just hilarious. I was invited to an Appcelerator presentation with one of your SVP and he was telling the world about how Appcelerator is big, good and shiny. And a multimillion company.\r\nI believe that. I like working in Titanium. Almost all the time. But when we, developers that made a choice on a platform, face a bug like this. A stupid problem like this i would say. Well.. where are the \"multimillions\"? Where is the Gartner magic quadrant? \r\nThis is only the task of taking a photo in the first mobile os. \r\nI, and others, said this is happening on a lot of devices... I have this problem on my MotoG Second edition, a mid 2014 phone. You can't find this phone??? Motorola is shipping it right now in the US from their site in 2 days! Cmon.\r\n\r\nWhy one would buy Appcelerator Platform if the basic things are a nightmare?\r\n\r\nYgor did a great job on listing devices and collecting errors. \r\nProbably a lot is related to the saving/restore state thing.\r\n\r\nI'm really not good in Java so I can't help debugging native code or i would've helped in a more constructive way.\r\n", "updateAuthor": { "name": "xcash", "key": "xcash", "displayName": "Paolo Casciello", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-12-22T09:36:17.000+0000", "updated": "2014-12-22T09:36:17.000+0000" }, { "id": "337305", "author": { "name": "bicpi", "key": "bicpi", "displayName": "Philipp Rieber", "active": true, "timeZone": "Europe/Berlin" }, "body": "I can hardly believe that it is not reproducible. It is Android related, but how do native developpers solve this issue. I cannot imagine that this is a common issue on native Android apps?\r\n\r\nBtw, I've experienced the same issue with a plain HTML page using an input field of type file which accepts image/* data- Camera opens and after taking the picture and returning to the app, the browser tab reloads. This happens on my S3 and my Moto G (ALL the time) but not on an iPhone or IPad.\r\n\r\nPhilipp", "updateAuthor": { "name": "bicpi", "key": "bicpi", "displayName": "Philipp Rieber", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-12-22T13:09:02.000+0000", "updated": "2014-12-22T13:09:02.000+0000" }, { "id": "337315", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~xcash] This is not a constructive way to have a conversation.\r\n\r\nThe reason this issue is not resolved, is both not for lack of trying, nor for an unwillingness to solve the issue--you may note that the priority still says \"Critical.\" As I have said before, we HAVE bought phones people say can reproduce the problem. And we can't. Including ones on Ygor's list. I've also said if someone HAS a phone that does demonstrate the issue, we will buy it and pay to ship it, an offer I made as far back as April. If you have a MotoG Second edition that reproduces the problem, we'll buy that one and pay for the phone and shipping.\r\n\r\n[~bicpi] You mention that using the https://github.com/shaithana/cordova-plugin-wezka-nativecamera plugin solved the issue for you (after a fashion)?\r\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-22T15:43:58.000+0000", "updated": "2014-12-22T15:43:58.000+0000" }, { "id": "337320", "author": { "name": "xcash", "key": "xcash", "displayName": "Paolo Casciello", "active": true, "timeZone": "Europe/Berlin" }, "body": "Ingo, I'm not here to blame anyone. I'm here to find a solution and to help other developers facing this issue.\r\n\r\nEventually in January I'll be happy to ship our phones reproducing the problem. Meanwhile i was debugging this thing more deeply. \r\nAs I said before this is related to the saveState and resumeState pattern around an Intent call.\r\n\r\nI don't want to speak too early but i'm nearly ready to publish a workaround that seems to work (and since it's a workaround it will have some disadvantages but instead of being unable to take photo...).\r\n\r\nThe plugin mentioned by Philippe doesn't resolve the issue, it simply does a different thing: It creates a custom camera app inside the native app.\r\nThis means the plugin needs to be maintained to support every new camera features and such things.\r\n\r\nLater i'll post the workaround when finished and tested.", "updateAuthor": { "name": "xcash", "key": "xcash", "displayName": "Paolo Casciello", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-12-22T16:25:35.000+0000", "updated": "2014-12-22T16:25:35.000+0000" }, { "id": "337323", "author": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have to chime in here. Sorry. \r\n\r\nAppcelerator has SOASTA ( Appcelerator Test). It can use devices remotely. \r\nCould someone with the affected hardware just coordinate with Ingo and let AppC debug remotely?\r\n\r\nI had no idea that this was a long standing bug. This has never come up in any of my training courses.\r\nI have however had a camera on Android take too high resolution of an image and have **that** crash the App.\r\n\r\n**Out of curiosity to those who have this issue, try setting your camera to 8 Mega Pixels.** \r\nDoes it still crash?\r\n\r\n", "updateAuthor": { "name": "sophrinix", "key": "sophrinix", "displayName": "Andrew McElroy", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-12-22T16:56:07.000+0000", "updated": "2014-12-22T17:01:01.000+0000" }, { "id": "337344", "author": { "name": "xcash", "key": "xcash", "displayName": "Paolo Casciello", "active": true, "timeZone": "Europe/Berlin" }, "body": "Here it is. Finally a *workaround*.\r\n\r\nWhat I discovered is that, on the affected devices, the app seems to be destroyed right after the intent is called.\r\nFrom my logs the activity's lifecycle (from a Titanium point of view) is:\r\n\r\nonCreate -> onStart -> onResume (start the camera intent) -> onPause -> onStop (here the app activity gets destroyed *but no onDestroy callback is called* ) (the user here is not doing anything, native camera app is showing up and waiting)\r\nWhen the camera returns (cancel or success, no matter) the app goes through a full restart: onCreate -> onStart -> onResume.\r\n\r\nMy workaround:\r\n\r\n* use the intent passing a file url on externalstorage where to save the image.\r\n* set an app property in Ti.App.Properties to do a kind of \"savestate\". Just a boolean \"waiting_picture\".\r\n* add a callback on Activity's onResume to handle the resume step checking for the above property.\r\n* in case of that property present, search for the file and use it.\r\n\r\n* and of course the code to manage the case when the app doesn't get destroyed and the intent callback is called.\r\n\r\nYou can find a workaround example (it's self-explanatory) here: https://gist.github.com/xcash/e0e363e04999ba9c8ad2\r\nI'll be improving it later but it's fully working.\r\nFor any questions feel free to contact me commenting that gist or here in this issue.\r\n\r\nOf course the users will see the app restarting (splash screen and everything) but it is what they're seeing already now.. except for the picture taken instead of a buggy feeling. :)\r\n\r\nHope this help.\r\n\r\nPS: [~sophrinix] no i was taking pics at 6MP. Seems on some new devices the native camera app is eager for resources, and android is brutal in destroying app.. :D", "updateAuthor": { "name": "xcash", "key": "xcash", "displayName": "Paolo Casciello", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-12-22T19:08:29.000+0000", "updated": "2014-12-22T19:13:38.000+0000" }, { "id": "338046", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Ingo, do you guys want me to send the Moto G 2nd gen ?\r\n\r\nI'm in Brazil - Sao Paulo... I understand that you have a local business office here, if somebody from here is going to US in the near future I can drop the device with them. Would it help?", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2015-01-06T22:03:23.000+0000", "updated": "2015-01-06T22:03:23.000+0000" }, { "id": "348921", "author": { "name": "sdelgaol", "key": "sdelgaol", "displayName": "Sergio Delgado", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hi, some news about this issue??? :(", "updateAuthor": { "name": "sdelgaol", "key": "sdelgaol", "displayName": "Sergio Delgado", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-04-08T13:07:35.000+0000", "updated": "2015-04-08T13:07:35.000+0000" }, { "id": "350639", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ingo] I can reliably reproduce this on my Nexus 6. I'm in Mountain View. Happy to come by. 4.0.0.Beta3.", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-04-24T07:09:14.000+0000", "updated": "2015-04-24T07:09:14.000+0000" }, { "id": "351900", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Tried this with the following:-\r\n\r\nTitanium SDK: 3.5.1.GA, 4.0.0v20150429154210\r\nNexus 6 (Android 5.0)\r\n\r\nNot Reproducible.\r\n\r\nUsed the code:-\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\nvar imageView = Ti.UI.createImageView({height: Ti.UI.FILL, width: Ti.UI.Fill});\r\nwin.add(imageView);\r\n\t\r\nwin.open();\r\nwin.addEventListener('open',function(e){\r\n\tTitanium.Media.showCamera({\r\n \r\n\t\tsuccess:function(event)\r\n\t\t{\r\n\t\t\tTi.API.info('#### Camera Success');\r\n\t\t\tvar cropRect = event.cropRect;\r\n\t\t\tvar image = event.media;\r\n\t\t\tTi.API.info(image.length);\r\n\t\t\tvar filename = Titanium.Filesystem.tempDirectory + \"/\"+ 'camera_photo' + new Date().getTime() + \".png\";\r\n\t\t\tTi.API.info(filename);\r\n\t\t\tvar f = Titanium.Filesystem.getFile(filename);\r\n\t\t\tTi.API.info(f.nativePath);\r\n\t\t\tif (f.exists()) {\r\n\t\t\t\tTi.API.info('The file exist , trying to delete it before using it :' + f.deleteFile());\r\n\t\t\t\tf = Titanium.Filesystem.getFile(filename);\r\n\t\t\t}\r\n\t\t\tf.write(image);\r\n\t\t\talert('Camera Success! The file size is '+f.size+' bytes.\\n Now trying to assign it to an image on the screen (this may fail for hi res images)');\r\n\t\t\timageView.image = f.nativePath;\r\n\t\t},\r\n\t\tcancel:function()\r\n\t\t\r\n\t\t{\r\n\t\t\tTi.API.info('#### Camera Cancel');\r\n\t\t},\r\n\t\terror:function(error)\r\n\t\t{\r\n\t\t\t// create alert\r\n\t\t\tTi.API.info('#### Camera Error');\r\n\t\t\tvar a = Titanium.UI.createAlertDialog({title:'Camera'});\r\n \r\n\t\t\t// set message\r\n\t\t\tif (error.code == Titanium.Media.NO_CAMERA)\r\n\t\t\t{\r\n\t\t\t\ta.setMessage('Device does not have video recording capabilities');\r\n\t\t\t}\r\n\t\t\telse\r\n\t\t\t{\r\n\t\t\t\ta.setMessage('Unexpected error: ' + error.code);\r\n\t\t\t}\r\n \r\n\t\t\t// show alert\r\n\t\t\ta.show();\r\n\t\t},\r\n\t\tallowEditing:true\r\n\t});\r\n});\r\n{code}", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2015-05-07T06:47:52.000+0000", "updated": "2015-05-07T06:47:52.000+0000" }, { "id": "352032", "author": { "name": "rpavez", "key": "rpavez", "displayName": "Rodrigo Pavez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have been able to replicate the issue in Motorola XT1032 and Motorola XT1064 using the code above, its a random issue. It happens 1 in around 30 attempts. I think is a memory issues so there are chance if your app is using too much memory, you have lot of background tasks or your camera is set to extremely high-res it will fail.\r\n\r\nIn my company we're having lot of problems with this issue, about 20% of our Android users have reported issues related to camera crash, we have discovered an easy but graceful fix is reboot the device. Also users with new phones with cameras with high resolution seem to have more problems.\r\n\r\nAttach a sample of code used for capturing photos and resize images using third party modules.\r\n\r\n{code:javascript}\r\n(function() {\r\n\t \r\n\tTi.App.saveFile = function(value) {\r\n\t\tvar fileName;\r\n\t\tfunction s4() {\r\n\t\t\treturn Math.floor((1 + Math.random()) * 0x10000).toString(16).substring(1);\r\n\t\t}\r\n\t \r\n\t\tif (Ti.Platform.osname === 'android') {\r\n\t\t\tfileName = value.filename + '_' + s4() + s4() + '-' + s4() + '-' + s4() + '.jpg';\r\n\t\t} else {\r\n\t\t\tfileName = value.filename + '_' + s4() + s4() + '-' + s4() + '-' + s4() + '.png';\r\n\t\t}\r\n\t\ttempFile = Titanium.Filesystem.getFile(Titanium.Filesystem.applicationDataDirectory, fileName);\r\n\t\ttempFile.write(value.file);\r\n\t\tvalue = null;\r\n\t\treturn tempFile.nativePath;\r\n\t};\r\n\t \t \r\n\tvar window = Ti.UI.createWindow();\r\n\twindow.open();\r\n\t\r\n\talert(\"This sample app will create a camera over and over again to test camera crash issues\");\r\n\t \r\n\tglobal = {\r\n\t\tentry:{\r\n\t\t\tid: 1\r\n\t\t}\r\n\t};\r\n\t \r\n\tstep_id = Math.floor(Math.random(0,1)*100000);\r\n\t \r\n\topenCamera = function(){\r\n\t\tTitanium.Media.showCamera({\r\n\t\t\tsuccess : function(event) {\r\n\t\t\t\tif (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {\r\n\t\t\t\t\tvar resizedImage = event.media;\r\n\t\t\t\t\tvar pathToImage = Ti.App.saveFile({\r\n\t\t\t\t\t\tfile : resizedImage,\r\n\t\t\t\t\t\tfilename : 'task_' + global.entry.id + '_step_' + step_id\r\n\t\t\t\t\t});\r\n\t\t\t\t\talert('Saved to '+pathToImage);\r\n\t\t\t\t\topenCamera();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\t\t\r\n\t}\r\n\t \r\n\tsetTimeout(function(){\r\n\t\topenCamera();\r\n\t},1000);\r\n\r\n})();\r\n\r\n{code}", "updateAuthor": { "name": "rpavez", "key": "rpavez", "displayName": "Rodrigo Pavez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-08T14:54:49.000+0000", "updated": "2015-05-08T17:30:56.000+0000" }, { "id": "352034", "author": { "name": "rpavez", "key": "rpavez", "displayName": "Rodrigo Pavez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm also working on a camera module able to set specific resolution when using camera reducing memory usage ([https://github.com/rpavez/ti-camera-pro]). I still haven't been able to include system camera controls and I'm also having issues with layout of views added to the ViewProxy. *It would be awesome if somebody with more experience could help me fixing this issues with my module*", "updateAuthor": { "name": "rpavez", "key": "rpavez", "displayName": "Rodrigo Pavez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-08T14:59:31.000+0000", "updated": "2015-05-08T14:59:31.000+0000" }, { "id": "352038", "author": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "body": "[~msamah] Can I assume you are testing multiple times in multiple real world scenarios of usage with different apps starting and stopping to see what happens outside of a clean environment?\r\n\r\nDid anyone take up [~athorne] on his offer to come in and show you in person a repeatable test case to help this very long term issue finally get some actual traction?\r\n", "updateAuthor": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "created": "2015-05-08T16:09:03.000+0000", "updated": "2015-05-08T16:10:14.000+0000" }, { "id": "352041", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~core13] and [~athorne] yes, I would like to invite Alex into the office and will do so ASAP.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-08T16:13:02.000+0000", "updated": "2015-05-08T16:13:02.000+0000" }, { "id": "352058", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Great news! Say the word.", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-05-08T19:17:57.000+0000", "updated": "2015-05-08T19:17:57.000+0000" }, { "id": "358610", "author": { "name": "rpavez", "key": "rpavez", "displayName": "Rodrigo Pavez", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Any update of this?", "updateAuthor": { "name": "rpavez", "key": "rpavez", "displayName": "Rodrigo Pavez", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-30T18:12:16.000+0000", "updated": "2015-07-30T18:12:16.000+0000" }, { "id": "358624", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "A little while back [~ingo] and I talked about them buying our device that has the problem. I'm assuming he's just busy right now. I wrote him just to check in.", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-07-30T20:14:10.000+0000", "updated": "2015-07-30T20:14:10.000+0000" }, { "id": "378762", "author": { "name": "filipe.laruina", "key": "filipe.laruina", "displayName": "Filipe La Ruina", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, I can confirm this still happens in some devices, Nexus 5 with Android 6, Moto G with Android 5.\r\nThe log just shows android restarting the activity, no errors.\r\nIt doesn't happen every time, sometimes it works, sometimes it doesn't, which sucks.", "updateAuthor": { "name": "filipe.laruina", "key": "filipe.laruina", "displayName": "Filipe La Ruina", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-04T13:14:23.000+0000", "updated": "2016-03-04T13:14:23.000+0000" }, { "id": "378772", "author": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Happens with Nexus 5X, 6, and 6P as well. And, the camera won't work until the phone is restarted after this happens once. Fails with the log line \"cannot connect to camera service.\" Is camera2 upgrade in the plan at all?", "updateAuthor": { "name": "athorne", "key": "athorne", "displayName": "Alex Bernier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-04T14:36:19.000+0000", "updated": "2016-03-04T14:36:19.000+0000" }, { "id": "378846", "author": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "body": "On the 5x, camera can lock up after as few as 3 images.\r\nNo, don't have time after 3+ years to continue to submit details and sample code, simply adding a comment so that Alex knows he isn't alone.", "updateAuthor": { "name": "sfeather", "key": "sfeather", "displayName": "Stephen Feather", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-06T13:55:11.000+0000", "updated": "2016-03-06T13:55:11.000+0000" }, { "id": "384233", "author": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "body": "I can confirm that our app also crashes on a Nexus 5X. We are using Android 6 permissions correctly as our app seems to run okay on other Android 6 devices. We don't have a 6/6P to test, so I can't speak to those devices.\r\n\r\nIt appears that the Ti.Media module is not properly releasing the camera. It's also using older/deprecated APIs and needs to be updated overall.", "updateAuthor": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "created": "2016-04-28T18:12:11.000+0000", "updated": "2016-04-28T18:13:10.000+0000" }, { "id": "384292", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~timpoulsen] That sounds bad that the Ti.Media is not releasing the camera. I do agree that we we need to update the camera API.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-04-29T02:26:07.000+0000", "updated": "2016-04-29T02:26:07.000+0000" }, { "id": "384320", "author": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "body": "@msamah Perhaps you would also consider implementing the functionality of https://github.com/skypanther/picatsize in such an update. _PicAtSize is an Android module that lets you take a \"PICture AT a SIZE\" you specify._ Basically, I took the existing Ti.Media code and turned it into a module, then with a lot of help from others, extended it to support the {{camera.getParameters.setPictureSize()}} method. In this way, we can avoid out-of-memory errors by eliminating the need to resize photos in the JavaScript space. \r\n\r\nI'm not much of an Android dev, my code is not PR-worthy, and I probably couldn't make it PR-worthy. But, the code is Apache licensed and mostly your code already. So, feel free to take whatever you want.", "updateAuthor": { "name": "timpoulsen", "key": "timpoulsen", "displayName": "Tim Poulsen", "active": true, "timeZone": "America/Havana" }, "created": "2016-04-29T12:59:25.000+0000", "updated": "2016-04-29T12:59:25.000+0000" }, { "id": "384512", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "Roger that [~timpoulsen]. Thanks.", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-05-03T01:52:38.000+0000", "updated": "2016-05-03T01:52:38.000+0000" }, { "id": "387098", "author": { "name": "gvelez", "key": "gvelez", "displayName": "Gustavo Velez", "active": true, "timeZone": "America/New_York" }, "body": "I am seeing this same issue on an ASUS ZenFone 2E, Android version 5.0.1. It will be great to have a fix for this to improve user experience... Thank you!", "updateAuthor": { "name": "gvelez", "key": "gvelez", "displayName": "Gustavo Velez", "active": true, "timeZone": "America/New_York" }, "created": "2016-05-30T04:54:53.000+0000", "updated": "2016-05-30T04:54:53.000+0000" }, { "id": "387207", "author": { "name": "jknight@sbmcorp.com", "key": "jknight@sbmcorp.com", "displayName": "Jason Knight", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We see this happening most often on a Samsung galaxy S5, Android 5.0 on Verizon. There are other variants, but this one is the most consistent.\r\n\r\nCan we create a branch and PR for this issue? I would like to help solve this issue.", "updateAuthor": { "name": "jknight@sbmcorp.com", "key": "jknight@sbmcorp.com", "displayName": "Jason Knight", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-05-31T20:02:21.000+0000", "updated": "2016-05-31T20:02:21.000+0000" }, { "id": "389122", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "I have also this problem on Motorola MotoG2, Android 4.4, TiSDK 5.3.0 GA, picking up image from gallery works fine, taking pictures crash and shuts down my app.\r\nStrange thing is, that I used same code a while ago in another app(in February I think) and I could take pctures with camera. Now, with newest SDK I can't use camera to take pictures in both apps(older and new). \r\nPlease fix it asap.\r\nThank you\r\n\r\nEdit: My app is not crashing anymore(SDK 5.3.1GA), but I have another problem - when camera window closes, app's main window moves up for few pixels and Notification bar hides(I have no code implemented to hide notification bar). On another app, everything is working fine(without moving). Can you help me with this? \r\nThank you", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2016-06-27T13:11:31.000+0000", "updated": "2016-07-11T14:13:58.000+0000" }, { "id": "389128", "author": { "name": "jknight@sbmcorp.com", "key": "jknight@sbmcorp.com", "displayName": "Jason Knight", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Why does this keep getting moved back? It has 47 watchers so obviously it's important and effecting a lot a people.", "updateAuthor": { "name": "jknight@sbmcorp.com", "key": "jknight@sbmcorp.com", "displayName": "Jason Knight", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-06-27T14:50:28.000+0000", "updated": "2016-06-27T14:50:28.000+0000" }, { "id": "389907", "author": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This crash is consistently happening on various models, but specially on the Galaxy S6 family and it happens only if the flash is enabled.\r\n\r\n Ti.Media.setCameraFlashMode(Ti.Media.CAMERA_FLASH_ON);\r\n", "updateAuthor": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-07-05T00:31:54.000+0000", "updated": "2016-07-05T00:31:54.000+0000" }, { "id": "389909", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "+1", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2016-07-05T01:53:27.000+0000", "updated": "2016-07-05T01:53:27.000+0000" }, { "id": "390417", "author": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "body": "[~max87]\r\nBased on your updated comments, could you provide your logs from the crash? Preferably from the {{adb logcat}}. ", "updateAuthor": { "name": "msamah", "key": "msamah", "displayName": "Ashraf Abu", "active": false, "timeZone": "Asia/Singapore" }, "created": "2016-07-12T02:08:34.000+0000", "updated": "2016-07-12T02:08:45.000+0000" }, { "id": "390481", "author": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "body": "Hi Ashraf,\r\nmy app is not crashing anymore, so I don't have any logs. I tried to update SDK to 6.0beta and update nodeJS, but I had to revert, so I'm currently on 5.3.1GA and nodeJS 0.12.7\r\n", "updateAuthor": { "name": "max87", "key": "max87", "displayName": "Marian Kucharcik", "active": true, "timeZone": "Europe/Prague" }, "created": "2016-07-12T11:34:31.000+0000", "updated": "2016-07-12T11:34:31.000+0000" }, { "id": "390919", "author": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "body": "We get consistent crashes on the Nexus 5X. One, sometimes two photos is all we can take before the app crashes. This looks to be the relevant portion of the logs.\r\n\r\nNexus 5X, Android 6.0.1, Kernel v 3.10.73gf215204, Ti SDK 5.2.2.GA (though the crash has existed long before that SDK version)\r\n\r\n{code}\r\n07-18 13:06:35.220 492 15940 I QCamera3Stream: virtual int32_t qcamera::QCamera3Stream::init(cam_stream_type_t, cam_format_t, cam_dimension_t, cam_rotation_t, cam_stream_reproc_config_t*, uint8_t, uint32_t, cam_is_type_t, uint32_t, qcamera::hal3_stream_cb_routine, void*): stream_type is 9, feature_mask is 8390286\r\n07-18 13:06:35.222 492 15940 E mm-camera-intf: mm_channel_fsm_fn_stopped: invalid state (1) for evt (9)\r\n07-18 13:06:35.227 510 15927 E mm-camera: :cpp_hardware_set_clock:333 Set clock 320000000 BW abg 192084480 BW inst 1466181818\r\n07-18 13:06:35.246 510 15934 E mm-camera: pproc_module_send_buf_divert_event:859] CDS enable 0 num_str 1 applied 0 stream_id 6\r\n07-18 13:06:35.247 510 15931 E mm-camera-img: cac2_comp_process_frame:949] Start CAC \r\n07-18 13:06:35.256 492 15909 D NuPlayerDriver: notifyListener_l(0xf2bd64e0), (4, 0, 0)\r\n07-18 13:06:35.256 510 15931 V rownr : n 144 4032x3024\r\n07-18 13:06:35.310 492 16031 E OMXNodeInstance: setConfig(3c:google.vorbis.decoder, ConfigPriority(0x6f800002)) ERROR: Undefined(0x80001001)\r\n07-18 13:06:35.310 492 16031 I ACodec : codec does not support config priority (err -2147483648)\r\n07-18 13:06:35.311 492 16031 I MediaCodec: MediaCodec will operate in async mode\r\n07-18 13:06:35.313 492 16030 I NuPlayerDecoder: [OMX.google.vorbis.decoder] resubmitting CSD\r\n07-18 13:06:35.313 492 16030 I NuPlayerDecoder: [OMX.google.vorbis.decoder] resubmitting CSD\r\n07-18 13:06:35.316 492 16033 W SoftVorbis: vorbis_dsp_synthesis returned -135\r\n07-18 13:06:35.316 492 16033 W SoftVorbis: vorbis_dsp_synthesis returned -135\r\n07-18 13:06:35.319 492 16029 W AudioFlinger: acquireAudioSessionId() unknown client 15622 for session 368\r\n07-18 13:06:35.334 492 2577 D audio_hw_primary: out_set_parameters: enter: usecase(1: low-latency-playback) kvpairs: routing=2\r\n07-18 13:06:35.336 492 15909 D NuPlayerDriver: notifyListener_l(0xf2bd64e0), (6, 0, 0)\r\n07-18 13:06:35.349 492 16030 I NuPlayerDecoder: [audio] saw output EOS\r\n07-18 13:06:35.359 510 15931 V rownr : Total time (Y): 102ms\r\n07-18 13:06:35.359 510 15931 E mm-camera-img: cac2_comp_process_frame:963] ROWNR Successfull\r\n07-18 13:06:35.360 510 15931 E cac2 : ion alloc already done\r\n07-18 13:06:35.360 510 15931 E cac2 : ion alloc already done\r\n07-18 13:06:35.361 510 15931 E cac2 : ion alloc already done\r\n07-18 13:06:35.361 510 15931 E cac2 : ion alloc already done\r\n07-18 13:06:35.361 510 15931 E cac2 : ion alloc already done\r\n07-18 13:06:35.362 510 15931 E cac2 : ion alloc already done\r\n07-18 13:06:35.362 510 15931 E cac2 : ion alloc already done\r\n07-18 13:06:35.365 510 15931 E cac2 : [cac2latency] prepare_buffers: 2 ms \r\n07-18 13:06:35.367 510 15931 E cac2 : downscale with arm now.\r\n07-18 13:06:35.375 510 15931 E cac2 : detection with arm now.\r\n07-18 13:06:35.376 510 15931 E cac2 : detection_args.in_buf.height 3024\r\n07-18 13:06:35.376 510 15931 E cac2 : wait_detection_and_gray: dynamic_work_partition_execute for gray check\r\n07-18 13:06:35.383 510 16037 E cac2 : [cac2latency] graycheck_and_buffercopy: 5 ms \r\n07-18 13:06:35.457 510 15931 E cac2 : [cac2latency] cac2_core_detection: 91 ms \r\n07-18 13:06:35.458 510 16045 E librnrgpu: rnrrs_setup: acquired mutex\r\n07-18 13:06:35.459 510 16045 E librnrgpu: rnrgpu_rs_init() thread reported : 1225 millisec\r\n07-18 13:06:35.459 510 16045 E librnrgpu: curr_frame size: stride: 4032 img_region[0]: 4032 img_region[1]: 3024\r\n07-18 13:06:35.460 510 16045 E librnrgpu: memory allocation (allocator: ION) : 0 millisec\r\n07-18 13:06:35.460 510 16045 E librnrgpu: rnrgpu_rs_init_program() : 0 millisec\r\n07-18 13:06:35.460 510 16045 E librnrgpu: rnrgpu_rs_mem_alloc entry\r\n07-18 13:06:35.472 510 15931 E cac2 : [cac2latency] arm_dilate_mask: 13 ms \r\n07-18 13:06:35.476 510 16045 E librnrgpu: Created curr_frame 0xf44a34b0 with dims (4032,3024)\r\n07-18 13:06:35.479 510 15931 E cac2 : [cac2latency] cac2_combine_mask: 7 ms \r\n07-18 13:06:35.488 510 16045 E librnrgpu: Created downscaled_out 0xf44a35f0 with dims (2016,1512)\r\n07-18 13:06:35.490 510 16045 E librnrgpu: rnrgpu_rs_mem_alloc() : 30 millisec\r\n07-18 13:06:35.491 510 16045 E librnrgpu: rnrgpu_process() : GPU\r\n07-18 13:06:35.494 510 16045 E librnrgpu: \r\n07-18 13:06:35.494 510 16045 E librnrgpu: downscale.forEach - RNRGPU_KERNEL_FUNC_DOWNSCALE 1\r\n07-18 13:06:35.495 510 16045 E librnrgpu: globalworksize={2016,1512}\r\n07-18 13:06:35.495 510 16045 E librnrgpu: rnrgpu_rs_downscale() : 3 millisec\r\n07-18 13:06:35.495 510 16045 E librnrgpu: \r\n07-18 13:06:35.496 510 16045 E librnrgpu: process.forEach - RNRGPU_KERNEL_FUNC_CDS_OFF\r\n07-18 13:06:35.496 510 16045 E librnrgpu: globalworksize={1008,3024}\r\n07-18 13:06:35.500 510 15941 E mm-camera-sensor: port_sensor_handle_aec_update:443miss aec update window, skip\r\n07-18 13:06:35.512 510 15931 E cac2 : cac2_median_filter_arm_mt: MEDIAN_FILTER_MAX_THREADS=2\r\n07-18 13:06:35.512 510 15931 E cac2 : [cac2latency] neon_median_filter: 32 ms \r\n07-18 13:06:35.567 510 16045 E librnrgpu: rnrgpu_rs_finish() : 71 millisec\r\n07-18 13:06:35.568 510 16045 E librnrgpu: rnrgpu_copy_m_curr_frame() : 0 millisec\r\n07-18 13:06:35.568 510 16045 E cac2 : [cac2latency] rnr_gpu_process: 109 ms \r\n07-18 13:06:35.569 510 15931 E cac2 : [cac2latency] cac2_core_correction_with_rnr: 110 ms \r\n07-18 13:06:35.569 510 15931 E cac2 : [cac2latency] cac2_core_process: 203 ms \r\n07-18 13:06:35.570 510 15931 E mm-camera-img: cac2_comp_process_frame:977] CAC Successfull\r\n07-18 13:06:35.573 510 15931 E mm-camera: cpp_hw_params_update_wnr_params:5759, error: invalid trigger input 0.000000\r\n07-18 13:06:35.615 492 15954 D mm-jpeg-intf: mm_jpeg_create_session:2283] >>>> Work bufs need 1\r\n07-18 13:06:35.641 492 15954 E mm-still: QOMXImageCodec::QOMXImageCodec():56 ###mmstill_Loglevel 0\r\n07-18 13:06:35.642 492 15954 I qomx_image_core: OMX_GetHandle:237] get instance pts is 0xf30fd600\r\n07-18 13:06:35.643 492 15954 D qomx_image_core: OMX_GetHandle:257] handle = 0xf30fd604 Instanceindex = 0,comp_idx 2 g_ptr 0xf2be5d20\r\n07-18 13:06:35.644 492 15954 E mm-still: OMX_ERRORTYPE qomx_component_set_callbacks(OMX_HANDLETYPE, OMX_CALLBACKTYPE*, OMX_PTR): 181: This ptr addr 0xf30fd600\r\n07-18 13:06:35.644 492 15954 I qomx_image_core: OMX_GetHandle:261] Success\r\n07-18 13:06:35.645 492 15954 D mm-jpeg-intf: mm_jpeg_session_config_main:1159] config port\r\n07-18 13:06:35.645 492 15954 D mm-jpeg-intf: mm_jpeg_session_config_main_buffer_offset:447] yOffset = 0, cbcrOffset = (0 0), totalSize = 1843200,cbcrStartOffset = (1228800 614400)\r\n07-18 13:06:35.646 492 15954 E mm-jpeg-intf: mm_jpeg_meta_enc_key:662] Key is invalid\r\n07-18 13:06:35.646 492 15954 D mm-jpeg-intf: mm_jpeg_speed_mode:550] speed 0\r\n07-18 13:06:35.651 492 15954 E jpeg_hw : jpege_lib_init:386 ###jpeghw_Loglevel 0\r\n07-18 13:06:35.655 492 15954 E jpeg_hw : jpege_lib_init:457] handler 0x0 0x0 0x0\r\n07-18 13:06:35.659 492 15954 E jpeg_hw : jpegdma_lib_init:371 ###jpeghw_Loglevel 0\r\n07-18 13:06:35.661 492 15954 E jpeg_hw : jpegdma_lib_init:421] handler 0x0 0x0 0x0\r\n07-18 13:06:35.662 492 15954 D mm-jpeg-intf: mm_jpeg_create_session:2411] session id 1000000\r\n07-18 13:06:35.663 492 15954 D mm-jpeg-intf: mm_jpeg_start_job:2079] session_idx 0 client idx 0\r\n07-18 13:06:35.664 492 15954 D mm-jpeg-intf: mm_jpeg_start_job:2134] job_id 16777216 X\r\n07-18 13:06:35.664 492 15955 D mm-jpeg-intf: mm_jpeg_session_config_main_crop:1126] OMX_IndexConfigCommonInputCrop w = 0, h = 0, l = 0, t = 0, port_idx = 0\r\n07-18 13:06:35.665 492 15955 D mm-jpeg-intf: mm_jpeg_session_config_thumbnail:925] encode_thumbnail 1\r\n07-18 13:06:35.665 492 15955 E mm-jpeg-intf: mm_jpeg_configure_job_params:1417] Work buffer info 65 0xebe48000 WorkBufSize: 18579456 invalidate\r\n07-18 13:06:35.674 492 16046 E mm-still: virtual OMX_ERRORTYPE OMXJpegEncoderPipeline::startEncode():560] startEncode()\r\n07-18 13:06:35.674 492 15955 D mm-jpeg-intf: mm_jpeg_process_encoding_job:1686] Success X \r\n07-18 13:06:35.675 492 16046 E jpeg_hw : jpege_lib_hw_config:678] Version 10030000\r\n07-18 13:06:35.675 492 16046 E jpeg_hw : jpege_lib_hw_fe_buffer_cfg:309] w 960 h 1280 stride 960 scanline 1280\r\n07-18 13:06:35.676 492 16046 E jpeg_hw : we_buffer_cfg PLN0_WR_BUFFER_SIZE = 67127008\r\n07-18 13:06:35.676 492 16046 E jpeg_hw : we_buffer_cfg PLN0_WR_STRIDE = 18144\r\n07-18 13:06:35.677 492 16046 E jpeg_hw : we_buffer_cfg PLN0_WR_HSTEP = 18144\r\n07-18 13:06:35.677 492 16046 E jpeg_hw : we_buffer_cfg PLN0_WR_VSTEP = 1024\r\n07-18 13:06:35.679 492 16048 E jpeg_hw : jpegdma_lib_hw_config:612] Version 10030000\r\n07-18 13:06:35.680 492 16048 E jpeg_hw : jpegdma_lib_hw_config:625] Processing pipes number 1\r\n07-18 13:06:35.681 492 16048 E jpeg_hw : jpegdma_lib_hw_fe_buffer_cfg:413] w 960 h_0 1280 h_1 1280 stride 960 scanline 1280 pipes 1\r\n07-18 13:06:35.682 492 16048 E jpeg_hw : we_buffer_cfg PLN0_WR_BUFFER_SIZE = 33554816\r\n07-18 13:06:35.682 492 16048 E jpeg_hw : we_buffer_cfg PLN0_WR_STRIDE = 384\r\n07-18 13:06:35.682 492 16048 E jpeg_hw : we_buffer_cfg PLN0_WR_CFG_0 = 131583\r\n07-18 13:06:35.686 492 16048 E jpeg_hw : jpegdma_lib_hw_config:612] Version 10030000\r\n07-18 13:06:35.686 492 16048 E jpeg_hw : jpegdma_lib_hw_config:625] Processing pipes number 1\r\n07-18 13:06:35.687 492 16048 E jpeg_hw : jpegdma_lib_hw_fe_buffer_cfg:413] w 960 h_0 640 h_1 640 stride 960 scanline 640 pipes 1\r\n07-18 13:06:35.687 492 16048 E jpeg_hw : we_buffer_cfg PLN0_WR_BUFFER_SIZE = 16777600\r\n07-18 13:06:35.688 492 16048 E jpeg_hw : we_buffer_cfg PLN0_WR_STRIDE = 384\r\n07-18 13:06:35.688 492 16048 E jpeg_hw : we_buffer_cfg PLN0_WR_CFG_0 = 131327\r\n07-18 13:06:35.690 492 16048 E jpeg_hw : jpege_lib_hw_config:678] Version 10030000\r\n07-18 13:06:35.690 492 16048 E jpeg_hw : jpege_lib_hw_fe_buffer_cfg:309] w 384 h 512 stride 384 scanline 512\r\n07-18 13:06:35.691 492 16048 E jpeg_hw : we_buffer_cfg PLN0_WR_BUFFER_SIZE = 67127008\r\n07-18 13:06:35.691 492 16048 E jpeg_hw : we_buffer_cfg PLN0_WR_STRIDE = 18144\r\n07-18 13:06:35.692 492 16048 E jpeg_hw : we_buffer_cfg PLN0_WR_HSTEP = 18144\r\n07-18 13:06:35.692 492 16048 E jpeg_hw : we_buffer_cfg PLN0_WR_VSTEP = 1024\r\n07-18 13:06:35.695 492 16049 E mm-still: virtual int OMXJpegEncoderPipeline::EncodeComplete(QImage*):805] Exif length: 29063\r\n07-18 13:06:35.695 492 16046 D mm-jpeg-intf: mm_jpeg_ebd:2736] count 0 \r\n07-18 13:06:35.702 492 16046 D mm-jpeg-intf: mm_jpeg_ebd:2736] count 1 \r\n07-18 13:06:35.705 492 16046 D mm-jpeg-intf: mm_jpeg_fbd:2750] count 0 \r\n07-18 13:06:35.706 492 16046 D mm-jpeg-intf: [KPI Perf] : PROFILE_JPEG_FBD\r\n07-18 13:06:35.706 492 16046 D mm-jpeg-intf: mm_jpeg_fbd:2781] send jpeg callback 0 buf 0x0xe98c0000 len 330801 JobID 16777216\r\n07-18 13:06:35.708 492 16046 E QCamera3Channel: static void qcamera::QCamera3PicChannel::jpegEvtHandle(jpeg_job_status_t, uint32_t, uint32_t, mm_jpeg_output_t*, void*): Snapshot stream id 4867 and source frame 5632 don't match!\r\n07-18 13:06:35.708 492 16046 E QCamera3Channel: static void qcamera::QCamera3PicChannel::jpegEvtHandle(jpeg_job_status_t, uint32_t, uint32_t, mm_jpeg_output_t*, void*): Snapshot buffer not found!\r\n07-18 13:06:35.710 492 16046 D mm-jpeg-intf: mm_jpegenc_destroy_job:2450] Exif entry count 13 16\r\n07-18 13:06:35.711 492 16046 D mm-jpeg-intf: mm_jpeg_queue_remove_job_by_job_id:2954] found matching job id{code}", "updateAuthor": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "created": "2016-07-18T17:11:39.000+0000", "updated": "2016-07-18T17:11:39.000+0000" }, { "id": "397370", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "We seem to have this bug too. We get a lot of complaints from our users where the app keeps crashing after returning from camera. Is there any progress towards this issue?", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-09-27T12:42:38.000+0000", "updated": "2016-09-27T12:42:38.000+0000" }, { "id": "401491", "author": { "name": "osc4rrico@gmail.com", "key": "osc4rrico@gmail.com", "displayName": "Oscar J. Rico Reyes", "active": true, "timeZone": "America/Bogota" }, "body": "I'm having issues with my app too respect the camera. In some devices the application crashes if there is more than 2 images. It could crash. The images are about 6Mb and 10 Mb. And some times the image is not rendered in the imageview widget. The devices that presents the failure are Huawei P8, Motorola G and some others. ImageAsResized function presents some failures and crashes too in some devices so im using Ti.imagefactory to resize images so i can send them over 3G network to avoid this memory issue.\r\n\r\nSystem Vars:\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.6\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.6.0\r\n npm Version = 2.15.9\r\nTitanium CLI\r\n CLI Version = 5.0.10\r\nTitanium SDK\r\n SDK Version = 5.4.1.v20160814221757\r\n SDK Path = /Users/myuser/Library/Application Support/Titanium/mobilesdk/osx/5.4.1.v20160814221757\r\n Target Platform = android\r\n\r\nif (Ti.Media.hasCameraPermissions()) {\r\n\t\tTitanium.Media.showCamera({\r\n\t\t\tsuccess : function(event) {\r\n\t\t\t\t// called when media returned from the camera\r\n\t\t\t\tTi.API.debug('Our type was: ' + event.mediaType);\r\n\t\t\t\tTi.Media.hideCamera();\r\n\t\t\t\t\r\n\t\t\t\tif (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {\r\n\t\t\t\t\tLOG.info('SUCCESS: ' + JSON.stringify(event));\r\n\t\t\t\t\tAPP.showNotification('info', 'La imagen se ha capturado satisfactoriamente', $.visitFormWindow);\r\n\t\t //CRASH ON THIS.\r\n\t\t\t $.cameraPictureView.image = event.media;\t\r\n\t\t\t\t\t\r\n\t\t\t\t} else {\r\n\t\t\t\t\talert('Error no se obtuvo la imagen satisfactoriamente');\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tcancel : function() {\r\n\t\t\t\t// called when user cancels taking a picture\r\n\t\t\t},\r\n\t\t\terror : function(error) {\r\n\t\t\t\t// called when there's an error\r\n\t\t\t\tvar a = Titanium.UI.createAlertDialog({\r\n\t\t\t\t\ttitle : 'Camera'\r\n\t\t\t\t});\r\n\t\t\t\tif (error.code == Titanium.Media.NO_CAMERA) {\r\n\t\t\t\t\ta.setMessage('Error abriendo camara.');\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta.setMessage('Error inesperado: ' + error.code);\r\n\t\t\t\t}\r\n\t\t\t\ta.show();\r\n\t\t\t},\r\n\t\t\tsaveToPhotoGallery : true\r\n\t\t});\r\n\r\n", "updateAuthor": { "name": "osc4rrico@gmail.com", "key": "osc4rrico@gmail.com", "displayName": "Oscar J. Rico Reyes", "active": true, "timeZone": "America/Bogota" }, "created": "2016-11-18T03:04:03.000+0000", "updated": "2016-11-18T03:04:03.000+0000" }, { "id": "404996", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We will take another look at this. Attempting to reproduce with current stack.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-20T22:58:25.000+0000", "updated": "2017-01-20T22:58:25.000+0000" }, { "id": "405000", "author": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "body": "All power to you [~emerriman] but as this appears to be the JIRA that Appcelerator not only forgets but simply ignores and denies - I will not be holding my breath.\r\n\r\nProve me wrong. Please.", "updateAuthor": { "name": "core13", "key": "core13", "displayName": "Malcolm Hollingsworth", "active": true, "timeZone": "Europe/London" }, "created": "2017-01-20T23:03:46.000+0000", "updated": "2017-01-20T23:03:46.000+0000" }, { "id": "405013", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "We also keep experiencing a lot of crashes on production apps related to this bug. Astonishing to see that this has been open since 2012 with no solution at all.", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2017-01-21T00:28:21.000+0000", "updated": "2017-01-21T00:28:21.000+0000" }, { "id": "405029", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "Something that I found during testing:\r\n\r\nDevice: HTC A9 (6.0.1)\r\nSDK: Ti 6.0.1.GA / 6.1.0 (nightly)\r\n\r\n* Starting the camera with the provided code crashed the app in the background while the camera view is open (launchCameraActivity, MediaModule.java)\r\n* Crashlog:\r\n\r\n{code:java}\r\nE/ActivityThread: Performing stop of activity that is not resumed: {com.miga.cam/com.miga.cam.CamActivity}\r\n java.lang.RuntimeException: Performing stop of activity that is not resumed: {com.miga.cam/com.miga.cam.CamActivity}\r\n at android.app.ActivityThread.performStopActivityInner(ActivityThread.java:3708)\r\n at android.app.ActivityThread.handleStopActivity(ActivityThread.java:3793)\r\n at android.app.ActivityThread.access$1200(ActivityThread.java:150)\r\n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1424)\r\n at android.os.Handler.dispatchMessage(Handler.java:102)\r\n at android.os.Looper.loop(Looper.java:168)\r\n at android.app.ActivityThread.main(ActivityThread.java:5821)\r\n at java.lang.reflect.Method.invoke(Native Method)\r\n at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:797)\r\n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:687)\r\n{code}\r\n\r\n* using an *overlay* to run *launchNativeCamera* from MediaModule.java does *not crash*\r\n\r\n\r\nLooking up the \"camera intent crash\" situation you'll find a lot like this: http://stackoverflow.com/a/26708283/5193915\r\n{quote}Launching camera requires a lot of memory. So on devices with low memory android system closes the Activities running in background{quote}\r\nThe solution in this answer is to save the URL in the destroy() event and restore it later on. But then the app has to be restarted inside that activity/screen too.\r\nNot sure if that helps to find the cause or a solution but at least the _overlay_ version is not crashing for me. So I can create an empty overlay with a `take picture` button and can use it without a crash", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-01-21T18:28:08.000+0000", "updated": "2017-01-21T18:28:08.000+0000" }, { "id": "405114", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks [~michael] - This might help, but our problem right now is that no matter what we try we can't seem to reproduce. Lokesh will report on status so far. [~lchoudhary] Could you try launching some apps for additional memory pressure and see what happens?", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-23T23:43:14.000+0000", "updated": "2017-01-23T23:46:05.000+0000" }, { "id": "405117", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tried to check if I can make camera crash with the available devices & the current 6.0.1.GA SDK but, could not. I used the code in the description to test. \r\nIf there is any other sample code to reproduce this I can check with please add it to this ticket so that we could test with it.\r\n\r\nChecked it with:\r\n1. MotoG - Android 4.4.4\r\n2. Samsung Galaxy S5 - Android 4.4.4\r\n3. Nexus 5 - Android 5.1.1\r\n4. Nexus 6 - Android 6.0.1\r\n5. Nexus 6P - Android 7.1.1\r\n\r\n[~emerriman], I will try what you asked for comment accordingly.\r\n", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-24T00:07:51.000+0000", "updated": "2017-01-24T00:07:51.000+0000" }, { "id": "405120", "author": { "name": "mas222", "key": "mas222", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We have experienced most problems on older Samsung devices.", "updateAuthor": { "name": "mas222", "key": "mas222", "displayName": "Mike Stancliffe", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-24T00:12:44.000+0000", "updated": "2017-01-24T00:12:44.000+0000" }, { "id": "405122", "author": { "name": "gvelez", "key": "gvelez", "displayName": "Gustavo Velez", "active": true, "timeZone": "America/New_York" }, "body": "As mentioned before, we see it on Asus ZenFone 2E, Android 5.0.1 and with the current Titanium SDK 6.0.1 GA. The section of the code we have is pretty straight forward:\r\n\r\nTitanium.Media.showCamera({ \r\n\t\t\t\t\t\t\t success:function(event) {\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t layoutHub.commonPhotoSuccess(event, 0);\r\n\t\t\t\t\t\t\t },\r\n\t\t\t\t\t\t\t cancel:function(cancel) {\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t lg(\"Camera CANCELED - error message = \" + cancel.error);\r\n\t\t\t\t\t\t\t },\r\n\t\t\t\t\t\t\t error:function(err) {\t\t\t\t\t\t\t \r\n\t\t\t\t\t\t\t lg(\"Camera ERROR - error message = \" + err.error);\r\n\t\t\t\t\t\t\t\t\tcommonHub.alertDialog(\r\n\t\t\t\t\t\t\t \tlangHub.commonOops,\r\n\t\t\t\t\t\t\t \tlangHub.epicFail\r\n\t\t\t\t\t\t\t );\r\n\t\t\t\t\t\t\t },\r\n\t\t\t\t\t\t\t mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO]\r\n\t\t\t\t\t\t\t});\r\n\r\nWhat I've noticed is that it happens when my application is initially installed and when I use the camera for the FIRST time. After my app restarts from the crash, I am then able to take a photo successfully with the above code and call my commonPhotoSuccess() function. I hope that helps.", "updateAuthor": { "name": "gvelez", "key": "gvelez", "displayName": "Gustavo Velez", "active": true, "timeZone": "America/New_York" }, "created": "2017-01-24T00:22:43.000+0000", "updated": "2017-01-24T00:22:43.000+0000" }, { "id": "405172", "author": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "body": "Please try with a Nexus 5x. Our app crashes consistently on the first or second picture every time on this device. After the app crashes, the camera is not released -- no apps can access the camera at all at that point and doing so crashes whatever app you're attempting to use. Rebooting the phone is the only way to recover.", "updateAuthor": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "created": "2017-01-24T14:24:51.000+0000", "updated": "2017-01-24T14:24:51.000+0000" }, { "id": "405205", "author": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~lchoudhary] My app consistently breaks if using the flash on a Moto E. \r\n\r\nThere's a free Moto E on TestObject.com you could probably use.\r\n\r\n!https://www.dropbox.com/s/deypvck96gvkwma/Screen%20Shot%202017-01-24%20at%203.00.50%20PM.png?dl=1!", "updateAuthor": { "name": "abdielou", "key": "abdielou", "displayName": "Abdiel Aviles", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-24T19:06:39.000+0000", "updated": "2017-01-24T19:07:30.000+0000" }, { "id": "405621", "author": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Could not reproduce. Code in success block was executed since alert dialogue returned \"success\" on picture save.\r\n\r\nTested on S6 device and used the same code in the kitchen sink example on GitHub:\r\n\r\n{code:JavaScript}\r\nvar win;\r\n\r\nfunction fireCamera() {\r\n\tif (Ti.Platform.osname === 'android' || Ti.Platform.osname == \"iphone\" || Ti.Platform.osname == 'ipad') {\r\n\t\twin.removeEventListener('focus', fireCamera);\r\n\t}\r\n\tTitanium.Media.showCamera({\r\n\t\t\r\n\t\tsuccess: function (event) {\r\n\t\t\talert(\"success\");\r\n\t\t\tvar cropRect = event.cropRect;\r\n\t\t\tvar image = event.media;\r\n\t\t\t\r\n\t\t\tif (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {\r\n\t\t\t\tvar imageView = Ti.UI.createImageView({\r\n\t\t\t\t\twidth: win.width,\r\n\t\t\t\t\theight: win.height,\r\n\t\t\t\t\timage: event.media\r\n\t\t\t\t});\r\n\t\t\t\twin.add(imageView);\r\n\t\t\t}\r\n\t\t},\r\n\t\tcancel: function () {\r\n\t\t\t\r\n\t\t},\r\n\t\terror: function (error) {\r\n\t\t\tif (error.code == Titanium.Media.NO_CAMERA) {\r\n\t\t\t\tlog(\"\", \"device has no camera\", error)\r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tlog(error.code, \"unexpected error\", error);\r\n\t\t\t}\r\n\t\t},\r\n\t\tsaveToPhotoGallery: true,\r\n\t\tallowEditing: true,\r\n\t\tmediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO]\r\n\t});\r\n}\r\n\r\nwin = Titanium.UI.createWindow({\r\n\ttitle: \"camera test\"\r\n});\r\nwin.open();\r\n\r\nif (Ti.Platform.osname === 'android' || Ti.Platform.osname == \"iphone\" || Ti.Platform.osname == 'ipad') {\r\n\twin.addEventListener('focus', fireCamera);\r\n} else {\r\n\tfireCamera();\r\n}\r\n{code}\r\n", "updateAuthor": { "name": "fmerzadyan", "key": "fmerzadyan2", "displayName": "Frankie Merzadyan", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-01-30T18:59:43.000+0000", "updated": "2017-01-30T18:59:43.000+0000" }, { "id": "405628", "author": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "body": "Did you test on a Nexus 5x or a Moto E? Those are two devices that we've identified in comments above as having frequent crashes. I have not had problem on Samsung S-series phones.\r\n\r\nUpdated: I have gotten reports from the field today that users of ours with Google Pixel phones are having crashes that prevent the use of the camera within our app. So, there's another possible test device for you to check out.", "updateAuthor": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "created": "2017-01-30T20:21:08.000+0000", "updated": "2017-01-31T00:47:31.000+0000" }, { "id": "405820", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~acvauctions] Do you have access to any logs from those devices? It would be really helpful (y)", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-01-31T09:47:53.000+0000", "updated": "2017-01-31T09:47:53.000+0000" }, { "id": "405830", "author": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "body": "The Performance / Crittercism panel failed to record the crash on the customer's Pixel device. (I'm afraid Crittercism frequently fails to capture crashes, but that's a separate issue.) Using my Google Nexus 5x running Android 7.0 tethered locally to my machine, I get the following logs: \r\n\r\n{code}\r\n01-31 10:11:35.313: E/NxpTml(3774): _i2c_write() errno : 5\r\n01-31 10:11:35.313: E/NxpTml(3774): PN54X - Error in I2C Write.....\r\n01-31 10:11:35.313: E/NxpHal(3774): write error status = 0x1ff\r\n01-31 10:11:35.313: E/NxpHal(3774): write_unlocked failed - PN54X Maybe in Standby Mode - Retry\r\n01-31 10:11:35.317: D/BrcmNfcJni(3774): RoutingManager::nfaEeCallback: NFA_EE_SET_TECH_CFG_EVT; status=0x0\r\n01-31 10:11:35.317: D/BrcmNfcJni(3774): RoutingManager::nfaEeCallback: NFA_EE_SET_PROTO_CFG_EVT; status=0x0\r\n01-31 10:11:35.317: D/BrcmNfcJni(3774): RoutingManager::commitRouting\r\n01-31 10:11:35.317: D/BrcmNfcJni(3774): RoutingManager::nfaEeCallback: NFA_EE_UPDATED_EVT\r\n01-31 10:11:35.417: I/MSM-irqbalance(398): Discovered a new IRQ: 91\r\n01-31 10:11:35.418: I/MSM-irqbalance(398): Discovered a new IRQ: 336\r\n01-31 10:11:36.164: W/ActivityManager(865): Launch timeout has expired, giving up wake lock!\r\n01-31 10:11:36.809: E/mm-camera(527): iface_util_calc_cds_trigger: take CDS! cds status 1, curr_triiger 30.437143, lowlight_start 22.000000, lowlight_end 25.000000\r\n01-31 10:11:36.814: E/mm-camera-sensor(527): module_sensor_handle_eztune_event:884error: unknown entry (default case)\r\n01-31 10:11:36.857: E/mm-camera(527): iface_util_decide_cds_update: cds_status 2, thread busy 0! drop CDS!\r\n01-31 10:11:36.864: E/mm-camera-isp2(527): scaler44_do_hw_update:981 cds_debug entry 0 stream_id[0] 3 enable 1\r\n01-31 10:11:36.864: E/mm-camera(527): mct: mct_stream_process_bus_msg: Couldn't apply delay to metadata ack frame_id 216\r\n01-31 10:11:36.907: E/mm-camera(527): isp_util_update_cds:1731 cds_debug stream_id 3 enable 1\r\n01-31 10:11:36.907: E/mm-camera(527): iface_util_uv_subsample: 7902 cds_debug hw_stream[0] id 10003\r\n01-31 10:11:36.908: E/mm-camera(527): iface_dump_axi_update_info:=== CDS DUMP: session_id 1, hw_stream_id 10003 ====\r\n01-31 10:11:36.908: E/mm-camera(527): iface_dump_axi_update_info: plane[0]: plane_fmt 0(Y-0/CB-1/Cr-2/CrCb-3/CbCr-4)\r\n01-31 10:11:36.908: E/mm-camera(527): iface_dump_axi_update_info: plane[0]: width = 1280, height = 948\r\n01-31 10:11:36.908: E/mm-camera(527): iface_dump_axi_update_info: plane[0]: stride = 1280, scanlines = 948\r\n01-31 10:11:36.908: E/mm-camera(527): iface_dump_axi_update_info: plane[0]: address_offset 0\r\n01-31 10:11:36.908: E/mm-camera(527): iface_dump_axi_update_info: plane[1]: plane_fmt 4(Y-0/CB-1/Cr-2/CrCb-3/CbCr-4)\r\n01-31 10:11:36.908: E/mm-camera(527): iface_dump_axi_update_info: plane[1]: width = 640, height = 237\r\n01-31 10:11:36.908: E/mm-camera(527): iface_dump_axi_update_info: plane[1]: stride = 1280, scanlines = 474\r\n01-31 10:11:36.908: E/mm-camera(527): iface_dump_axi_update_info: plane[1]: address_offset 0\r\n01-31 10:11:36.908: E/mm-camera(527): iface_session_thread_proc_cmd: 250 cds wait KERNEL......\r\n01-31 10:11:36.934: E/mm-camera(527): iface_util_decide_cds_update: cds_status 2, thread busy 1! drop CDS!\r\n01-31 10:11:36.955: E/mm-camera(527): iface_util_hw_notify_buf_drop: hw stream state 3, need divert 1\r\n01-31 10:11:36.955: E/mm-camera(527): cpp_module_process_downstream_event:1181: MCT_EVENT_MODULE_FRAME_DROP_NOTIFY: identity=0x10003\r\n01-31 10:11:36.955: E/mm-camera(527): cpp_module_handle_isp_drop_buffer:721, info: ISP drop buf frameid 218 identity 10003\r\n01-31 10:11:36.955: E/mm-camera(527): cpp_module_handle_isp_drop_buffer:772, error: ISP buf drop for invalid frame 218\r\n01-31 10:11:36.955: E/mm-camera(527): cpp_module_process_downstream_event:1184, failed\r\n01-31 10:11:36.958: E/mm-camera(527): iface_util_decide_cds_update: cds_status 2, thread busy 1! drop CDS!\r\n01-31 10:11:36.958: E/mm-camera(527): module_cac_forward_port_event:403] Fowarding event 2 from sink port failed\r\n01-31 10:11:36.958: E/mm-camera(527): module_afs_forward_port_event:787] Fowarding event 2 from sink port failed\r\n01-31 10:11:36.958: E/mm-camera(527): module_afs_port_event_func:1167] module_afs_forward_port_event failed\r\n01-31 10:11:36.958: E/mm-camera-pp(527): [ERR] base_port_sink_event_func:723, failed\r\n01-31 10:11:36.958: E/mm-camera(527): isp_util_forward_event:1053 failed: mct_port_send_event_to_peer event->type 2\r\n01-31 10:11:36.960: E/mm-camera-isp2(527): isp_handler_event:1870 failed: isp_util_forward_event\r\n01-31 10:11:36.960: E/mm-camera(527): isp_port_process_downstream_module_event:293 failed: isp_handler_event\r\n01-31 10:11:36.960: E/mm-camera(527): isp_port_process_downstream_event:341 failed: isp_port_process_downstream_module_event\r\n01-31 10:11:36.960: E/mm-camera(527): isp_port_event:477 failed: isp_port_process_downstream_event\r\n01-31 10:11:37.005: E/mm-camera(527): iface_session_thread_proc_cmd: 261 cds wait KERNEL done!\r\n{code}\r\n\r\nAfter updating the phone to Android 7.1.1, I get this crash log:\r\n\r\n{code}\r\n01-31 10:39:40.115: E/NxpTml(3696): _i2c_write() errno : 5\r\n01-31 10:39:40.116: E/NxpTml(3696): PN54X - Error in I2C Write.....\r\n01-31 10:39:40.116: E/NxpHal(3696): write error status = 0x1ff\r\n01-31 10:39:40.116: E/NxpHal(3696): write_unlocked failed - PN54X Maybe in Standby Mode - Retry\r\n01-31 10:39:42.337: E/mm-camera(524): iface_util_calc_cds_trigger: take CDS! cds status 1, curr_triiger 29.552364, lowlight_start 22.000000, lowlight_end 25.000000\r\n01-31 10:39:42.337: E/mm-camera-sensor(524): module_sensor_handle_eztune_event:885error: unknown entry (default case)\r\n01-31 10:39:42.388: E/mm-camera(524): iface_util_decide_cds_update: cds_status 2, thread busy 0! drop CDS!\r\n01-31 10:39:42.395: E/mm-camera-isp2(524): scaler44_do_hw_update:981 cds_debug entry 0 stream_id[0] 3 enable 1\r\n01-31 10:39:42.395: E/mm-camera(524): mct: mct_stream_process_bus_msg: Couldn't apply delay to metadata ack frame_id 143\r\n01-31 10:39:42.436: E/mm-camera(524): isp_util_update_cds:1731 cds_debug stream_id 3 enable 1\r\n01-31 10:39:42.436: E/mm-camera(524): iface_util_uv_subsample: 7902 cds_debug hw_stream[0] id 10003\r\n01-31 10:39:42.437: E/mm-camera(524): iface_dump_axi_update_info:=== CDS DUMP: session_id 1, hw_stream_id 10003 ====\r\n01-31 10:39:42.437: E/mm-camera(524): iface_dump_axi_update_info: plane[0]: plane_fmt 0(Y-0/CB-1/Cr-2/CrCb-3/CbCr-4)\r\n01-31 10:39:42.437: E/mm-camera(524): iface_dump_axi_update_info: plane[0]: width = 1280, height = 948\r\n01-31 10:39:42.437: E/mm-camera(524): iface_dump_axi_update_info: plane[0]: stride = 1280, scanlines = 948\r\n01-31 10:39:42.437: E/mm-camera(524): iface_dump_axi_update_info: plane[0]: address_offset 0\r\n01-31 10:39:42.437: E/mm-camera(524): iface_dump_axi_update_info: plane[1]: plane_fmt 4(Y-0/CB-1/Cr-2/CrCb-3/CbCr-4)\r\n01-31 10:39:42.437: E/mm-camera(524): iface_dump_axi_update_info: plane[1]: width = 640, height = 237\r\n01-31 10:39:42.437: E/mm-camera(524): iface_dump_axi_update_info: plane[1]: stride = 1280, scanlines = 474\r\n01-31 10:39:42.437: E/mm-camera(524): iface_dump_axi_update_info: plane[1]: address_offset 0\r\n01-31 10:39:42.437: E/mm-camera(524): iface_util_decide_cds_update: cds_status 2, thread busy 1! drop CDS!\r\n01-31 10:39:42.439: E/mm-camera(524): iface_session_thread_proc_cmd: 250 cds wait KERNEL......\r\n01-31 10:39:42.493: E/mm-camera(524): iface_util_hw_notify_buf_drop: hw stream state 3, need divert 1\r\n01-31 10:39:42.493: E/mm-camera(524): cpp_module_process_downstream_event:1181: MCT_EVENT_MODULE_FRAME_DROP_NOTIFY: identity=0x10003\r\n01-31 10:39:42.495: E/mm-camera(524): iface_util_decide_cds_update: cds_status 2, thread busy 1! drop CDS!\r\n01-31 10:39:42.496: E/mm-camera(524): cpp_module_handle_isp_drop_buffer:721, info: ISP drop buf frameid 145 identity 10003\r\n01-31 10:39:42.496: E/mm-camera(524): cpp_module_handle_isp_drop_buffer:772, error: ISP buf drop for invalid frame 145\r\n01-31 10:39:42.496: E/mm-camera(524): cpp_module_process_downstream_event:1184, failed\r\n01-31 10:39:42.499: E/mm-camera(524): module_cac_forward_port_event:403] Fowarding event 2 from sink port failed\r\n01-31 10:39:42.499: E/mm-camera(524): module_afs_forward_port_event:787] Fowarding event 2 from sink port failed\r\n01-31 10:39:42.499: E/mm-camera(524): module_afs_port_event_func:1167] module_afs_forward_port_event failed\r\n01-31 10:39:42.499: E/mm-camera-pp(524): [ERR] base_port_sink_event_func:723, failed\r\n01-31 10:39:42.499: E/mm-camera(524): isp_util_forward_event:1053 failed: mct_port_send_event_to_peer event->type 2\r\n01-31 10:39:42.500: E/mm-camera-isp2(524): isp_handler_event:1870 failed: isp_util_forward_event\r\n01-31 10:39:42.500: E/mm-camera(524): isp_port_process_downstream_module_event:293 failed: isp_handler_event\r\n01-31 10:39:42.500: E/mm-camera(524): isp_port_process_downstream_event:341 failed: isp_port_process_downstream_module_event\r\n01-31 10:39:42.500: E/mm-camera(524): isp_port_event:477 failed: isp_port_process_downstream_event\r\n01-31 10:39:42.559: E/mm-camera(524): iface_session_thread_proc_cmd: 261 cds wait KERNEL done!\r\n01-31 10:39:44.046: E/mm-camera-CORE(524): af_haf_focus_converge_proc_fallback:OPTIMIZATION 0: valid 1, dir 1, far 324, near 0, start 65\r\n01-31 10:39:44.096: E/mm-camera-isp2(524): be_stats44_stats_config_validate:623 Invalid BG from 3A h_num = 0, v_num = 0\r\n01-31 10:39:44.096: E/mm-camera-isp2(524): bhist_stats44_stats_config_validate:363 Invalid BG from 3A h_num = 0, v_num = 0\r\n{code}\r\n\r\n(they look to be pretty much the same at a cursory glance)\r\n\r\nWe're using Ti.Media.showCamera() with an overlay and calling takePicture(). First picture was fine, second photo froze the device; I had to restart the phone to recover.\r\n\r\nPerhaps it's because Titanium is still using android.hardware.Camera (deprecated in API 21) instead of Camera2? There might be something about the new devices not compatible with the old class.\r\n", "updateAuthor": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "created": "2017-01-31T15:43:40.000+0000", "updated": "2017-01-31T15:43:40.000+0000" }, { "id": "406042", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~acvauctions] Does the same happen if you do not use the overlay and use the native camera? Just curious.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-01T14:56:43.000+0000", "updated": "2017-02-01T14:56:43.000+0000" }, { "id": "406123", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "We're having random crashes too. We don't use an overlay. Currently a user with a Moto G3 is reporting the issue.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-02T10:01:44.000+0000", "updated": "2017-02-02T10:01:44.000+0000" }, { "id": "406153", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have a 430kb log file in which the crash happens. Where can I send it?\r\n", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-02T15:51:44.000+0000", "updated": "2017-02-02T15:53:02.000+0000" }, { "id": "406289", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~topener] You should be able to click 'More' > 'Attach Files'. If not, you could use http://pastebin.com/", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-03T20:18:21.000+0000", "updated": "2017-02-03T20:18:21.000+0000" }, { "id": "406324", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "We're also experiencing those random crashes.\r\n\r\nWe use the showCamera method normally without any overlays.\r\n\r\nCrittercism doesn't seem to produce any helpful information.\r\nLogcat only shows those E/mm-camera garbage but don't provide anything else before the app crashes.\r\n\r\nAlready tried setting largeHeap to true but that had no effect whatsoever.\r\n\r\nWe've managed to reproduce this bug constantly on a MotoG 2nd Generation but the same code with the exact same variables doesn't cause the camera to crash on a MotoG Turbo Edition (both running Android 6.0).\r\n\r\nThis is a long-time bug that were always randomly reported by our use base.", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2017-02-03T23:22:06.000+0000", "updated": "2017-02-03T23:22:06.000+0000" }, { "id": "406325", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "Awkwardly, (like an old 386 running Windows XP), if you reboot the damn Android device, you can (for some time) use the camera normally (both for photos and videos)...\r\n\r\n(tested on MotoG2)\r\n\r\nidk if this behavior affects non-Titanium native Android apps using the camera but this is a very strange behavior to say the least.\r\n\r\nonce it starts crashing the only way to make things work again is restarting the phone. simply uninstalling/reinstalling the app has no effect.", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2017-02-03T23:34:48.000+0000", "updated": "2017-02-03T23:34:48.000+0000" }, { "id": "406339", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ygbr] That's due to not enough memory being available to use the camera. It sounds like too many apps are open in the background, using up lots of memory and the Moto G2 only has 1GB of RAM.", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-04T13:48:09.000+0000", "updated": "2017-02-04T13:48:09.000+0000" }, { "id": "406340", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "attached the crash log with a phone attached while it happened. hope this helps", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-04T14:05:05.000+0000", "updated": "2017-02-04T14:05:05.000+0000" }, { "id": "406341", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "@Gary It's not about memory!\r\nI'm 100% sure that in my last tests ONLY my app was open in foreground.\r\nI have also removed almost everything from the device and it is almost in factory state with only my app, Facebook and a few other apps to test integrations.\r\nAlso this is a MotoG so there isn't a lot of crap running along the OS itself like in Samsung devices.\r\nAlso I've run Android Monitor together with my app and definitively there was enough free memory left on the device, if it was a memory problem I'm pretty sure I would see OOM Errors on logcat.\r\nAlso as I have mentioned above I have also tried to run with largeHeap and it didn't help.\r\nAlso there are devices with only 512Mb of RAM that runs the app (same code with the same parameters) normally without the Camera related crashes.", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2017-02-04T15:44:10.000+0000", "updated": "2017-02-04T15:44:10.000+0000" }, { "id": "406343", "author": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "body": "It is absolutely not a memory thing. Nexus 5x is a flagship Google phone. I can clean boot, no apps running, start my app & take one photo and the phone crashes. As I stated above, the app crash leaves the camera in a locked state so that no other processes can access it. (Because the app has crashed, [release()|https://developer.android.com/reference/android/hardware/Camera.html#release()] is never called. Thus, the only way to release it is to reboot the phone.)\r\n\r\nThis is a test device, with no apps other than what is provided stock when we bought the phone from Google plus our prod app version and test/development app version installed. ", "updateAuthor": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "created": "2017-02-05T14:57:50.000+0000", "updated": "2017-02-05T14:57:50.000+0000" }, { "id": "406392", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~acvauctions] [~ygbr] I have compiled a test case with some fixes I've made to the SDK. Since I can't reproduce your issues on any of my devices could you run this test case and tell me if the problem persists? It appears there are varying issues posted under this ticket which is confusing.\r\n\r\n[TIMOB-12848.apk (testCase)|http://garymathews.com/TIMOB-12848.apk]\r\n\r\n{code:js}\r\nvar win = Titanium.UI.createWindow({layout: 'vertical'}),\r\n cam = Ti.UI.createButton({title: 'OPEN CAMERA', width: Ti.UI.FILL, height: '40dp'}),\r\n img = Ti.UI.createImageView({backgroundColor: 'red', height: Ti.UI.FILL, width: Ti.UI.FILL});\r\n\r\nfunction showCamera() {\r\n if (Ti.Media.hasCameraPermissions()) {\r\n Ti.Media.showCamera({\r\n success: function(e) {\r\n img.image = e.media;\r\n },\r\n cancel: function() {\r\n Ti.API.info('canceled');\r\n },\r\n error: function(e) {\r\n Ti.API.info('error: ' + JSON.stringify(e, null, ' '));\r\n }\r\n });\r\n } else {\r\n Ti.Media.requestCameraPermissions(function(e) {\r\n if (e.success) {\r\n showCamera();\r\n }\r\n });\r\n }\r\n}\r\n\r\ncam.addEventListener('click', function() {\r\n showCamera();\r\n});\r\n\r\nwin.add(cam);\r\nwin.add(img);\r\n\r\nwin.open();\r\n{code}", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-06T14:27:14.000+0000", "updated": "2017-02-06T14:27:14.000+0000" }, { "id": "406395", "author": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "body": "@Gary I have installed your APK on a MotoG (2nd generation) and after I took the first picture and tapped the check mark (to accept the picture) it crashed.\r\n\r\nAfter that I have reopened the app and it worked normally for many pictures I took.", "updateAuthor": { "name": "ygbr", "key": "ygbr", "displayName": "Ygor Lemos", "active": true, "timeZone": "America/Sao_Paulo" }, "created": "2017-02-06T16:15:57.000+0000", "updated": "2017-02-06T16:15:57.000+0000" }, { "id": "406396", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~ygbr] Are you able to reproduce the crash and paste the log?", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-06T16:21:33.000+0000", "updated": "2017-02-06T16:21:33.000+0000" }, { "id": "406397", "author": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "body": "That seems to work fine on my Nexus 5x (Android 7.0). I was able to take, retake, cancel, take, etc. a dozen or so pictures without any crashes. Our app uses an overlay. Any chance you could post an updated version of your test app that uses an overlay so I can be sure it also works correctly?\r\n\r\nI also tested on a couple of our other test devices that have not had camera crash issues like the 5x. \r\n\r\n* Galaxy S5 running Android 6.0.1 -- worked without crashing though the photo wouldn't show in the ImageView, logs said the bitmap was too large\r\n* a custom Android tablet (BAK USA) running Android running 4.4.2 -- worked without crashing and as expected", "updateAuthor": { "name": "acvauctions", "key": "acvauctions", "displayName": "Tim Poulsen (ACV)", "active": true, "timeZone": "America/New_York" }, "created": "2017-02-06T16:27:44.000+0000", "updated": "2017-02-06T16:27:44.000+0000" }, { "id": "406398", "author": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "body": "I never found any real logic in the crashes. Sometimes it happens, sometimes it doesn't. When it did it was easily reproducible and sometimes even needed a devices restart to get it to work again.", "updateAuthor": { "name": "topener", "key": "topener", "displayName": "Rene Pot", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-02-06T16:31:43.000+0000", "updated": "2017-02-06T16:31:43.000+0000" }, { "id": "407487", "author": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have a user using a custom overlay on a SM-G920T running Android 6.0.1 who is experiencing crashes when using a custom overlay. \r\n\r\nh5. Sample Code:\r\n{code}\r\nvar _toggleFlashMode = function () {
\r\n 
\r\n        var currentFlashMode = Ti.Media.getCameraFlashMode();
\r\n        var newFlashMode = null;
\r\n 
\r\n        switch ( currentFlashMode ) {
\r\n                case Ti.Media.CAMERA_FLASH_ON : {
\r\n                        newFlashMode = Ti.Media.CAMERA_FLASH_OFF;
\r\n 
\r\n                        break;
\r\n                }
\r\n 
\r\n                case Ti.Media.CAMERA_FLASH_OFF : {
\r\n                        newFlashMode = Ti.Media.CAMERA_FLASH_AUTO;
\r\n 
\r\n                        break;
\r\n                }
\r\n 
\r\n                case Ti.Media.CAMERA_FLASH_AUTO : {
\r\n                        newFlashMode = Ti.Media.CAMERA_FLASH_ON;
\r\n 
\r\n                        break;
\r\n                }
\r\n        }
\r\n 
\r\n        Ti.App.Properties.setInt( 'CAMERA_FLASH_MODE', newFlashMode );
\r\n        Ti.Media.setCameraFlashMode( newFlashMode );
\r\n};
\r\n 
\r\nvar _getFlashImage = function () {
\r\n 
\r\n        var flashMode = Ti.Media.getCameraFlashMode();
\r\n        var image     = null;
\r\n 
\r\n        switch ( flashMode ) {
\r\n                case Ti.Media.CAMERA_FLASH_ON : {
\r\n                        image =  '/images/flash_on.png';
\r\n 
\r\n                        break;
\r\n                }
\r\n 
\r\n                case Ti.Media.CAMERA_FLASH_OFF : {
\r\n                        image = '/images/flash_off.png';
\r\n 
\r\n                        break;
\r\n                }
\r\n 
\r\n                case Ti.Media.CAMERA_FLASH_AUTO : {
\r\n                        image = '/images/flash_auto.png';
\r\n 
\r\n                        break;
\r\n                }
\r\n        }
\r\n 
\r\n        return image;
\r\n};
\r\n 
\r\nvar takePicture;
\r\n 
\r\nvar _createCameraOverlay = function () {
\r\n 
\r\n//      var self = this;
\r\n 
\r\n        var wrapper = Ti.UI.createView( {
\r\n                'width'  : Ti.UI.FILL,
\r\n                'height' : Ti.UI.FILL
\r\n        } );
\r\n 
\r\n        var buttonBackground = Ti.UI.createView( {
\r\n                'width'           : Ti.UI.FILL,
\r\n                'height'          : 60,
\r\n                'backgroundColor' : '#000',
\r\n                'opacity'         : 0.5,
\r\n                'bottom'          : 0,
\r\n        } );
\r\n 
\r\n        wrapper.add( buttonBackground );
\r\n 
\r\n        var buttonWrapper = Ti.UI.createView( {
\r\n                'width'  : Ti.UI.FILL,
\r\n                'height' : 60,
\r\n                'bottom' : 0,
\r\n                'zIndex' : 1
\r\n        } );
\r\n 
\r\n        wrapper.add( buttonWrapper );
\r\n 
\r\n        var cancel = Ti.UI.createView( {
\r\n                'top'    : 0,
\r\n                'left'   : 0,
\r\n                'width'  : '33%',
\r\n                'height' : 60
\r\n        } );
\r\n 
\r\n        buttonWrapper.add( cancel );
\r\n 
\r\n        var cancelImage = Ti.UI.createImageView( {
\r\n                'top'    : 20,
\r\n                'left'   : 20,
\r\n                'image'  : '/images/close_camera.png',
\r\n                'width'  : 20,
\r\n                'height' : 20
\r\n        } );
\r\n 
\r\n        cancel.add( cancelImage );
\r\n 
\r\n        cancel.addEventListener( 'click', function () {
\r\n 
\r\n                try {
\r\n                        Ti.Media.hideCamera();
\r\n                } catch ( e ) {
\r\n                        console.error( 'Camera Hiding Problem: ' + JSON.stringify( e ) );
\r\n                }
\r\n        } );
\r\n 
\r\n        takePicture = Ti.UI.createImageView( {
\r\n                'top'     : 5,
\r\n                'image'   : '/images/camera.png',
\r\n                'width'   : 50,
\r\n                'height'  : 50,
\r\n                'opacity' : 1
\r\n        } );
\r\n 
\r\n        buttonWrapper.add( takePicture );
\r\n 
\r\n        takePicture.addEventListener( 'click', function () {
\r\n 
\r\n                if ( takePicture.opacity == 1 ) {
\r\n                        takePicture.opacity = 0.25;
\r\n 
\r\n                        setTimeout( function () {
\r\n 
\r\n                                Ti.Media.takePicture();
\r\n                        }, 100 );
\r\n                }
\r\n        } );
\r\n 
\r\n        var flash = Ti.UI.createView( {
\r\n                'top'    : 0,
\r\n                'right'  : 0,
\r\n                'width'  : '33%',
\r\n                'height' : 60
\r\n        } );
\r\n 
\r\n        var flashImage = Ti.UI.createImageView( {
\r\n                'top'    : 20,
\r\n                'right'  : 20,
\r\n                'image'  : _getFlashImage(),
\r\n                'width'  : 20,
\r\n                'height' : 20
\r\n        } );
\r\n 
\r\n        flash.add( flashImage );
\r\n 
\r\n        flash.addEventListener( 'click', function () {
\r\n 
\r\n                _toggleFlashMode();
\r\n 
\r\n                flashImage.image = _getFlashImage();
\r\n        }.bind( this ) );
\r\n 
\r\n        buttonWrapper.add( flash );
\r\n 
\r\n        var successPopupWrapper = Ti.UI.createView( {
\r\n                'width'   : Ti.UI.FILL,
\r\n                'height'  : 30,
\r\n                'opacity' : 0,
\r\n                'bottom'  : 60
\r\n        } );
\r\n 
\r\n        var successPopupBackground = Ti.UI.createView( {
\r\n                'width'           : Ti.UI.FILL,
\r\n                'height'          : 30,
\r\n                'opacity'         : 0.5,
\r\n                'backgroundColor' : '#000'
\r\n        } );
\r\n 
\r\n        successPopupWrapper.add( successPopupBackground );
\r\n 
\r\n        var successPopupText = Ti.UI.createLabel( {
\r\n                'width'     : Ti.UI.FILL,
\r\n                'height'    : 30,
\r\n                'color'     : '#fff',
\r\n                'text'      : 'Photo Saved',
\r\n                'textAlign' : Ti.UI.TEXT_ALIGNMENT_CENTER
\r\n        } );
\r\n 
\r\n        successPopupWrapper.add( successPopupText );
\r\n 
\r\n        var fadeInOut = Ti.UI.createAnimation( {
\r\n                'opacity'     : 1,
\r\n                'duration'    : 400,
\r\n                'autoreverse' : true,
\r\n                'curve'       : Ti.UI.ANIMATION_CURVE_EASE_IN_OUT
\r\n        } );
\r\n 
\r\n 
\r\n        wrapper.add( successPopupWrapper );
\r\n 
\r\n        return wrapper;
\r\n};
\r\n 
\r\nvar win = Titanium.UI.createWindow({layout: 'vertical'}),
\r\n    cam = Ti.UI.createButton({title: 'OPEN CAMERA', width: Ti.UI.FILL, height: '40dp'}),
\r\n    img = Ti.UI.createImageView({backgroundColor: 'red', height: Ti.UI.FILL, width: Ti.UI.FILL});
\r\n 
\r\nfunction showCamera() {
\r\n    if (Ti.Media.hasCameraPermissions()) {
\r\n        Ti.Media.showCamera({
\r\n            success: function(e) {
\r\n 
\r\n                                takePicture.opacity = 1;
\r\n 
\r\n                img.image = e.media;
\r\n            },
\r\n            cancel: function() {
\r\n 
\r\n                Ti.API.info('canceled');
\r\n            },
\r\n            error: function(e) {
\r\n 
\r\n                Ti.API.info('error: ' + JSON.stringify(e, null, ' '));
\r\n            },
\r\n            'overlay' : _createCameraOverlay(),
\r\n //           'videoQuality' : Ti.Media.QUALITY_MEDIUM,
\r\n            'whichCamera'  : Ti.Media.CAMERA_REAR,
\r\n            'showControls' : false,
\r\n                        'autohide'     : false,
\r\n//                      'mediaTypes'   : [
\r\n//                              Ti.Media.MEDIA_TYPE_PHOTO
\r\n//                      ]
\r\n        });
\r\n    } else {
\r\n        Ti.Media.requestCameraPermissions(function(e) {
\r\n            if (e.success) {
\r\n                showCamera();
\r\n            }
\r\n        });
\r\n    }
\r\n}
\r\n 
\r\ncam.addEventListener('click', function() {
\r\n    showCamera();
\r\n});
\r\n 
\r\nwin.add(cam);
\r\nwin.add(img);
\r\n 
\r\nwin.open();
\r\n\r\n{code}\r\n\r\nh5. Error: \r\nhttp://paste.thezomg.com/20078/36994514/\r\n\r\nHe is reporting that without the custom overlay everything works fine. ", "updateAuthor": { "name": "vvazquezmontero", "key": "vvazquezmontero", "displayName": "Victor Vazquez Montero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-21T18:29:22.000+0000", "updated": "2017-02-21T18:29:22.000+0000" }, { "id": "409856", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/8868", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-03-08T18:01:18.000+0000", "updated": "2017-03-08T18:01:18.000+0000" }, { "id": "427364", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "6_2_X: https://github.com/appcelerator/titanium_mobile/pull/9326", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-29T17:21:01.000+0000", "updated": "2017-08-29T17:21:01.000+0000" }, { "id": "427377", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Environment:\r\nNode Version: 6.10.3\r\nNPM Version: 3.10.10\r\nMac OS: 10.12.4\r\nAppc CLI: 6.2.3\r\nAppc CLI NPM: 4.2.9\r\nTitanium SDK version: 6.2.0.v20170829115147\r\nAppcelerator Studio, build: 4.9.1.201707200100\r\nXcode 8.3.2\r\nAndroid OS 5.1.1, 7.1.2, 4.4.4, 6.0.1\r\nAndroid phones: Galaxy S4, Pixel, HTC One X, Nexus, Nexus 5\r\n\r\nI tried testing for the crash with the above phones and OS. I found no crashes while going through the sequence (and looping manually): Open Camera, Take Picture, Review Picture. I tried about 50 times, and no crashes occurred. I was not able to test with a Galaxy S6, as the device is not available in our lab.", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-29T21:08:41.000+0000", "updated": "2017-08-29T21:08:41.000+0000" }, { "id": "427386", "author": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Changes are seen in the following SDKs:\r\n6.2.0.v20170829141855\r\n7.0.0.v20170829141756", "updateAuthor": { "name": "amukherjee", "key": "amukherjee", "displayName": "Abir Mukherjee", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-29T22:59:07.000+0000", "updated": "2017-08-29T22:59:07.000+0000" }, { "id": "441257", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "I still have this issue with 7.3.1.GA when using the normal camera (not the overlay)\r\n\r\n\r\n{noformat}\r\n08-31 15:27:14.251 26035 26035 I TiAPI : --------------show camera----------------\r\n08-31 15:27:17.518 27370 27370 W HTCCamera: saveAndFinish() - contentUri = 'content://com.miga.moments.tifileprovider/filesystem/storage/emulated/0/Android/data/com.miga.moments/files/Pictures/moments/tia585926368.jpg'\r\n08-31 15:27:17.529 2466 2491 I art : Explicit concurrent mark sweep GC freed 34329(1857KB) AllocSpace objects, 9(196KB) LOS objects, 9% free, 155MB/171MB, paused 2.341ms total 362.763ms\r\n08-31 15:27:17.529 2466 2475 I art : WaitForGcToComplete blocked for 237.338ms for cause HeapTrim\r\n08-31 15:27:17.533 2466 3616 I ActivityManager: Start proc 27513:com.miga.moments/u0a1046 for content provider com.miga.moments/org.appcelerator.titanium.io.TiFileProvider\r\n08-31 15:27:17.534 2466 2625 V NetworkPolicy: updateRuleForRestrictBackgroundLocked(11046): isForeground=true, isBlacklisted=false, isWhitelisted=false, oldRule=0 (NONE), newRule=0 (NONE), newUidRules=0 (NONE), oldUidRules=0 (NONE)\r\n08-31 15:27:17.534 2466 2625 V NetworkPolicy: updateRulesForNonMeteredNetworksLocked(11046), isIdle: false, mRestrictPower: false, mDeviceIdleMode: false, isForeground=true, isWhitelisted=false, oldRule=0 (NONE), newRule=0 (NONE), newUidRules=0 (NONE), oldUidRules=0 (NONE)\r\n08-31 15:27:17.653 27513 27513 I TiApplication: (main) [0,0] checkpoint, app created.\r\n08-31 15:27:17.757 27513 27513 I TiApplication: (main) [110,110] Titanium 7.3.1 (2018/08/29 00:19 undefined)\r\n08-31 15:27:17.793 27370 27370 W HTCCamera: finish()\r\n08-31 15:27:17.807 27370 27370 W HTCCamera: onPause() - start\r\n08-31 15:27:17.809 27370 27370 W HTCCamera: onPreviewResourcesDestroyed()\r\n08-31 15:27:17.811 27370 27370 D HTCCamera(BaseObjectProxy): [Event] Pausing : End\r\n08-31 15:27:17.811 27370 27370 D Property: [HTCCamera.IsActivityPaused] false -> true\r\n08-31 15:27:17.829 27370 27370 W HTCCamera: onPause() - mIsUIReady = false\r\n08-31 15:27:17.830 27370 27370 W HTCCamera: onPause mIdle is false\r\n08-31 15:27:17.844 27370 27370 D Property: [HTCCamera.TakingPictureState] Reviewing -> Preparing\r\n08-31 15:27:17.845 27370 27370 W HTCCamera: onActionScreenClosed() - Activity is paused\r\n08-31 15:27:17.845 27370 27370 W HTCCamera: OnPause - Freeze UI !!!\r\n08-31 15:27:17.847 27370 27370 W HTCCamera: doOnPause() - start\r\n08-31 15:27:17.847 27370 27370 W HTCCamera: OnPause - hide UI, set mMainLayout invisible\r\n08-31 15:27:17.848 27370 27370 W HTCCamera: doOnPause() - end\r\n08-31 15:27:17.849 27370 27370 W HTCCamera: onPause +++stopPreview()\r\n08-31 15:27:17.851 27370 27370 W HTCCamera: onPause ---stopPreview()\r\n08-31 15:27:17.851 27370 27390 W CameraThread: closeCamera() - Start\r\n08-31 15:27:17.858 27370 27370 W HTCCamera: onPause() - end\r\n08-31 15:27:17.867 27370 27390 W CameraDeviceManager: closeCamera() - Release camera - start\r\n08-31 15:27:17.867 27370 27390 W CameraController: close(Main)\r\n08-31 15:27:17.867 27370 27390 W CameraController: suspendCamera(Front)\r\n08-31 15:27:17.868 27370 27390 W CameraController: suspendCamera(Front3D)\r\n08-31 15:27:17.868 27370 27390 W CameraController: close() - Release camera [start]\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: Exception when starting activity com.miga.moments/org.appcelerator.titanium.TiActivity\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: android.os.DeadObjectException\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat android.os.BinderProxy.transactNative(Native Method)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat android.os.BinderProxy.transact(Binder.java:623)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat android.app.ApplicationThreadProxy.scheduleLaunchActivity(ApplicationThreadNative.java:942)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat com.android.server.am.ActivityStackSupervisor.realStartActivityLocked(ActivityStackSupervisor.java:1309)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat com.android.server.am.ActivityStackSupervisor.startSpecificActivityLocked(ActivityStackSupervisor.java:1408)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat com.android.server.am.ActivityStack.resumeTopActivityInnerLocked(ActivityStack.java:2660)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat com.android.server.am.ActivityStack.resumeTopActivityUncheckedLocked(ActivityStack.java:2193)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat com.android.server.am.ActivityStackSupervisor.resumeFocusedStackTopActivityLocked(ActivityStackSupervisor.java:1832)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat com.android.server.am.ActivityStack.completePauseLocked(ActivityStack.java:1378)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat com.android.server.am.ActivityStack.activityPausedLocked(ActivityStack.java:1252)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat com.android.server.am.ActivityManagerService.activityPaused(ActivityManagerService.java:7207)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat android.app.ActivityManagerNative.onTransact(ActivityManagerNative.java:602)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat com.android.server.am.ActivityManagerService.onTransact(ActivityManagerService.java:2925)\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: \tat android.os.Binder.execTransact(Binder.java:573)\r\n08-31 15:27:17.995 2466 3902 D ActivityManager: cleanUpApplicationRecord -- 27513\r\n08-31 15:27:18.008 2466 3902 I ActivityManager: Start proc 27536:com.miga.moments/u0a1046 for activity com.miga.moments/org.appcelerator.titanium.TiActivity\r\n08-31 15:27:18.012 2466 4565 W ActivityManager: Spurious death for ProcessRecord{3331f36 27536:com.miga.moments/u0a1046}, curProc for 27513: null\r\n08-31 15:27:18.021 27370 27390 W CameraController: close() - Release camera [end]\r\n08-31 15:27:18.021 27370 27390 D Event : [CameraThread.CameraClosed] rasing\r\n08-31 15:27:18.022 27370 27390 D Event : [CameraThread.CameraClosed] raised\r\n08-31 15:27:18.022 27370 27390 W CameraThread: Release Camera\r\n08-31 15:27:18.022 27370 27390 W CameraThread: closeCamera() - End\r\n08-31 15:27:19.898 2466 2491 W WindowManager: App freeze timeout expired.\r\n08-31 15:27:19.898 2466 2491 W WindowManager: Force clearing freeze: AppWindowToken{a1471ec token=Token{6a83c9f ActivityRecord{d64863e u0 com.miga.moments/org.appcelerator.titanium.TiActivity t4808}}}\r\n08-31 15:27:19.899 2466 2485 D StatusBarManagerService: setSystemUiVisibility(0x8608)\r\n08-31 15:27:19.899 2466 2485 D StatusBarManagerService: disable:userId=0 what=0x0 which=0x1 pkg=null\r\n08-31 15:27:19.899 2466 2485 D StatusBarManagerService: hiding MENU key\r\n08-31 15:27:19.900 2466 2491 I WindowManager: Screen frozen for +2s20ms due to Window{56a375b u0 Starting com.miga.moments}\r\n08-31 15:27:20.310 27536 27536 I TiApplication: (main) [2097,2215] Titanium Javascript runtime: v8\r\n08-31 15:27:20.345 27536 27536 W TiBaseActivity: (main) [35,2250] Runtime has been disposed or app has been killed. Finishing.\r\n\r\n{noformat}\r\n\r\nThe log is from a HTC A9, Android 7, TiSDK 7.3.1.GA\r\n\r\nIt starts when I open the camera (inside showCamera) and I take an image.\r\nYou'll see that is saves the image to a temp location and shortly after that (search for {{TiApplication}}) it looks like it restarts the app \"checkpoint, app created\" ? Then it releases the camera view and it show this error:\r\n{noformat}\r\n Exception when starting activity com.miga.moments/org.appcelerator.titanium.TiActivity\r\n08-31 15:27:17.994 2466 3902 W ActivityManager: android.os.DeadObjectException\r\n{noformat}\r\nthen it will crash the whole app restarts the app (at the end of the log)\r\n\r\nWorks fine when using an overlay", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-08-31T14:32:11.000+0000", "updated": "2018-08-31T14:32:11.000+0000" } ], "maxResults": 138, "total": 138, "startAt": 0 } } }