{ "id": "82429", "key": "TIMOB-6054", "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": "12085", "description": "Mobile @ HQ", "name": "Sprint 2011-45", "archived": true, "released": true, "releaseDate": "2011-11-14" } ], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2011-11-10T14:39:41.000+0000", "created": "2011-11-07T13:41:45.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-03T22:50:52.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" } ], "description": "Titanium.Filesystem.File.exists() function crashes after being repeatedly called. The crash log is attached. This bug has been fixed in 1.8.0.\r\n\r\nh4. Repro Steps\r\n\r\nRun the following code snippet on the iPhone emulator and it will get crashed.\r\n\r\n{code}\r\nvar dir, i;\r\nfor (i = 0; i <= 1000; i++) {\r\n dir = Ti.Filesystem.getFile(Ti.Filesystem.applicationSupportDirectory, \"myfolder\");\r\n if (!dir.exists()) {\r\n dir.createDirectory();\r\n }\r\n}\r\nalert(\"done\");\r\n{code}\r\n\r\nh4. Associated Helpdesk Ticket\r\n\r\nhttp://appc.me/c/APP-647367", "attachment": [ { "id": "24088", "filename": "testFileSystem_2011-11-08-100821_qgaombp.crash", "author": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-08T10:12:47.000+0000", "size": 37545, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Titanium.Filesystem.File.exists function crashes after being called for many times ", "creator": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "iOS5, TiSDK1.7.5, Xcod4.2", "comment": { "comments": [ { "id": "171856", "author": { "name": "dae", "key": "dae", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "As mentioned in the helpdesk ticket, a fix for 1.7 would be greatly appreciated, as I can't drop support for iOS3 yet.", "updateAuthor": { "name": "dae", "key": "dae", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-07T22:23:42.000+0000", "updated": "2011-11-07T22:23:42.000+0000" }, { "id": "172022", "author": { "name": "dae", "key": "dae", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "body": "In case it helps, the crash my users are getting in the app looks a little different, but also seems to be triggered by an exists() call (if I comment out the call, no crash)\r\n\r\n{code}\r\nThread 6 name: KrollContext\r\nThread 6 Crashed:\r\n0 Anki 0x00169322 TI::Interpreter::privateExecute(TI::Interpreter::ExecutionFlag, TI::RegisterFile*, TI::TiExcState*, TI::TiValue*) (TiCell.h:202)\r\n1 Anki 0x0017645a TI::Interpreter::execute(TI::FunctionExecutable*, TI::TiExcState*, TI::TiFunction*, TI::TiObject*, TI::ArgList const&, TI::ScopeChainNode*, TI::TiValue*) (Interpreter.cpp:688)\r\n2 Anki 0x00180432 TI::TiFunction::call(TI::TiExcState*, TI::TiValue, TI::ArgList const&) (TiFunction.cpp:127)\r\n3 Anki 0x0013b4d0 TI::call(TI::TiExcState*, TI::TiValue, TI::CallType, TI::CallData const&, TI::TiValue, TI::ArgList const&) (CallData.cpp:46)\r\n4 Anki 0x0018c12a TiObjectCallAsFunction (TiObjectRef.cpp:417)\r\n5 Anki 0x00037e76 -[KrollObject invokeCallbackForKey:withObject:thisObject:] (KrollObject.m:1242)\r\n6 Anki 0x00031150 -[ExpandedInvocationOperation main] (KrollContext.mm:1299)\r\n7 Foundation 0x378fb39c -[__NSOperationInternal start] + 856\r\n8 Anki 0x0002d238 -[KrollContext invoke:] (KrollContext.mm:828)\r\n9 Anki 0x0002e568 -[KrollContext main] (KrollContext.mm:1143)\r\n10 Foundation 0x378e0a8a -[NSThread main] + 66\r\n11 Foundation 0x3797459a __NSThread__main__ + 1042\r\n12 libsystem_c.dylib 0x36cffc16 _pthread_start + 314\r\n13 libsystem_c.dylib 0x36cffad0 thread_start + 0\r\n{code}", "updateAuthor": { "name": "dae", "key": "dae", "displayName": "Damien Elmes", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-09T03:36:28.000+0000", "updated": "2011-11-09T03:36:28.000+0000" }, { "id": "172224", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unfortunately the fix for this issue was actually a fix in JavaScriptCore. As it requires a new JavaScriptCore, it is not possible for us to merge this fix into the 1_7_X branch. Upgrading to 1.8 is the only resolution for the issue.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-10T14:39:15.000+0000", "updated": "2011-11-10T14:39:58.000+0000" }, { "id": "409022", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-03T22:50:52.000+0000", "updated": "2017-03-03T22:50:52.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }