{ "id": "82069", "key": "AC-2798", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "5", "description": "All attempts at reproducing this issue failed, or not enough information was available to reproduce the issue. Reading the code produces no clues as to why this behavior would occur. If more information appears later, please reopen the issue.", "name": "Cannot Reproduce" }, "resolutiondate": "2011-12-19T04:41:49.000+0000", "created": "2011-10-27T18:27:32.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:47:43.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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "Application crashes randomly in iPhone simulator.\r\nAdding\r\n{code:javascript}\r\nTi.API.log('');\r\n{code}\r\nrandomly in code causes Application to run fine.\r\n\r\nStack trace from a crash:\r\n\r\n{code:javascript}\r\nThread 4 Crashed:\r\n0 myapp 0x002633cb TiObjectSetProperty + 107 (APICast.h:75)\r\n1 myapp 0x00040685 -[KrollObject noteObject:forTiString:context:] + 357 (KrollObject.m:1304)\r\n2 myapp 0x0003cbbf KrollGetProperty + 833 (KrollObject.m:481)\r\n3 myapp 0x002663bf TI::TiCallbackObject::getOwnPropertySlot(TI::TiExcState*, TI::Identifier const&, TI::PropertySlot&) + 467 (TiCallbackObjectFunctions.h:139)\r\n4 myapp 0x002444ba TI::TiValue::get(TI::TiExcState*, TI::Identifier const&, TI::PropertySlot&) const + 210 (TiObject.h:387)\r\n5 myapp 0x00241ab6 cti_op_get_by_id_generic + 86 (JITStubs.cpp:1094)\r\n6 ??? 0x0b5ec410 0 + 190759952\r\n7 myapp 0x001ff4c2 TI::Interpreter::execute(TI::ProgramExecutable*, TI::TiExcState*, TI::ScopeChainNode*, TI::TiObject*, TI::TiValue*) + 648 (JITCode.h:84)\r\n8 myapp 0x001ceef4 TI::evaluate(TI::TiExcState*, TI::ScopeChain&, TI::SourceCode const&, TI::TiValue) + 388 (Completion.cpp:67)\r\n9 myapp 0x00248cd9 TiEvalScript + 297 (TiBase.cpp:61)\r\n10 myapp 0x000324dc -[KrollBridge evalFileOnThread:context:] + 1470 (KrollBridge.mm:418)\r\n11 myapp 0x000351a2 -[KrollInvocation invoke:] + 118 (KrollContext.mm:97)\r\n12 myapp 0x00034419 -[KrollContext invokeOnThread:method:withObject:callback:selector:] + 187 (KrollContext.mm:896)\r\n13 myapp 0x0002fb59 -[KrollBridge evalFile:callback:selector:] + 97 (KrollBridge.mm:440)\r\n14 myapp 0x00031df4 -[KrollBridge didStartNewContext:] + 1902 (KrollBridge.mm:570)\r\n15 myapp 0x00036a73 -[KrollContext main] + 2445 (KrollContext.mm:1054)\r\n16 Foundation 0x006aad4c -[NSThread main] + 81\r\n17 Foundation 0x006aacd8 __NSThread__main__ + 1387\r\n18 libSystem.B.dylib 0x926c9259 _pthread_start + 345\r\n19 libSystem.B.dylib 0x926c90de thread_start + 34\r\n{code}\r\n\r\nI 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.\r\n\r\n*Q&A threads related to this issue*\r\n* [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]\r\n* [Random crashes in iOS simulator|http://developer.appcelerator.com/question/127468/random-crashes-in-ios-simulator]\r\n* [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]\r\n* [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]\r\n\r\n*Observations*\r\n* The application does not crash when running in the debugger in Ti Studio\r\n* 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)\r\n* 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.\r\n", "attachment": [ { "id": "23920", "filename": "full_crash_log.crash", "author": { "name": "hglattergotz", "key": "hglattergotz", "displayName": "Henning Glatter-Gotz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-10-27T18:27:32.000+0000", "size": 37264, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Random crashes in simulator since SDK 1.7.x", "creator": { "name": "hglattergotz", "key": "hglattergotz", "displayName": "Henning Glatter-Gotz", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "hglattergotz", "key": "hglattergotz", "displayName": "Henning Glatter-Gotz", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* OSX 10.6.8\r\n* Xcode 3.2.5, 4.2, 4.3\r\n* iOS SDK 5\r\n* Ti SDK 1.7.0, 1.7.1, 1.7.2, 1.7.3", "comment": { "comments": [ { "id": "174464", "author": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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\r\n\r\nIn 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.\r\n\r\nThanks for helping us out with this! \r\n\r\nBest regards,\r\nMatt", "updateAuthor": { "name": "mapperson", "key": "mapperson", "displayName": "Matthew Apperson", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T12:18:10.000+0000", "updated": "2011-12-01T12:18:10.000+0000" }, { "id": "174465", "author": { "name": "hglattergotz", "key": "hglattergotz", "displayName": "Henning Glatter-Gotz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Matt,\r\n\r\nI 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.\r\n\r\nIf 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.\r\n\r\nCould you possibly comment on whether or not Appcelerator is aware of a memory management issue that could cause this?\r\n\r\nThanks\r\nHenning Glatter-Gotz", "updateAuthor": { "name": "hglattergotz", "key": "hglattergotz", "displayName": "Henning Glatter-Gotz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-01T12:26:53.000+0000", "updated": "2011-12-01T12:26:53.000+0000" }, { "id": "174565", "author": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "body": "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.", "updateAuthor": { "name": "rubenfonseca", "key": "rubenfonseca", "displayName": "Ruben Fonseca", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-02T07:49:43.000+0000", "updated": "2011-12-02T07:49:43.000+0000" }, { "id": "176454", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "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.\r\n\r\nHence I am resolving it for now. If the problem persists with 1.7.5, please reopen this ticket.\r\n\r\nThanks for your patience with it.\r\n\r\n\r\n\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-12-19T04:41:49.000+0000", "updated": "2011-12-19T04:41:49.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }