{ "id": "89484", "key": "TIMOB-8516", "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": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-09T04:52:35.000+0000", "created": "2012-04-04T14:12:59.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_views", "qe-testadded" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [ { "id": "16303", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "88499", "key": "TIMOB-8193", "fields": { "summary": "iOS: Composite layout - horizontal layout Views don't position children correctly", "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 } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-11-05T10:12:23.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": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "When running the code below, a deadlock warning intermittently appears:\r\n\r\nApr 4 14:59:27 unknown UIKitApplication:com.appcelerator.timob8193[0x13cc][3489] : [WARN] Timing out waiting on main thread. Possibly a deadlock? in TiThreadPerformOnMainThread (TiBase.m:238)\r\n\r\nAttempted to reproduce in 2.0.0.GA, but could not.\r\n\r\nSteps to Reproduce:\r\n\r\n1. Run code.\r\n\r\n{code}\r\nvar win1 = Ti.UI.createWindow({ \r\n title:'Win 1',\r\n layout:'vertical',\r\n backgroundColor:'#fff'\r\n});\r\n \r\nvar vw1 = Ti.UI.createView({\r\n layout:'horizontal',\r\n backgroundColor:'red',\r\n width:'100%',\r\n height:75\r\n});\r\nwin1.add(vw1);\r\n \r\n//\r\nvar TheOrange=Ti.UI.createView({height:75,\r\n width:'160dp',\r\n backgroundColor:'orange',\r\n top:0\r\n });\r\n \r\nvar GreenView=Ti.UI.createView({\r\n height:Ti.UI.SIZE,\r\n width:Ti.UI.SIZE,\r\n focusable:false,\r\n touchEnabled:false,\r\n backgroundColor:'green'\r\n});\r\n \r\nGreenView.add(TheOrange);\r\nvw1.add(GreenView);\r\n \r\nvar BlueView=Ti.UI.createView({\r\n backgroundColor:'blue',\r\n width:50,\r\n height:50\r\n});\r\nvw1.add(BlueView);\r\n//\r\n \r\nwin1.open();\r\n{code}\r\n\r\nExpected Result:\r\n\r\nViews should appear without deadlock warnings.\r\n\r\nActual Result:\r\n\r\nViews appear with deadlock warning, intermittent.", "attachment": [], "flagged": false, "summary": "iOS: UI.View: intermittent deadlock warning", "creator": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dhyde", "key": "dhyde", "displayName": "Dustin Hyde", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK: 2.1.0.v20120404140322\r\nStudio: 2.0.0.201203291340\r\nOS: Snow Leopard\r\nDevices Tested: iPhone4S 5.1, iPad Simulator 4.3", "comment": { "comments": [ { "id": "190240", "author": { "name": "jamesk.au", "key": "jamesk.au", "displayName": "James K", "active": true, "timeZone": "Australia/Sydney" }, "body": "I receive the same warning when running a newly-built module for iOS (generated as per the modules guide using 2.1.0, without making any changes or additions):\r\n\r\n[WARN] Timing out waiting on main thread. Possibly a deadlock? in TiThreadPerformOnMainThread (TiBase.m:238)", "updateAuthor": { "name": "jamesk.au", "key": "jamesk.au", "displayName": "James K", "active": true, "timeZone": "Australia/Sydney" }, "created": "2012-04-06T19:33:46.000+0000", "updated": "2012-04-06T19:33:46.000+0000" }, { "id": "190432", "author": { "name": "tgolden", "key": "tgolden", "displayName": "Tyler Golden", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I received the same warning when using a table within a standard window. Appears intermittently in a few other places as well.", "updateAuthor": { "name": "tgolden", "key": "tgolden", "displayName": "Tyler Golden", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-04-10T09:30:34.000+0000", "updated": "2012-04-10T09:30:34.000+0000" }, { "id": "193910", "author": { "name": "pennadl", "key": "pennadl", "displayName": "stefano di luca", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Same problem when running on iPad\r\n\r\n[DEBUG] application booted in 553.596020 ms\r\n[WARN] Timing out waiting on main thread. Possibly a deadlock? in TiThreadPerformOnMainThread (TiBase.m:238)\r\n\r\nThe app is only showing a white screen or the splash screen.\r\nSometimes my index.js file is loaded after waiting 2-3 minutes for the splash screen but the app is not responding/loading completely.\r\n", "updateAuthor": { "name": "pennadl", "key": "pennadl", "displayName": "stefano di luca", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-06T06:28:50.000+0000", "updated": "2012-05-06T06:28:50.000+0000" }, { "id": "198120", "author": { "name": "sabmark", "key": "sabmark", "displayName": "Mark Anthony Sabandal", "active": true, "timeZone": "Europe/Berlin" }, "body": "I am also experiencing this issue after using 2.0.2GA SDK from 1.8.2. Our app takes more time to start than before and its having this error message.\r\n\r\n{quote}\r\n2012-06-12 10:28:59.104 What Happen[88198:207] -[UITabBarController setSelectedViewController:] only a view controller in the tab bar controller's list of view controllers can be selected.\r\n[WARN] Timing out waiting on main thread. Possibly a deadlock? in TiThreadPerformOnMainThread (TiBase.m:238)\r\n{quote}", "updateAuthor": { "name": "sabmark", "key": "sabmark", "displayName": "Mark Anthony Sabandal", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-06-11T20:49:43.000+0000", "updated": "2012-06-11T20:49:43.000+0000" }, { "id": "198531", "author": { "name": "iantearle", "key": "iantearle", "displayName": "Ian Tearle", "active": true, "timeZone": "Europe/London" }, "body": "Am also receiving this error. More than what could be classed as intermittently too. \r\nDoes any one know if this will prevent app store submission?", "updateAuthor": { "name": "iantearle", "key": "iantearle", "displayName": "Ian Tearle", "active": true, "timeZone": "Europe/London" }, "created": "2012-06-14T12:54:01.000+0000", "updated": "2012-06-14T12:54:01.000+0000" }, { "id": "198532", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "These warnings have been removed from production builds in 2.1.0. They are only useful for internal developers.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-14T12:59:11.000+0000", "updated": "2012-06-14T12:59:43.000+0000" }, { "id": "200386", "author": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed. Tested and verified with:\r\nTitanium Studio, build: 2.1.0.201206251749\r\nTitanium SDK: 2.1.0.v20120626104306\r\nDevice: iPad 3rd gen (5.1.1)\r\n\r\nViews appear without deadlock warnings.", "updateAuthor": { "name": "tsmolich", "key": "tsmolich", "displayName": "Tamila Smolich", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-26T13:52:58.000+0000", "updated": "2012-06-26T13:52:58.000+0000" }, { "id": "202059", "author": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "body": "Reopening to update labels.", "updateAuthor": { "name": "nchhabra", "key": "nchhabra", "displayName": "Neha Chhabra", "active": true, "timeZone": "Asia/Kolkata" }, "created": "2012-07-09T04:51:00.000+0000", "updated": "2012-07-09T04:51:00.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }