{ "id": "155581", "key": "TIMOB-20577", "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": "17684", "name": "Release 5.2.1", "archived": false, "released": true, "releaseDate": "2016-03-25" }, { "id": "17984", "name": "Alloy 1.8.1", "archived": false, "released": true, "releaseDate": "2017-02-06" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2016-03-22T13:59:39.000+0000", "created": "2016-03-09T16:54:52.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "supportTeam" ], "versions": [ { "id": "16997", "name": "Release 5.2.0", "archived": false, "released": true, "releaseDate": "2016-02-23" } ], "issuelinks": [ { "id": "51497", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "159581", "key": "TIMOB-23215", "fields": { "summary": "Windows: Data binding: Using attribute in ListItem that is not in data crashes 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 } } } }, { "id": "51079", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "154213", "key": "TIMOB-20222", "fields": { "summary": "Windows: Error while createcollection on Windows Phone", "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 } } } }, { "id": "57637", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "173578", "key": "ALOY-1686", "fields": { "summary": "Alloy: App crashes due to context used when accessing Ti.Database API", "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": "None", "id": "6" }, "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": "2019-05-15T14:09:57.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": "Creating a collection, and calling fetch if it is emtpy doesn't crash. Create 1 model and save it, then re-fetch the collection the app crashes in the emulator. This is a pretty serious issue if you can't fetch any data?!\r\n\r\nNot sure what version this dates back to as we're new to windows dev in Titanium. We're adding windows support to longstanding iOS/Android Ti apps.\r\n\r\nIndex.js:\r\n{code:java}\r\nvar library = Alloy.createCollection(\"userForms\");\r\nlibrary.fetch();\r\n\r\nvar user = Alloy.createModel('userForms', {\r\n\tName: \"Hello world\"\r\n});\r\nuser.save();\r\n\r\nlibrary.fetch();\r\n\r\n$.index.open();\r\n{code}\r\n\r\nModel:\r\n{code:java}\r\nconfig: {\r\n\t\tcolumns: {\r\n\t\t \"Name\": \"TEXT\"\r\n\t\t},\r\n\t\tadapter: {\r\n\t\t\ttype: \"sql\",\r\n\t\t\tcollection_name: \"userForms\"\r\n\t\t}\r\n\t}\r\n{code}", "attachment": [], "flagged": false, "summary": "Windows: App crashes when calling fetch() on any collection that has data", "creator": { "name": "joef", "key": "joef", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "joef", "key": "joef", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Microsoft Windows 10 Enterprise\r\n Version = 10.0.10586\r\n Architecture = 32bit\r\n # CPUs = 4\r\n Memory = 8512741376\r\nNode.js\r\n Node.js Version = 4.2.6\r\n npm Version = 2.14.12\r\nTitanium CLI\r\n CLI Version = 5.0.6\r\nTitanium SDK\r\n SDK Version = 5.2.0.GA\r\n SDK Path = C:\\ProgramData\\Titanium\\mobilesdk\\win32\\5.2.0.GA\r\n Target Platform = windows", "closedSprints": [ { "id": 597, "state": "closed", "name": "2016 Sprint 06 SDK", "startDate": "2016-03-12T01:30:59.982Z", "endDate": "2016-03-26T00:30:00.000Z", "completeDate": "2016-03-28T03:38:09.726Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "379868", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "[~joef][~nsalahin] This may be fixed by our fix to TIMOB-20222. Can you try this out on a 5.3.0 build of the SDK?\r\n\r\nYou can get a 5.3.0 build by doing:\r\n{code}\r\nappc ti idk install -b 5_3_X\r\n{code}\r\n\r\nThen you'll need to update your project's tiapp.xml to use it.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-16T14:04:02.000+0000", "updated": "2016-03-16T14:04:02.000+0000" }, { "id": "379885", "author": { "name": "joef", "key": "joef", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I've tried it with Ti SDK: 5.3.0.v20160315093329\r\n\r\nAnd it still crashes, getting an error message now that wasn't previously displayed in the console:\r\n\r\n\r\n{panel:title=ConsoleLog}\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.3.0.v20160315093329\\node_modules\\windowslib\\lib\\wptool.js:703:10)\r\n at emitTwo (events.js:87:13)\r\n at ChildProcess.emit (events.js:172:7)\r\n at maybeClose (internal/child_process.js:821:16)\r\n at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)\r\n{panel}", "updateAuthor": { "name": "joef", "key": "joef", "displayName": "Joe Finnigan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-16T16:25:58.000+0000", "updated": "2016-03-16T16:26:33.000+0000" }, { "id": "380316", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR: https://github.com/appcelerator/alloy/pull/771", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-03-22T01:45:49.000+0000", "updated": "2016-03-22T01:45:49.000+0000" }, { "id": "380361", "author": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "body": "Fix was in Alloy itself, so updating to Alloy 1.8.1 should fix the issue for the user.", "updateAuthor": { "name": "cwilliams", "key": "cwilliams", "displayName": "Christopher Williams", "active": true, "timeZone": "America/New_York" }, "created": "2016-03-22T13:59:39.000+0000", "updated": "2016-03-22T13:59:39.000+0000" }, { "id": "380551", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified using:\r\n\r\nWindows 10 Pro\r\nAppc NPM: 4.2.4-2\r\nAppc Core: 5.2.1-20\r\nTitanium SDK: 5.2.1.v20160318225121\r\nAlloy: 1.8.1\r\n\r\nUsing the code provided in the description, the app no longer crashes when calling fetch.\r\n\r\nClosing ticket", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2016-03-23T21:22:17.000+0000", "updated": "2016-03-23T21:22:17.000+0000" } ], "maxResults": 9, "total": 9, "startAt": 0 } } }