{ "id": "152449", "key": "TIMOB-19820", "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": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-10-30T06:45:21.000+0000", "created": "2015-10-28T23:10:47.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "database" ], "versions": [], "issuelinks": [ { "id": "49522", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "150028", "key": "ALOY-1295", "fields": { "summary": "Windows: App crashes when calling fetch() method on a collection bound to a view", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2015-11-04T18:28:29.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": "12642", "name": "Windows", "description": "Windows authoring support" } ], "description": "Run the code below in the Windows Emulator.\r\n{code}\r\nvar booksDB = Ti.Database.open('booksDB');\r\nbooksDB.execute('CREATE TABLE IF NOT EXISTS books(id INTEGER PRIMARY KEY AUTOINCREMENT, title TEXT, author TEXT)');\r\nbooksDB.execute('REPLACE INTO books (title,author) VALUES (?,?)', ('Great Expectations', 'Charles Dickens'));\r\nvar result = booksDB.execute('SELECT * FROM books');\r\nTi.API.info('=== RESULT ===');\r\nTi.API.info(result.fieldCount);\r\nfor (var i = 0, j = result.fieldCount; i < j; i++) {\r\n Ti.API.info(result.fieldName(i));\r\n}\r\nTi.API.info('==============');\r\nresult.close();\r\nbooksDB.close();\r\n{code}\r\n\r\nRESULTS:\r\n{code}\r\n[INFO] Installing and launching the application\r\n[INFO] Project built successfully in 25s 336ms\r\n\r\n[INFO] Connected to app\r\n-- Start application log -----------------------------------------------------\r\n[INFO] === RESULT ===\r\n[INFO] 3\r\n[INFO] Disconnected from app\r\n-- End application log -------------------------------------------------------\r\n\r\n[ERROR] The remote procedure call failed.\r\n[ERROR] Error: The remote procedure call failed.\r\n at ChildProcess. (C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.1.0.v20151026164636\\node_modules\\windowslib\\lib\\emulator.js:287:15)\r\n at ChildProcess.emit (events.js:110:17)\r\n at maybeClose (child_process.js:1008:16)\r\n at Socket. (child_process.js:1176:11)\r\n at Socket.emit (events.js:107:17)\r\n at Pipe.close (net.js:476:12)\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: Ti.Database.ResultSet fieldName() function crashes app ", "creator": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "subtasks": [], "reporter": { "name": "fmiao", "key": "fmiao", "displayName": "Feon Sua Xin Miao", "active": true, "timeZone": "America/Vancouver" }, "environment": "Windows Phone Emulator 8.1\r\nTi SDK: 5.1.0.v20151026164636", "closedSprints": [ { "id": 517, "state": "closed", "name": "2015 Sprint 22 SDK", "startDate": "2015-10-24T00:30:42.059Z", "endDate": "2015-11-07T01:30:00.000Z", "completeDate": "2015-11-09T02:37:29.441Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "368388", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/titanium_mobile_windows/pull/458", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-10-30T01:55:05.000+0000", "updated": "2015-10-30T01:55:05.000+0000" }, { "id": "368996", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 10 Pro \r\nAppc Core: 5.1.0-42 \r\nAppc NPM: 4.2.1 \r\nTi SDK: 5.1.0.v20151104073721\r\n\r\nUsing the code provided in the description the app no longer crashes\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-11-04T18:28:23.000+0000", "updated": "2015-11-04T18:28:23.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }