{ "id": "123555", "key": "TIMOB-15946", "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": "2013-12-10T22:40:13.000+0000", "created": "2013-12-10T21:44:16.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "qe-3.2.0", "regression" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [ { "id": "33691", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "120047", "key": "TIMOB-15215", "fields": { "summary": "iOS7: App freezes when run by instruments", "status": { "description": "This issue was once resolved, but the resolution was deemed incorrect. From here issues are either marked assigned or resolved.", "name": "Reopened", "id": "4", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "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": "33692", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "85470", "key": "TIMOB-7403", "fields": { "summary": "iOS: Toolbar Proxy does not get release using require", "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": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2014-06-19T12:43:28.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": "*Details:* Using Instruments to search for Toolbar proxy crashes the app. And, TiUIiOSToolbarProxy does not get released as well.\r\n\r\n*Note:*\r\n1. This only affects iOS 7\r\n2. This bug only occurs while using Instruments; launching the app by itself and pressing the button will not crash\r\n3. *This is a regression as this does not occur on GA stack*\r\n\r\n*Steps to reproduce:*\r\n1. Create default app with the following files:\r\napp.js:\r\n{code}\r\nvar ToolbarSimple = require(\"ToolbarSimple\").ToolbarSimple;\r\n \r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n});\r\nvar view;\r\nfunction close() {\r\n win.remove(view);\r\n view = null;\r\n}\r\n \r\nview = (function() {\r\n var v = Ti.UI.createView({\r\n backgroundColor : 'black'\r\n });\r\n var toolbar = new ToolbarSimple(\"Title\");\r\n v.add(toolbar);\r\n toolbar.addEventListener(\"done\", close);\r\n toolbar.addEventListener(\"cancel\", close);\r\n return v;\r\n})();\r\n \r\nwin.add(view);\r\n \r\nwin.open();\r\n{code}\r\n\r\nToolbarSimple.js:\r\n{code}\r\nexports.ToolbarSimple = function(title) {\r\n var toolbar;\r\n var cancel = Titanium.UI.createButton({\r\n systemButton : Ti.UI.iPhone.SystemButton.CANCEL\r\n });\r\n cancel.addEventListener('click', function() {\r\n toolbar.fireEvent(\"cancel\");\r\n });\r\n var done = Titanium.UI.createButton({\r\n systemButton : Ti.UI.iPhone.SystemButton.DONE\r\n });\r\n done.addEventListener('click', function() {\r\n toolbar.fireEvent(\"done\");\r\n });\r\n \r\n var spacer = Titanium.UI.createButton({\r\n systemButton : Titanium.UI.iPhone.SystemButton.FLEXIBLE_SPACE\r\n });\r\n var lbl = Ti.UI.createLabel({\r\n text : title,\r\n color : 'white',\r\n font : {\r\n fontWeight : 'bold',\r\n fontSize : 18\r\n }\r\n });\r\n toolbar = Ti.UI.iOS.createToolbar({\r\n height : 43,\r\n barColor : \"purple\",\r\n items : [cancel, spacer, lbl, spacer, done]\r\n });\r\n return toolbar;\r\n};\r\n{code}\r\n2. Install app to an iOS 7 device\r\n3. Next, open instruments; choose allocation template\r\n4. Choose the target device and target app\r\n5. Filter by proxy\r\n6. On the app, press done\r\n\r\n*Actual:* App will silently crash (see attachments for console log and crash report) and TiUIiOSToolbarProxy does not get released.\r\n\r\n*Expected:* App should not silently crash while using Instruments and TiUIiOSToolbarProxy should be released.\r\n", "attachment": [ { "id": "44538", "filename": "console.log", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T21:44:16.000+0000", "size": 980, "mimeType": "text/plain" }, { "id": "44539", "filename": "LeakAgent 12-10-13, 1-13 PM.crash", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T21:44:16.000+0000", "size": 15574, "mimeType": "application/octet-stream" } ], "flagged": false, "summary": "iOS7: Toolbar - Using Instruments to search for Toolbar proxy crashes the app and TiUIiOSToolbarProxy does not get released", "creator": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "environment": "Appcelerator Studio, build: 3.2.0.201312091648\r\nSDK build: 3.2.0.v20131209192649 \r\nCLI: 3.2.0-cr\r\nAlloy: 1.3.0-cr\r\nXcode: 5.0.2\r\nDevice: iphone 5 (7.0.2)\r\n", "comment": { "comments": [ { "id": "283662", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as invalid. Was not able to reproduce the issue with 3.2.0.v20131209192649 and 3.2.0.v20131210112451. I might've dirtied the test device with other test apps.", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2013-12-10T22:40:03.000+0000", "updated": "2013-12-10T22:40:03.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }