{ "id": "79534", "key": "TIMOB-5196", "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": "12077", "description": "", "name": "Sprint 2011-37", "archived": true, "released": true, "releaseDate": "2011-09-19" } ], "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-09-13T15:09:50.000+0000", "created": "2011-08-23T04:29:26.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "dr-list" ], "versions": [], "issuelinks": [ { "id": "12666", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "79093", "key": "AC-3089", "fields": { "summary": "Running a large number of queries on a database causes crash", "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" } }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-31T17:28:35.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": "Starting from 1.7.0 up to the current 1.7.3.v20110808134952 CI build I'm getting random crashes in my app. I've managed to reproduce them, just copy the following code into the app.js of a new project:\r\n\r\n{code:javascript|title=app.js}\r\nfunction read_from_db(thisLabel)\r\n{\r\n Ti.API.info('read_from_db: start');\r\n Ti.API.info('thisLabel' + thisLabel);\r\n thisLabel.text = 'Reading from the database...';\r\n var db = Ti.Database.open('data.db');\r\n\r\n for(var i=0; i<10000; i++){\r\n var resultSet = db.execute('select * from data');\r\n if(resultSet.isValidRow()) {\r\n Ti.API.info('Database row: (' + i + ') ' + resultSet.fieldByName('col1') + ' / '+ resultSet.fieldByName('col2'));\r\n }\r\n resultSet.close();\r\n }\r\n db.close();\r\n thisLabel.text = 'Finished reading from the database.';\r\n Ti.API.info('read_from_db: end');\r\n}\r\n\r\nvar number_of_iterations = 5000;\t// This is not required\r\nvar number_of_db_rows = 200;\r\n\r\n//Create and initialize the database\r\nvar db = Ti.Database.open('data.db');\r\ndb.execute('create table if not exists data (col1 primary key,col2)');\r\ndb.execute('begin transaction');\r\ndb.execute('delete from data');\r\nfor(var i=0; i::getOwnPropertySlot(TI::TiExcState*, TI::Identifier const&, TI::PropertySlot&) ()\r\n#5 0x002b8b2a in _ZN2TI6TiCell22fastGetOwnPropertySlotEPNS_10TiExcStateERKNS_10IdentifierERNS_12PropertySlotE [inlined] ()\r\n#6 0x002b8b2a in TI::TiValue::get(TI::TiExcState*, TI::Identifier const&, TI::PropertySlot&) const ()\r\n#7 0x002b6126 in cti_op_get_by_id_generic ()\r\n#8 0x0c3f9746 in ()\r\n#9 0x00273415 in TI::Interpreter::execute(TI::FunctionExecutable*, TI::TiExcState*, TI::TiFunction*, TI::TiObject*, TI::ArgList const&, TI::ScopeChainNode*, TI::TiValue*) at /Users/stiv/src/appcelerator/tijscore/TiCore/jit/JITCode.h:84\r\n#10 0x002c4bed in TI::TiFunction::call(TI::TiExcState*, TI::TiValue, TI::ArgList const&) ()\r\n#11 0x0023c30b in TI::call(TI::TiExcState*, TI::TiValue, TI::CallType, TI::CallData const&, TI::TiValue, TI::ArgList const&) ()\r\n#12 0x002d7816 in TiObjectCallAsFunction ()\r\n#13 0x00056d53 in -[KrollObject triggerEvent:withObject:thisObject:] ()\r\n#14 0x000492a1 in -[KrollEvent invoke:] ()\r\n#15 0x0004800d in -[KrollContext invoke:] ()\r\n#16 0x00046bee in -[KrollContext main] ()\r\n#17 0x0067acf4 in -[NSThread main] ()\r\n{code}\r\n\r\nSee [Q&A thread|http://developer.appcelerator.com/question/123951/crash-updating-window-from-focus-event-while-querying-database--ios-43--sdk-172]", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2011-09-07T07:08:20.000+0000", "updated": "2011-09-07T07:08:20.000+0000" }, { "id": "165205", "author": { "name": "jsilva", "key": "jsilva", "displayName": "João Silva", "active": true, "timeZone": "Europe/London" }, "body": "I confirm that the code from ticket TC-195 posted above crashes in the same way, and with the same crash log as the code posted in this ticket.", "updateAuthor": { "name": "jsilva", "key": "jsilva", "displayName": "João Silva", "active": true, "timeZone": "Europe/London" }, "created": "2011-09-07T07:25:31.000+0000", "updated": "2011-09-07T07:25:31.000+0000" }, { "id": "165907", "author": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested both codes on simulator 4.3 and iPhone 4 v 4.3.4 with Titanium SDK Build: 1.8.0.0c3b052 (09/13/11 14:44) and cannot replicate any crash. Please update with a better test case.", "updateAuthor": { "name": "srahim", "key": "srahim", "displayName": "Sabil Rahim", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-09-13T15:09:02.000+0000", "updated": "2011-09-13T15:09:02.000+0000" }, { "id": "165959", "author": { "name": "jsilva", "key": "jsilva", "displayName": "João Silva", "active": true, "timeZone": "Europe/London" }, "body": "I don't understand, I can reproduce it every time. You can download my project from http://www.megaupload.com/?d=CORMUDY2", "updateAuthor": { "name": "jsilva", "key": "jsilva", "displayName": "João Silva", "active": true, "timeZone": "Europe/London" }, "created": "2011-09-14T01:51:28.000+0000", "updated": "2011-09-14T01:51:28.000+0000" }, { "id": "165960", "author": { "name": "jsilva", "key": "jsilva", "displayName": "João Silva", "active": true, "timeZone": "Europe/London" }, "body": "EDIT: It seems to be fixed in the CI build 1.8.0.v20110912131752. It does crash with the 1.7.x builds.", "updateAuthor": { "name": "jsilva", "key": "jsilva", "displayName": "João Silva", "active": true, "timeZone": "Europe/London" }, "created": "2011-09-14T01:53:37.000+0000", "updated": "2011-09-14T04:18:28.000+0000" }, { "id": "416509", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as I am unable to reproduce the issue using the following environment; \r\niPhone 7 (10.2) \r\nMacOS 10.11.6 (15G31) \r\nStudio 4.8.1.201612050850 \r\nTi SDK 6.0.3 GA \r\nAppc NPM 4.2.8 \r\nAppc CLI 6.1.0 \r\nTi CLI 5.0.11 \r\nAlloy 1.9.5 \r\nArrow 1.10.1 \r\nXcode 8.2 (8C38) \r\nNode v4.6.0 \r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-31T17:28:35.000+0000", "updated": "2017-03-31T17:28:35.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }