"Application has exited from Simulator" for no obvious reason
I am getting the message
> [INFO] Application has exited from Simulator
for no clear reason while running in the iPhone simulator. I am logging at the Debug level, and there are no error messages printed before the Exited message.
As far as I can tell, this is happening regularly just after it finishes an event handler attached to a custom event. In the handler it updates a tableView. I have no idea if either of them are related to the Exiting.
No clue if it is related, but after making some changes in a different part of the program, I now also get this error messge just before the message above:
> objc[45916]: FREED(id): message contextShutdown: sent to freed object=0xa41edb0
Has anyone else seen issues like these?
8 Answers
-
would need to see the code. can you try to narrow it down a bit? thanks.
-
I haven't been able to yet - the entire code does it irregularly, and I haven't gotten a minimal test case of any fragment to exhibit the problem. I DID, however, finally get another error when it happens:
> objc[65875]: FREED(id): message contextShutdown: sent to freed object=0x9338270
[INFO] Application has exited from Simulator -
I am getting the same error:
> objc[17599]: FREED(id): message contextShutdown: sent to freed object=0x4f55fc0It happens when I return to a tab window from a child.
ie. Parent > child > Parent (all ok)
ie. Parent > child > child of child > child > Parent (crash)It was ok until I started using the Titanium.Database so might be related to that.
-
Not sure if this helps but I have narrowed the crashing to a particular function.
The sequence goes like this:> Parent loads table list > click row to load detail page.
> Detail page has a focus function which checks db and updates rows. Click to load edit page.
> Make changes on edit page. Update db. Back to Detail page
> Detail page checks db and updates rows accordingly. Back to Parent page.
> Parent page crashes.> If I take out the db check in the focus func on the Detail page, the Parent page does not crash.
I'm using code from Kitch sink. Very simple db queries. -
Here is the offending code:
win.addEventListener('focus', function(e) { var db = Titanium.Database.open('mydb'); });
If that code is on the child page, the Parent tab view will crash when you return to it.
-
Actually, this is all I get no matter what I do. It seems something may have gotten confused in all the updating… new Ti, new ADT, new iPhone SDK, new Android. I fear short of a complete re-install of everything (and praying and perhaps even a sacrifice), not much can be done. For me, I don't think it's code, as even a "hello world" gets this result.
-
I have the same problem. It worked just fine yesterday, and now all I get is "Application has exited from Simulator"
This even happens when I create a clean new project.
Tried to reinstall the iPhone SDK, Android SDK and even cleaning out all the library files. I even tried to create a new user. Same problem.
I was really excited yesterday, now I'm just frustrated. Are there any possibilities that these issues are related to the new iPhone SDK?
-
anyone manage to fix this? I get this error no matter what iOS sdk I choose…
Any help is appreciated…! Thanks.