[TIMOB-9090] iOS: Timing out waiting on main thread causing rejections
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-07-10T23:40:06.000+0000 |
Affected Version/s | Release 2.0.1 |
Fix Version/s | Release 2.1.0, Sprint 2012-11 Core |
Components | iOS |
Labels | core, module_package, qe-testadded |
Reporter | Eduardo Gomez |
Assignee | Stephen Tramer |
Created | 2012-05-09T22:10:06.000+0000 |
Updated | 2013-10-09T23:48:09.000+0000 |
Description
Attachments
File | Date | Size |
---|---|---|
FirstRun_iOS5_2.0.1.GA2.jpg | 2012-05-10T08:52:42.000+0000 | 43310 |
SecondRun_iOS5_2.0.1.GA2.jpg | 2012-05-10T08:52:42.000+0000 | 24402 |
test.zip | 2012-05-10T08:52:42.000+0000 | 2383305 |
We require a full reproduction case to address this ticket. The warning is being taken care of as part of TIMOB-9002.
Uploading developer resources to reproduce.
test.zip
UnZip test project into StudioFirstRun_iOS5_2.0.1.GA2.jpg
Warning might appear at the first runSecondRun_iOS5_2.0.1.GA2.jpg
Warning doesn't appear when running by second timeBrief summary
If developer deletes app from simulator and run it again the warn will appear again. I've been trying to reproduce it locally but I can't see such warning message yet.My console output
{noformat} [INFO] One moment, building ... [INFO] Titanium SDK version: 2.0.1 (04/12/12 16:33 999c68a) [INFO] iPhone Device family: iphone [INFO] iPhone SDK version: 5.0 [INFO] iPhone simulated device: iphone [INFO] Launching application in Simulator [INFO] Launched application in Simulator (3.78 seconds) [INFO] Application started [INFO] test/1.0 (2.0.1.GA2.999c68a) {noformat}I just bumped with this issue again having set the following settings:
Console output:
app.js
tools_window.js
Having launch the emulator and close it then warning did not appear over again.
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?"
To reproduce: Build 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.
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.
TESTING
----Create a new app in TiStudio
Add a module to the project in the tiapp.xml which does not exist such as
<module version="1.0">not.there</module>
Run a build for simulator, device, packaging
*PASS:* The build fails *FAIL:* Any other resultPR merged https://github.com/appcelerator/titanium_mobile/pull/2247
SDK: 2.1.0.v20120622174154 iOS sim : 5.1 iphone 4s Verizon Verified that: 1. Create a new app in TiStudio 2. Add a module to the project in the tiapp.xml which does not exist such as
The iOS version on the iPhone 4s verizon was 5.0.1
Re-opening to edit label