{ "id": "99022", "key": "TIMOB-10400", "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": "2012-08-14T13:41:41.000+0000", "created": "2012-08-10T14:13:21.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "api" ], "versions": [ { "id": "13273", "description": "Release 2.0.2", "name": "Release 2.0.2", "archived": false, "released": true, "releaseDate": "2012-05-31" }, { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" }, { "id": "13572", "description": "Release 2.1.1", "name": "Release 2.1.1", "archived": true, "released": true, "releaseDate": "2012-07-31" } ], "issuelinks": [], "assignee": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-09T23:33:50.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h4. Problem Description\r\nWhen you are trying to close a window twice, the app will crash.\r\n\r\nh4. Actual results\r\nThe is crashing\r\n\r\nh4. Expected Results\r\nThe app should complain in the logs, but not crash. \r\n\r\nh4. Test Code\r\n1. Create new mobile project\r\n2. Add this code to the app.js. \r\n{code}\r\nvar win1 = Ti.UI.createWindow({backgroundColor:'white'});\r\nvar win2 = win1; \r\nwin1.open();\r\nif(win1){ win1.close();}\r\nsetTimeout(win2.close(),5000); \r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: Crash when trying to close a window twice", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": null, "comment": { "comments": [ { "id": "214415", "author": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The test code is not correct. Please use the code below and no crash any more:\r\n{code}\r\nvar win1 = Ti.UI.createWindow({backgroundColor:'white'});\r\nvar win2 = win1; \r\nwin1.open();\r\nif(win1){ win1.close();}\r\nsetTimeout(function(){win2.close();},5000);\r\n{code}\r\nMark the ticket as invalid.", "updateAuthor": { "name": "pwang", "key": "pwang", "displayName": "Ping Wang", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-14T13:40:36.000+0000", "updated": "2012-08-14T13:40:36.000+0000" }, { "id": "411051", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-09T23:33:50.000+0000", "updated": "2017-03-09T23:33:50.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }