{ "id": "91689", "key": "TIMOB-9090", "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" }, { "id": "13403", "description": "Sprint 2012-11 Core", "name": "Sprint 2012-11 Core", "archived": true, "released": true, "releaseDate": "2012-06-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-07-10T23:40:06.000+0000", "created": "2012-05-09T22:10:06.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_package", "qe-testadded" ], "versions": [ { "id": "13272", "description": "Release 2.0.1", "name": "Release 2.0.1", "archived": true, "released": true, "releaseDate": "2012-04-16" } ], "issuelinks": [ { "id": "17208", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "91399", "key": "TIMOB-9002", "fields": { "summary": "iOS: Review and fix external error and warning messages", "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": "7", "description": "gh.issue.story.desc", "name": "Story", "subtask": false } } } }, { "id": "32434", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "102467", "key": "AC-2201", "fields": { "summary": "iOS: Apps hang at startup when network connection is poor", "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 } } } } ], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-10-09T23:48:09.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" } ], "attachment": [ { "id": "27630", "filename": "FirstRun_iOS5_2.0.1.GA2.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-10T08:52:42.000+0000", "size": 43310, "mimeType": "image/jpeg" }, { "id": "27631", "filename": "SecondRun_iOS5_2.0.1.GA2.jpg", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-10T08:52:42.000+0000", "size": 24402, "mimeType": "image/jpeg" }, { "id": "27629", "filename": "test.zip", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-10T08:52:42.000+0000", "size": 2383305, "mimeType": "application/zip" } ], "flagged": false, "summary": "iOS: Timing out waiting on main thread causing rejections", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 2.0.1.GA2\r\niOS 5.1", "comment": { "comments": [ { "id": "194365", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We require a full reproduction case to address this ticket. The warning is being taken care of as part of TIMOB-9002.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-09T22:14:14.000+0000", "updated": "2012-05-09T22:14:14.000+0000" }, { "id": "194391", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Uploading developer resources to reproduce.\r\n\r\nh6.test.zip\r\nUnZip test project into Studio\r\n\r\nh6.FirstRun_iOS5_2.0.1.GA2.jpg\r\nWarning might appear at the first run\r\n\r\nh6.SecondRun_iOS5_2.0.1.GA2.jpg\r\nWarning doesn't appear when running by second time\r\n\r\nh6.Brief summary\r\nIf developer deletes app from simulator and run it again the warn will appear again.\r\n\r\nI've been trying to reproduce it locally but I can't see such warning message yet.\r\n\r\nh6.My console output\r\n{noformat}\r\n[INFO] One moment, building ...\r\n[INFO] Titanium SDK version: 2.0.1 (04/12/12 16:33 999c68a)\r\n[INFO] iPhone Device family: iphone\r\n[INFO] iPhone SDK version: 5.0\r\n[INFO] iPhone simulated device: iphone\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (3.78 seconds)\r\n[INFO] Application started\r\n[INFO] test/1.0 (2.0.1.GA2.999c68a)\r\n{noformat}", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-10T08:52:42.000+0000", "updated": "2012-05-10T08:52:42.000+0000" }, { "id": "194560", "author": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I just bumped with this issue again having set the following settings:\r\n\r\nh6.Console output:\r\n{code}\r\n[INFO] One moment, building ...\r\n[INFO] Titanium SDK version: 2.0.1 (04/12/12 16:33 999c68a)\r\n[INFO] iPhone Device family: iphone\r\n[INFO] iPhone SDK version: 4.3\r\n[INFO] iPhone simulated device: iphone\r\n[INFO] Launching application in Simulator\r\n[INFO] Launched application in Simulator (3.86 seconds)\r\n[INFO] Application started\r\n[INFO] test/1.0 (2.0.1.GA2.999c68a)\r\n[WARN] Timing out waiting on main thread. Possibly a deadlock? in TiThreadPerformOnMainThread (TiBase.m:238)\r\n{code}\r\n\r\nh4.app.js\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\n\r\nvar win1 = Titanium.UI.createWindow({\r\n backgroundColor:\"red\",\r\n title:\"Red Window\"\r\n});\r\nwin1.addEventListener('click', function(){\r\n nav.open(toolsWindow);\r\n});\r\n\r\nvar nav = Titanium.UI.iPhone.createNavigationGroup({\r\n window: win1\r\n});\r\n\r\nvar toolsWindow = Ti.UI.createWindow({\r\n title: 'Blue Window',\r\n url: 'tools_window.js',\r\n nav: nav,\r\n exitOnClose: false,\r\n backgroundColor: 'blue'\r\n});\r\n\r\nwin.add(nav);\r\nwin.open();\r\n{code}\r\n\r\nh4.tools_window.js\r\n{code}\r\nvar win = Ti.UI.currentWindow;\r\n\r\nvar button = Ti.UI.createButton({\r\n title: 'close',\r\n height: 40,\r\n width: 300\r\n});\r\nbutton.addEventListener('click', function(e) {\r\n Ti.API.info('clicked close');\r\n win.nav.close(win);\r\n});\r\n\r\nwin.add(button);\r\n{code}\r\n\r\nHaving launch the emulator and close it then warning did not appear over again.", "updateAuthor": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-11T12:33:42.000+0000", "updated": "2012-05-11T12:33:42.000+0000" }, { "id": "194868", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Ironically enough, this looks like a case where the warning was completely correct and valid. That is, *something* caused an infinite loop or deadlock with the main thread, (May or may not be related to the perform on main thread) and the perform on main thread code is saying the formal equivalent of \"Hey guys, the main thread hasn't processed my request in over a full second (A long amount of time). Is there a deadlock or something going on?\"", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-15T11:44:36.000+0000", "updated": "2012-05-15T11:44:36.000+0000" }, { "id": "195322", "author": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "body": "To reproduce:\r\n\r\nBuild the app (I can provide the source code) for distribution, as if it were going to the AppStore. Get the .ipa and drag and drop to iTunes. Then open the app. It will not pass the splash screen.", "updateAuthor": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-05-18T13:15:56.000+0000", "updated": "2012-05-18T13:15:56.000+0000" }, { "id": "195613", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Customer indicated this was a module location problem - they were including the module but it apparently was not found, and the build did *not* fail gracefully.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T11:51:32.000+0000", "updated": "2012-05-22T11:51:32.000+0000" }, { "id": "195637", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "h4. TESTING\r\n----\r\n\r\n# Create a new app in TiStudio\r\n# Add a module to the project in the tiapp.xml which does not exist such as {{not.there}}\r\n# Run a build for simulator, device, packaging\r\n\r\n*PASS:* The build fails\r\n*FAIL:* Any other result", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-22T14:12:16.000+0000", "updated": "2012-05-22T14:12:16.000+0000" }, { "id": "196025", "author": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR merged https://github.com/appcelerator/titanium_mobile/pull/2247", "updateAuthor": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-05-24T16:48:10.000+0000", "updated": "2012-05-24T16:48:10.000+0000" }, { "id": "199895", "author": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "body": "SDK: 2.1.0.v20120622174154\r\niOS sim : 5.1\r\niphone 4s Verizon\r\nVerified that:\r\n\r\n1. Create a new app in TiStudio\r\n2. Add a module to the project in the tiapp.xml which does not exist such as not.there\r\n3. Run a build for iOS simulator, iOS device\r\n4. The build fails\r\n", "updateAuthor": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T11:16:03.000+0000", "updated": "2012-06-23T11:16:03.000+0000" }, { "id": "199897", "author": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The iOS version on the iPhone 4s verizon was 5.0.1", "updateAuthor": { "name": "mgadiya", "key": "mgadiya", "displayName": "Mukesh Gadiya", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-06-23T11:21:50.000+0000", "updated": "2012-06-23T11:21:50.000+0000" }, { "id": "202523", "author": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Re-opening to edit label", "updateAuthor": { "name": "sbhadauria", "key": "sbhadauria", "displayName": "Shyam Bhadauria", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-10T23:39:21.000+0000", "updated": "2012-07-10T23:39:21.000+0000" } ], "maxResults": 14, "total": 14, "startAt": 0 } } }