[AC-2798] Random crashes in simulator since SDK 1.7.x
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2011-12-19T04:41:49.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | n/a |
Reporter | Henning Glatter-Gotz |
Assignee | Shak Hossain |
Created | 2011-10-27T18:27:32.000+0000 |
Updated | 2016-03-08T07:47:43.000+0000 |
Description
Application crashes randomly in iPhone simulator.
Adding
Ti.API.log('');
randomly in code causes Application to run fine.
Stack trace from a crash:
Thread 4 Crashed:
0 myapp 0x002633cb TiObjectSetProperty + 107 (APICast.h:75)
1 myapp 0x00040685 -[KrollObject noteObject:forTiString:context:] + 357 (KrollObject.m:1304)
2 myapp 0x0003cbbf KrollGetProperty + 833 (KrollObject.m:481)
3 myapp 0x002663bf TI::TiCallbackObject<TI::TiObject>::getOwnPropertySlot(TI::TiExcState*, TI::Identifier const&, TI::PropertySlot&) + 467 (TiCallbackObjectFunctions.h:139)
4 myapp 0x002444ba TI::TiValue::get(TI::TiExcState*, TI::Identifier const&, TI::PropertySlot&) const + 210 (TiObject.h:387)
5 myapp 0x00241ab6 cti_op_get_by_id_generic + 86 (JITStubs.cpp:1094)
6 ??? 0x0b5ec410 0 + 190759952
7 myapp 0x001ff4c2 TI::Interpreter::execute(TI::ProgramExecutable*, TI::TiExcState*, TI::ScopeChainNode*, TI::TiObject*, TI::TiValue*) + 648 (JITCode.h:84)
8 myapp 0x001ceef4 TI::evaluate(TI::TiExcState*, TI::ScopeChain&, TI::SourceCode const&, TI::TiValue) + 388 (Completion.cpp:67)
9 myapp 0x00248cd9 TiEvalScript + 297 (TiBase.cpp:61)
10 myapp 0x000324dc -[KrollBridge evalFileOnThread:context:] + 1470 (KrollBridge.mm:418)
11 myapp 0x000351a2 -[KrollInvocation invoke:] + 118 (KrollContext.mm:97)
12 myapp 0x00034419 -[KrollContext invokeOnThread:method:withObject:callback:selector:] + 187 (KrollContext.mm:896)
13 myapp 0x0002fb59 -[KrollBridge evalFile:callback:selector:] + 97 (KrollBridge.mm:440)
14 myapp 0x00031df4 -[KrollBridge didStartNewContext:] + 1902 (KrollBridge.mm:570)
15 myapp 0x00036a73 -[KrollContext main] + 2445 (KrollContext.mm:1054)
16 Foundation 0x006aad4c -[NSThread main] + 81
17 Foundation 0x006aacd8 __NSThread__main__ + 1387
18 libSystem.B.dylib 0x926c9259 _pthread_start + 345
19 libSystem.B.dylib 0x926c90de thread_start + 34
I cannot provide a stand-alone app example that is reasonably small that demonstrates this. Others, that have the same problem have provided code samples but Appcelerator staff was not able to reproduce this with the code provided.
*Q&A threads related to this issue*
* [Crashing in ios and ios simulator using SDK 1.7.1 when removing event listeners](http://developer.appcelerator.com/question/122433/crashing-in-ios-and-ios-simulator-using-sdk-171-when-removing-event-listeners#answer-222097)
* [Random crashes in iOS simulator](http://developer.appcelerator.com/question/127468/random-crashes-in-ios-simulator)
* [1.7.0/1.7.1 Memory protection error (bus error 10)](http://developer.appcelerator.com/question/121492/170171-memory-protection-error-bus-error-10)
* [Simple program will crash iOS simulator when compiled with Ti 1.7.* SDK but not with 1.6.2](http://developer.appcelerator.com/question/123618/simple-program-will-crash-ios-simulator-when-compiled-with-ti-17-sdk-but-not-with-162)
*Observations*
* The application does not crash when running in the debugger in Ti Studio
* The application does not crash when building with SDK 1.6.2 (No longer possible because of upgrade to Xcode 4.2 and iOS SDK 5)
* I can get through long stretches of development without this problem and then it seems like it randomly shows up. Debugging efforts lead to no results, but sometimes to a functioning app for no apparent reason...until it happens again and days of development time are lost dealing with it.
Attachments
File | Date | Size |
---|---|---|
full_crash_log.crash | 2011-10-27T18:27:32.000+0000 | 37264 |
We request you please adhere closely to this part of the guide - http://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-CreatingaTestCase In particular the aspect where the code should be able to be placed directly in app.js and run... also further down where we request that you place the file in the code tags directly in the description. Thanks for helping us out with this! Best regards, Matt
Matt, I would love to be able to do this and completely understand that it is difficult to debug something without a working example. However, the nature of this seems so random that providing a code sample is next to impossible. I have not been able to cut my project down to something generic enough to share publicly that exhibits the same behavior. If you read some of the comments in the threads that I listed, you will find that others have attempted this. There are even other tickets similar to this one where code samples have been provided that fail on the users's environment but not in the environment that the Appcelerator Devs work in. Could you possibly comment on whether or not Appcelerator is aware of a memory management issue that could cause this? Thanks Henning Glatter-Gotz
Suffering exactly from the same problem.. totally random and unable to reproduce. It is not possible to get a working example of the bug, but the crash report, with a clean stack trace should help you guys getting along.
Trevor Ward that you spoke with in [this post](http://developer.appcelerator.com/question/127468/random-crashes-in-ios-simulator) has said that he has not experienced this issue since 1.7.5. Hence I am resolving it for now. If the problem persists with 1.7.5, please reopen this ticket. Thanks for your patience with it.