{ "id": "76385", "key": "TIMOB-4412", "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": [], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2019-04-05T20:35:34.000+0000", "created": "2011-06-14T13:54:01.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "engTriage", "reprod", "supportTeam" ], "versions": [ { "id": "11244", "name": "Release 1.7.0", "archived": true, "released": true, "releaseDate": "2011-06-13" }, { "id": "14162", "description": "Release 3.1.0", "name": "Release 3.1.0", "archived": true, "released": true, "releaseDate": "2013-04-16" }, { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-05T20:35:34.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": "h3. The problem\r\nThe following code crashes the app when clicked on the row.\r\n\r\nh3.The details\r\nInserting UI elements and calling them, like window and it's components, crashes when they are called. The best way to describe the situation is with the following code.\r\nh3. The code\r\n{code}\r\n// create ui objects\r\nvar row = Ti.UI.createTableViewRow ({\r\n win : Ti.UI.createWindow (), \r\n table : Ti.UI.createTableView (), \r\n data : [ \r\n Ti.UI.createTableViewRow ({title:\"row1\"}),\r\n Ti.UI.createTableViewRow ({title:\"row2\"})\r\n ], \r\n title : \"Click me!\"\r\n});\r\nvar win = Ti.UI.createWindow (); \r\nvar table = Ti.UI.createTableView (); \r\n\r\n// setup ui objects\r\n\r\nwin.add (table);\r\ntable.setData ([row]);\r\nwin.open (); \r\n\r\nvar onClick = function (e) \r\n{\r\n Ti.API.debug (e.row.win);\r\n Ti.API.debug (e.row.table);\r\n if (e.row.win != null) // open up the window\r\n { \r\n e.row.win.add (e.row.table);\r\n e.row.table.setData (e.row.data);\r\n e.row.win.open (); \r\n } \r\n};\r\n\r\ntable.addEventListener ('click', onClick);\r\n{code}\r\nh3. Helpdesk ticket:\r\nAPP-899173", "attachment": [], "flagged": false, "summary": "TableViewRow with a window and table reference causes crash", "creator": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "penrique", "key": "penrique", "displayName": "Pedro Enrique", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK: 3.2.0.GA\r\nTitanium CLI: 3.2.0 \r\nIOS Simulator 7.0.3", "comment": { "comments": [ { "id": "250948", "author": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "body": "issue reproduces\n\nTested with\nTitanium Studio, build: 3.0.1.201212181159\nTitanium SDK version: 3.1.0\niOS iPhone Simulator: iOS SDK version: 6.0", "updateAuthor": { "name": "jithinv@exalture.com", "key": "jithinv@exalture.com", "displayName": "jithinpv", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-05-09T06:15:03.000+0000", "updated": "2013-05-09T06:15:03.000+0000" }, { "id": "420371", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I was able to reproduce this issue with the following environment;\r\niPhone 7 (10.2)\r\nMacOS 10.11.6 (15G31)\r\nStudio 4.9.0.201705021158\r\nTi SDK 6.1.0.v20170519131839\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.1\r\nTi CLI 5.0.13\r\nAlloy 1.9.11\r\nArrow 2.0.0\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.7.0_80", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-05-24T20:33:12.000+0000", "updated": "2017-05-24T20:33:12.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }