{ "id": "118779", "key": "TIMOB-14918", "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": "15597", "description": "2013 Sprint 17", "name": "2013 Sprint 17", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "15598", "description": "2013 Sprint 17 Core", "name": "2013 Sprint 17 Core", "archived": true, "released": true, "releaseDate": "2013-08-23" }, { "id": "15593", "description": "Release 3.1.3", "name": "Release 3.1.3", "archived": true, "released": true, "releaseDate": "2013-09-18" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2013-08-26T19:21:50.000+0000", "created": "2013-08-19T23:08:25.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_media", "qe-closed-3.1.3", "qe-testadded", "regression" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-08-26T22:42:12.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": "This is a regression in 3.1.2.GA. It works fine in 3.1.1.GA.\r\n\r\nSteps to reproduce:\r\n\r\n1. Run the test case: \r\n{code}\r\nTi.UI.backgroundColor = \"#fff\";\r\nvar win = Ti.UI.createWindow({\r\n\ttitle : 'Test',\r\n\tbackgroundColor : '#fff'\r\n}), logLabel = Ti.UI.createLabel({\r\n\tbottom : \"8dp\",\r\n\tleft : \"8dp\",\r\n\tright : \"8dp\",\r\n\theight : \"96dp\",\r\n\tbackgroundColor : \"black\",\r\n\tcolor : \"white\",\r\n\tfont : {\r\n\t\tfontSize : \"10sp\"\r\n\t},\r\n\tverticalAlign : Ti.UI.TEXT_VERTICAL_ALIGNMENT_TOP\r\n}), log = function(s, clearFirst) {\r\n\tvar current = logLabel.text;\r\n\tif (current && !clearFirst) {\r\n\t\tcurrent += \"\\n\";\r\n\t} else {\r\n\t\tcurrent = \"\";\r\n\t}\r\n\tcurrent += s;\r\n\tlogLabel.text = current;\r\n}, showCamera, overlay, takePicture, switchCamera, close, currentCamera = Ti.Media.CAMERA_REAR;\r\n\r\nlogLabel.addEventListener(\"dblclick\", function() {\r\n\tlogLabel.text = \"\";\r\n});\r\n\r\nwin.add(logLabel);\r\n\r\noverlay = Ti.UI.createView({\r\n\twidth : Ti.UI.FILL,\r\n\theight : Ti.UI.FILL\r\n});\r\n\r\n\r\nwin.add( showCamera = Ti.UI.createButton({\r\n\ttitle : \"Show Camera\",\r\n\twidth : Ti.UI.SIZE\r\n}));\r\n\r\nshowCamera.addEventListener(\"click\", function() {\r\n\tTi.Media.showCamera({\r\n\t\tcancel : function() {\r\n\t\t\tlog(\"Cancelled\");\r\n\t\t},\r\n\t\terror : function(e) {\r\n\t\t\tlog(\"Error - \" + e.error);\r\n\t\t},\r\n\t\tsuccess : function(e) {\r\n\t\t\tlog(\"Media type: \" + e.mediaType);\r\n\t\t\tlog(\"Media size: \" + e.media.length);\r\n\t\t},\r\n\t\tsaveToPhotoGallery : true,\r\n\t\tshowControls : false,\r\n\t\toverlay : overlay\r\n\t});\r\n});\r\n\r\nwin.open(); \r\n{code}\r\n2. Hit show camera\r\n3. Change orientation\r\n\r\nExpected Results:\r\nOrientation should switch without any errors\r\n\r\nActual Results:\r\nApp crashes", "attachment": [], "flagged": false, "summary": "Android: Changing orientation with camera overlay causes app to crash", "creator": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Galaxy Nexus 4.1.1", "comment": { "comments": [ { "id": "267530", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile/pull/4583", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-21T21:01:09.000+0000", "updated": "2013-08-21T21:01:09.000+0000" }, { "id": "267531", "author": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "body": "3_1_X: https://github.com/appcelerator/titanium_mobile/pull/4595", "updateAuthor": { "name": "ayeung", "key": "ayeung", "displayName": "Allen Yeung", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-21T21:02:41.000+0000", "updated": "2013-08-21T21:02:41.000+0000" }, { "id": "267744", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested with\nAppcelerator Studio, build: 3.1.3.201308201707\nTitanium SDK:3.1.3.v20130821151600\nNO crash, but still error in a log\nGalaxy Nexus Android Version 4.1.1\n{code}\nE/CameraHAL( 125): Adapter state switch PREVIEW_ACTIVE Invalid Op! event = 0xf\n{code}\n\nNexus7(2) Android Version 4.3\n{code}\nE/qdoverlay( 178): Failed to call ioctl MSMFB_OVERLAY_SET err=Invalid argument\nE/qdoverlay( 178): MdpCtrl failed to setOverlay, restoring last known good ov info\nE/qdoverlay( 178): == Bad OVInfo is: mdp_overlay z=0 fg=0 alpha=255 mask=-1 flags=0x840000 id=3\nE/qdoverlay( 178): src msmfb_img w=1920 h=1080 format=6 MDP_Y_CRCB_H2V2\nE/qdoverlay( 178): src_rect mdp_rect x=0 y=50 w=1920 h=1030\nE/qdoverlay( 178): dst_rect mdp_rect x=0 y=0 w=1080 h=1832\nE/qdoverlay( 178): == Last good known OVInfo is: mdp_overlay z=0 fg=0 alpha=255 mask=-1 flags=0x840000 id=3\nE/qdoverlay( 178): src msmfb_img w=1920 h=1080 format=6 MDP_Y_CRCB_H2V2\nE/qdoverlay( 178): src_rect mdp_rect x=0 y=0 w=1262 h=1080\nE/qdoverlay( 178): dst_rect mdp_rect x=0 y=807 w=1200 h=1026\nE/qdoverlay( 178): Ctrl commit failed set overlay\nE/qdhwcomposer( 178): configureLowRes: commit failed for low res panel\nE/qdoverlay( 178): Failed to call ioctl MSMFB_OVERLAY_SET err=Invalid argument\nE/qdoverlay( 178): MdpCtrl failed to setOverlay, restoring last known good ov info\nE/qdoverlay( 178): == Bad OVInfo is: mdp_overlay z=0 fg=0 alpha=255 mask=-1 flags=0x840000 id=-1\nE/qdoverlay( 178): src msmfb_img w=1920 h=1080 format=6 MDP_Y_CRCB_H2V2\nE/qdoverlay( 178): src_rect mdp_rect x=0 y=0 w=1920 h=1080\nE/qdoverlay( 178): dst_rect mdp_rect x=12 y=0 w=1080 h=1920\nE/qdoverlay( 178): == Last good known OVInfo is: mdp_overlay z=0 fg=0 alpha=0 mask=0 flags=0x0 id=-1\nE/qdoverlay( 178): src msmfb_img w=0 h=0 format=0 MDP_RGB_565\nE/qdoverlay( 178): src_rect mdp_rect x=0 y=0 w=0 h=0\nE/qdoverlay( 178): dst_rect mdp_rect x=0 y=0 w=0 h=0\nE/qdoverlay( 178): MdpCtrl Lkgo ov has id -1, will not restore\n\n{code}\n", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-22T23:53:17.000+0000", "updated": "2013-08-22T23:53:17.000+0000" }, { "id": "267804", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Env used:\r\nSDK: 3.1.3.v20130822140128\r\nStudio:3.1.3.201308201707\r\nPlease find the below observations on various devices:\r\n\r\nNexus7(4.2)\r\n\r\nNo crash but following logs:\r\n\r\n08-23 12:02:31.519: E/qdoverlay(178): Failed to call ioctl MSMFB_OVERLAY_SET err=Invalid argument\r\n08-23 12:02:31.519: E/qdoverlay(178): MdpCtrl failed to setOverlay, restoring last known good ov info\r\n08-23 12:02:31.519: E/qdoverlay(178): == Bad OVInfo is: mdp_overlay z=0 fg=0 alpha=255 mask=-1 flags=0x840003 id=-1\r\n08-23 12:02:31.519: E/qdoverlay(178): src msmfb_img w=1920 h=1080 format=6 MDP_Y_CRCB_H2V2\r\n08-23 12:02:31.519: E/qdoverlay(178): src_rect mdp_rect x=0 y=0 w=1920 h=1080\r\n08-23 12:02:31.519: E/qdoverlay(178): dst_rect mdp_rect x=108 y=0 w=1080 h=1920\r\n08-23 12:02:31.519: E/qdoverlay(178): == Last good known OVInfo is: mdp_overlay z=0 fg=0 alpha=0 mask=0 flags=0x0 id=-1\r\n08-23 12:02:31.519: E/qdoverlay(178): src msmfb_img w=0 h=0 format=0 MDP_RGB_565\r\n08-23 12:02:31.519: E/qdoverlay(178): src_rect mdp_rect x=0 y=0 w=0 h=0\r\n08-23 12:02:31.519: E/qdoverlay(178): dst_rect mdp_rect x=0 y=0 w=0 h=0\r\n08-23 12:02:31.519: E/qdoverlay(178): MdpCtrl Lkgo ov has id -1, will not restore\r\n08-23 12:02:31.519: E/qdoverlay(178): Ctrl commit failed set overlay\r\n08-23 12:02:31.519: E/qdhwcomposer(178): configureLowRes: commit failed for low res panel\r\n08-23 12:02:31.619: E/CABL(204): MSMFB_HISTOGRAM_STOP failed!\r\n\r\nNexus4(4.0.4)\r\n\r\nNo crash but following error:\r\n\r\n08-23 12:07:50.048: E/CameraHAL(120): Adapter state switch PREVIEW_ACTIVE Invalid Op! event = 0xf\r\n\r\n\r\nGalaxy note1(2.3.6)\r\n\r\nNo crash, no error but flickers twice while changing the orientation\r\n\r\n\r\niphone4(iOS7)\r\nNo crash and no error logs\r\n\r\n\r\nNexus7(SDK build 3.2)\r\nNo crash but following error logs:\r\n\r\n08-23 16:08:39.446: E/qdoverlay(177): Failed to call ioctl MSMFB_OVERLAY_SET err=Invalid argument\r\n08-23 16:08:39.446: E/qdoverlay(177): MdpCtrl failed to setOverlay, restoring last known good ov info\r\n08-23 16:08:39.446: E/qdoverlay(177): == Bad OVInfo is: mdp_overlay z=0 fg=0 alpha=255 mask=-1 flags=0x840000 id=-1\r\n08-23 16:08:39.446: E/qdoverlay(177): src msmfb_img w=1920 h=1080 format=6 MDP_Y_CRCB_H2V2\r\n08-23 16:08:39.446: E/qdoverlay(177): src_rect mdp_rect x=0 y=0 w=1920 h=1080\r\n08-23 16:08:39.446: E/qdoverlay(177): dst_rect mdp_rect x=87 y=0 w=1026 h=1824\r\n08-23 16:08:39.446: E/qdoverlay(177): == Last good known OVInfo is: mdp_overlay z=0 fg=0 alpha=0 mask=0 flags=0x0 id=-1\r\n08-23 16:08:39.446: E/qdoverlay(177): src msmfb_img w=0 h=0 format=0 MDP_RGB_565\r\n08-23 16:08:39.446: E/qdoverlay(177): src_rect mdp_rect x=0 y=0 w=0 h=0\r\n08-23 16:08:39.446: E/qdoverlay(177): dst_rect mdp_rect x=0 y=0 w=0 h=0\r\n08-23 16:08:39.446: E/qdoverlay(177): MdpCtrl Lkgo ov has id -1, will not restore\r\n08-23 16:08:39.446: E/qdoverlay(177): Ctrl commit failed set overlay\r\n08-23 16:08:39.446: E/qdhwcomposer(177): configureLowRes: commit failed for low res panel\r\n", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-23T10:45:25.000+0000", "updated": "2013-08-23T10:46:31.000+0000" }, { "id": "268187", "author": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "body": "closing after talking to developers, this log error has nothing to do with orientation change.\nNo crash.", "updateAuthor": { "name": "oromero", "key": "oromero", "displayName": "Olga Romero", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-08-26T19:21:34.000+0000", "updated": "2013-08-26T19:21:34.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }