{ "id": "107603", "key": "AC-1959", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2014-01-24T06:50:17.000+0000", "created": "2013-01-09T02:52:06.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:53.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": [], "description": "*Steps to reproduce*\r\nCreate a Holo-themed app with these tiapp.xml, themes.xml and app.js:\r\n\r\n*themes.xml*\r\n{code}\r\n\r\n\r\n \r\n\r\n{code}\r\n\r\n*tiapp.xml*\r\n{code}\r\n\r\n\r\n com.picker\r\n Picker\r\n 1.0\r\n home_ced\r\n http://\r\n not specified\r\n 2012 by home_ced\r\n appicon.png\r\n false\r\n false\r\n default\r\n false\r\n false\r\n false\r\n true\r\n e42a5920-c4b9-4dbb-b2ab-fc5c3e3f6153\r\n system\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n \r\n \r\n Ti.UI.PORTRAIT\r\n Ti.UI.UPSIDE_PORTRAIT\r\n Ti.UI.LANDSCAPE_LEFT\r\n Ti.UI.LANDSCAPE_RIGHT\r\n \r\n \r\n \r\n 14\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n true\r\n true\r\n \r\n default\r\n \r\n \r\n \r\n false\r\n true\r\n false\r\n true\r\n false\r\n \r\n 3.0.0.GA\r\n\r\n{code}\r\n\r\n*app.js*\r\n{code}\r\nvar win = Titanium.UI.createWindow({\r\n\tfullscreen : false\r\n});\r\n\r\nvar button = Titanium.UI.createButton({\r\n\ttitle : 'Hello',\r\n\ttop : 10,\r\n\twidth : 100,\r\n\theight : 50\r\n});\r\n\r\nwin.add(button);\r\n\r\nvar picker = Ti.UI.createPicker({\r\n\ttype : Ti.UI.PICKER_TYPE_DATE\r\n});\r\n\r\nwin.addEventListener('open', function() {\r\n\tvar actionBar = win.activity.actionBar;\r\n});\r\n\r\nbutton.addEventListener('click', function(e) {\r\n\tpicker.showDatePickerDialog();\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\n*Log*\r\n{code}\r\n(KrollRuntimeThread) [27525,27525] Sending event: exception on thread: KrollRuntimeThread msg:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.\r\n{code}", "attachment": [], "flagged": false, "summary": "Android: Date picker with Holo theme crashes after making a reference to the ActionBar", "creator": { "name": "amashop", "key": "amashop", "displayName": "Alex M", "active": true, "timeZone": "Europe/Berlin" }, "subtasks": [], "reporter": { "name": "amashop", "key": "amashop", "displayName": "Alex M", "active": true, "timeZone": "Europe/Berlin" }, "environment": "Android 4.0 and 4.1 with Holo (works fine with 4.2)", "comment": { "comments": [ { "id": "237290", "author": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Alex, \r\nWhat device have you tested on? I tested it on android 4.1.1 and it's not crashing. Please provide the device name.", "updateAuthor": { "name": "nsharma", "key": "nsharma", "displayName": "Nikhil Sharma", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-05T22:12:15.000+0000", "updated": "2013-02-05T22:12:15.000+0000" }, { "id": "237605", "author": { "name": "amashop", "key": "amashop", "displayName": "Alex M", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've tested on two devices : a Nexus S running 4.1.2 and a Galaxy SII running 4.0.3. I didn't crash on Galaxy Nexus (4.2)", "updateAuthor": { "name": "amashop", "key": "amashop", "displayName": "Alex M", "active": true, "timeZone": "Europe/Berlin" }, "created": "2013-02-07T08:36:09.000+0000", "updated": "2013-02-07T08:36:09.000+0000" }, { "id": "289372", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening it to test with 3.2.0 release.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-23T06:46:07.000+0000", "updated": "2014-01-23T06:46:07.000+0000" }, { "id": "289521", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I tried to reproduce this issue with Nexus S running Android 4.1.2 but was not able to reproduce. Its working as expected. Please let us know if this is still an issue for you with the latest release 3.2.0 GA.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-01-23T23:59:02.000+0000", "updated": "2014-01-23T23:59:02.000+0000" }, { "id": "300182", "author": { "name": "m.bahl", "key": "m.bahl", "displayName": "Markus", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have the same issue,\nthis exception only raised on hardware devices.\n\nThe emulator works well.\n\nMy environment is Titanium 3.2.2. and my Hardware devices are\nNexus 5 and Samsung Galaxy S4\nboth Crash.\n\nSteps to reproduce\n1. Focus Textarea\n2. Type something in the textarea\n3. click on another View to open showTimePickerDialog\n\nResult\n[ERROR][TiApplication(17350)] (KrollRuntimeThread) [16699,100845] Sending event: exception on thread: KrollRuntimeThread msg:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.; Titanium 3.2.2,2014/03/05 12:22,96e9a07\n[ERROR][TiApplication(17350)] android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. \n\n\nLet me know if you need a code example.\n\n", "updateAuthor": { "name": "m.bahl", "key": "m.bahl", "displayName": "Markus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-04-08T08:33:11.000+0000", "updated": "2014-04-08T08:33:11.000+0000" }, { "id": "300185", "author": { "name": "m.bahl", "key": "m.bahl", "displayName": "Markus", "active": true, "timeZone": "Europe/Berlin" }, "body": "I have the same issue,\nthis exception only raised on hardware devices.\n\nThe emulator works well.\n\nMy environment is Titanium 3.2.2. and my Hardware devices are\nNexus 5 and Samsung Galaxy S4\nboth Crash.\n\nSteps to reproduce\n1. Focus Textarea\n2. Type something in the textarea\n3. click on another View to open showTimePickerDialog\n\nResult\n[ERROR][TiApplication(17350)] (KrollRuntimeThread) [16699,100845] Sending event: exception on thread: KrollRuntimeThread msg:android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views.; Titanium 3.2.2,2014/03/05 12:22,96e9a07\n[ERROR][TiApplication(17350)] android.view.ViewRootImpl$CalledFromWrongThreadException: Only the original thread that created a view hierarchy can touch its views. \n\n\nLet me know if you need a code example.\n", "updateAuthor": { "name": "m.bahl", "key": "m.bahl", "displayName": "Markus", "active": true, "timeZone": "Europe/Berlin" }, "created": "2014-04-08T08:38:29.000+0000", "updated": "2014-04-08T08:38:29.000+0000" }, { "id": "302119", "author": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~m.bahl] Please provide us a test case to reproduce your error as we cannot reproduce this issue with the original test case.", "updateAuthor": { "name": "ragrawal", "key": "ragrawal", "displayName": "Ritu Agrawal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-23T03:47:13.000+0000", "updated": "2014-04-23T03:47:13.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }