{ "id": "151574", "key": "TIMOB-19614", "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": "14826", "description": "Release 5.1.0-remaining iOS9 features, Android M features", "name": "Release 5.1.0", "archived": false, "released": true, "releaseDate": "2015-11-20" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-09-30T19:48:40.000+0000", "created": "2015-09-29T12:27:17.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [], "versions": [ { "id": "16925", "description": "WatchKit Support--all going into 5.0 now", "name": "Release 5.0.0", "archived": true, "released": true, "releaseDate": "2015-09-16" } ], "issuelinks": [ { "id": "49126", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "149418", "key": "TIMOB-19150", "fields": { "summary": "iOS: Add ability to turn off auto-complete and auto-suggest on Keyboard", "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": "4", "description": "An improvement or enhancement to an existing feature or task.", "name": "Improvement", "subtask": false } } } } ], "assignee": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "updated": "2015-10-14T17:55:52.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": "The example code in TIMOB-19150 shows that an app crashes when you set {{showUndoRedoActions}} to {{true}} after creation. This is an example covering both {{Ti.UI.TextField}} and {{Ti.UI.TextArea}}:\r\n\r\n{code}\r\n\r\nvar showUndoRedoActionsField = true\r\nvar showUndoRedoActionsArea = true\r\n\r\nvar win = Ti.UI.createWindow({backgroundColor: \"#fff\",layout: \"vertical\"});\r\nvar field = Ti.UI.createTextArea({width: 300,height: 50,top: 100,backgroundColor: \"#f0f0f0\"});\r\nvar area = Ti.UI.createTextArea({width: 300,height: 300,top: 100,backgroundColor: \"#f0f0f0\"});\r\nvar btn1 = Ti.UI.createButton({title: \"Toggle field\"});\r\nvar btn2 = Ti.UI.createButton({title: \"Toggle area\"});\r\n\r\nfield.showUndoRedoActions = showUndoRedoActionsField;\r\narea.showUndoRedoActions = showUndoRedoActionsArea;\r\n\r\nbtn1.addEventListener(\"click\", function() {\r\n showUndoRedoActionsField = !showUndoRedoActionsField;\r\n field.showUndoRedoActions = showUndoRedoActionsField;\r\n});\r\nbtn2.addEventListener(\"click\", function() {\r\n showUndoRedoActionsArea = !showUndoRedoActionsArea;\r\n area.showUndoRedoActions = showUndoRedoActionsArea;\r\n});\r\n\r\nwin.add(field);\r\nwin.add(btn1);\r\nwin.add(area);\r\nwin.add(btn2);\r\nwin.open();\r\n\r\n{code}\r\n\r\nTap the button twice (first sets it to {{false}}) and the app will crash with:\r\n\r\n{code}\r\n[ERROR] 2015-09-29 14:21:19.883 theme[21620:3697521] -[CALayer copyWithZone:]: unrecognized selector sent to instance 0x7fc528d3c790\r\n[ERROR] Script Error {\r\n[ERROR] column = 10;\r\n[ERROR] line = 12;\r\n[ERROR] message = \"-[CALayer copyWithZone:]: unrecognized selector sent to instance 0x7fc528d3c790\";\r\n[ERROR] sourceURL = \"file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/C19B50F8-3D4C-4516-BFCB-4E7A1BA8D982/data/Containers/Bundle/Application/BD0C4CF3-5C08-44D3-8A66-8BD3C6B8B4E1/theme.app/app.js\";\r\n[ERROR] stack = \"file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/C19B50F8-3D4C-4516-BFCB-4E7A1BA8D982/data/Containers/Bundle/Application/BD0C4CF3-5C08-44D3-8A66-8BD3C6B8B4E1/theme.app/app.js:12:10\";\r\n[ERROR] }\r\n{code}", "attachment": [], "flagged": false, "summary": "Setting showUndoRedoActions to true after creation crashes app", "creator": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "subtasks": [], "reporter": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "environment": "SDK 5.0.1 GA", "closedSprints": [ { "id": 494, "state": "closed", "name": "2015 Sprint 20 SDK", "startDate": "2015-09-26T00:29:19.845Z", "endDate": "2015-10-10T00:29:00.000Z", "completeDate": "2015-10-12T05:33:30.964Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "365277", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "PR pending (fixing both TextArea and TextField): https://github.com/appcelerator/titanium_mobile/pull/7243\r\n\r\n[~apetkov] Can you do a functional test?", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-09-29T17:27:45.000+0000", "updated": "2015-09-29T17:27:45.000+0000" }, { "id": "366804", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified fixed, using:\r\n\r\nMacOS 10.11 (15A284)\r\nStudio 4.4.0.201510092420\r\nTi SDK 5.1.0.v20151013151603\r\nAppc NPM 4.2.1-1\r\nAppc CLI 5.1.0-38\r\nTi CLI 5.0.5\r\nAlloy 1.7.16\r\nArrow 1.3.13\r\nXcode 7.0.1 (7A1001)\r\nNode v4.1.0\r\nJava 1.7.0_80\r\nproduction\r\n\r\nToggling the undo/redo actions or the entire actions bar after creation does not crash the app.", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-10-14T17:55:52.000+0000", "updated": "2015-10-14T17:55:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }