{ "id": "82812", "key": "TIMOB-6208", "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": "12087", "description": "", "name": "Sprint 2011-47", "archived": true, "released": true, "releaseDate": "2011-11-28" }, { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" } ], "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-11-22T11:36:24.000+0000", "created": "2011-11-16T17:44:42.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "11331", "description": "", "name": "Release 1.8.0", "archived": true, "released": true, "releaseDate": "2011-10-31" } ], "issuelinks": [], "assignee": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-30T10:34:37.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": "When a navigation group is opened multiple times the app crashed. This only happens on 1.8.0 version. I can not repro it on 1.7.5 version.\r\n\r\nh4. Repro Steps\r\nStep1. Create a project with the code below and run it on the emulator.\r\nStep2. Click the \"open\" button then click the \"back\" button.\r\nStep3. Repeat Step2 couple of times will crash the app.\r\n\r\n{code:title=app.js}\r\nfunction NavGroup(){\r\n\tvar w = Ti.UI.createWindow();\r\n\tvar n = Ti.UI.iPhone.createNavigationGroup();\r\n\tvar win = Ti.UI.createWindow({\r\n\t\tbackgroundColor:'#444'\r\n\t});\r\n\tn.window = win;\r\n\t\r\n\tvar close = Ti.UI.createButton({\r\n\t\ttitle:'back'\r\n\t});\r\n\twin.rightNavButton = close;\r\n\t\r\n\tclose.addEventListener('click', function(){\r\n\t\tw.close();\r\n\t});\r\n\r\n\tw.add(n);\r\n\treturn w;\r\n}\r\n\r\nfunction Window(){\r\n\t\r\n\tvar win = Ti.UI.createWindow({backgrounColor:'green'});\r\n\tvar btn = Ti.UI.createButton({\r\n\t\twidth:100,\r\n\t\theight:40,\r\n\t\ttitle:'open'\r\n\t});\r\n\twin.add(btn);\r\n\tbtn.addEventListener('click', function(){\r\n\t\tNavGroup().open();\r\n\t});\r\n\t\r\n\treturn win;\r\n}\r\n\r\nWindow().open();\r\n\r\n{code}\r\n\r\nh4. Associated Helpdesk Ticket\r\nhttp://appc.me/c/APP-628857", "attachment": [ { "id": "24214", "filename": "NavGroupCrashTest_2011-11-17-131234_qgaombp.crash", "author": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-17T13:20:39.000+0000", "size": 37790, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "Open NavigationGroup multiple times crashes the app", "creator": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "XCode4.2, iOS5 simulator", "comment": { "comments": [ { "id": "173152", "author": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This ticket should have included a symbolocated crash log.", "updateAuthor": { "name": "rseagraves", "key": "rseagraves", "displayName": "Reggie Seagraves", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-17T13:04:31.000+0000", "updated": "2011-11-17T13:04:31.000+0000" }, { "id": "173154", "author": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Attached the crash log.", "updateAuthor": { "name": "qgao", "key": "qgao", "displayName": "Qing Gao", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-17T13:21:02.000+0000", "updated": "2011-11-17T13:21:02.000+0000" }, { "id": "173192", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "There is a javascript workaround for this. Changing the {{close}} event listener:\r\n\r\n{code}\r\n\tclose.addEventListener('click', function(){\r\n\t\tn.close();\r\n\t\tw.close();\r\n\t});\r\n{code}\r\n\r\nAddressing this issue in the SDK may take substantial time and significant changes, which are being avoided at this point due to partial freeze.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-17T16:08:23.000+0000", "updated": "2011-11-17T16:08:23.000+0000" }, { "id": "173242", "author": { "name": "mark.e.allen@emc.com", "key": "mark.e.allen@emc.com", "displayName": "Mark Allen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "the recommended fix does not work in the context of our application. Please refer to ticket APP-628857 for a zip file that contains a sample application the closely emulates the code we use in our application. I modified the code in settings.js from:\r\n\r\n\t\tfunction handleClose(_event) {\r\n\t\t\tmodal.close();\r\n\t\t};\r\n\r\n\r\nto:\r\n\r\n\t\tfunction handleClose(_event) {\r\n\t\t\tnavGroup.close();\r\n\t\t\tmodal.close();\r\n\t\t};\r\n\r\nbut app still crashes. Console in simulator displays the following after getting the message '[DEBUG] Session did end with error (null)'\r\n\r\n[FATAL] Orphaned [object TiUIWindow] is trying to forget (null).\r\n\r\n[FATAL] Orphaned [object TiUIWindow] is trying to forget [object TiUIWindow].\r\n\r\n\r\nAlso, please note there might be duplicate effort on this. Refer to 'APP-687672: Left Nav Button causing app to crash' for similar issue. ", "updateAuthor": { "name": "mark.e.allen@emc.com", "key": "mark.e.allen@emc.com", "displayName": "Mark Allen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-18T05:08:24.000+0000", "updated": "2011-11-18T05:08:24.000+0000" }, { "id": "173243", "author": { "name": "mark.e.allen@emc.com", "key": "mark.e.allen@emc.com", "displayName": "Mark Allen", "active": true, "timeZone": "America/Los_Angeles" }, "body": "refer also to TIMOB-6183 - issue closely mirrors this one. I believe it is the same issue. ", "updateAuthor": { "name": "mark.e.allen@emc.com", "key": "mark.e.allen@emc.com", "displayName": "Mark Allen", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-18T05:10:25.000+0000", "updated": "2011-11-18T05:10:25.000+0000" }, { "id": "173748", "author": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce the crash with either the sample code from this ticket or the sample code provided on the helpdesk, with SDK 1.8.0.1.3e67d33. Tested on iOS simulator 4.3/5.0 and iPod 3GT iOS 5.0.\r\n\r\nNote that the warning (Orphaned X trying to forget Y) is still logged, but that's acceptable. There's no way around that until we restructure how navgroup works.", "updateAuthor": { "name": "stephentramer", "key": "stephentramer", "displayName": "Stephen Tramer", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-11-22T11:36:24.000+0000", "updated": "2011-11-22T11:36:24.000+0000" }, { "id": "189306", "author": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing issue\r\n\r\nTested with Ti Studio build 2.0.0.201203291340\r\nTi Mobile SDK 2.0.0.v20120329191102 hash r1fbf18c4\r\nOSX Lion 10.7.3\r\niPhone 4S OS 5.0.1\r\n\r\nCannot reproduce issue", "updateAuthor": { "name": "mpettiford", "key": "mpettiford", "displayName": "Michael Pettiford", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-03-30T10:34:37.000+0000", "updated": "2012-03-30T10:34:37.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }