{ "id": "153463", "key": "AC-1019", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "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": "2015-12-14T14:25:13.000+0000", "created": "2015-11-26T14:05:02.000+0000", "labels": [], "versions": [ { "id": "17035", "name": "Appcelerator Studio 4.4.0", "archived": false, "released": false } ], "issuelinks": [ { "id": "50139", "type": { "id": "10001", "name": "Cloners", "inward": "is cloned into", "outward": "is cloned from" }, "inwardIssue": { "id": "153911", "key": "ALOY-1344", "fields": { "summary": "App crash on controller.close when the searchBar has focus", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "priority": { "name": "Critical", "id": "1" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:21.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [], "description": "h3. Steps to Reproduce\ncreate a window with a 'close'-Button a simple action: $.getView().close();\n\nafter that create a simple listView (I used Alloy) with a searchbar. When you run this on iPad and your searchView has focus and you click now (with the focussed searchbar) the close-Button. The app crashes without giving any errorMessage in the console. \n\nh3. Actual Result\nwhen I'm focussing the SearchBar of my ListView and click on my 'close-Button' (including the following code: $.getView().close();) the app crashes without any errorMessage in the console. \n\nh3. Expected Result\nThe controller should be closed. The app should shut down.", "attachment": [ { "id": "57620", "filename": ".log", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-26T14:05:09.000+0000", "size": 6484747, "mimeType": "text/plain" }, { "id": "57788", "filename": "demoapp.zip", "author": { "name": "Julian Buss", "key": "julian buss", "displayName": "Julian Buss", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-12-16T16:37:31.000+0000", "size": 1261, "mimeType": "application/zip" }, { "id": "57621", "filename": "diagnostic7426290897126324166.log", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-11-26T14:05:18.000+0000", "size": 101014, "mimeType": "text/plain" } ], "flagged": false, "summary": "App crash on controller.close when the searchBar has focus", "creator": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "371645", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~dbenhenni], Please provide a test code of your problem. Also, you can take a look at these links below.\r\n\r\n[Link1|https://developer.appcelerator.com/question/176929/how-to-close-an-alloy-window-from-controller-of-required-view].\r\n[Link2|https://developer.appcelerator.com/question/154457/close-windows-with-alloy].", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-11-30T08:38:30.000+0000", "updated": "2015-11-30T08:38:30.000+0000" }, { "id": "371766", "author": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Sharif AbuDarda ,\r\n\r\n\r\n\t\r\n\t\t\r\n\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t**\r\n\t\t\t\t\r\n\t\t\t\t\t\r\n\t\t\t\t\t\r\n...\r\n{code:java}function openHome() {\r\n$.listview.getSearchView().blur();\r\n$.getView().close();\r\n}{code}\r\n\r\nWhen I click into the searchBar field, so the searchBar has focus, and I'm clicking my close-button (function openHome), the app crashes without any errorMessage in the console.\r\n\r\nIt is the same behaviour within all of my listviews. I'm running the newest Appcelerator version and SDK without any luck.\r\n\r\nBest regards", "updateAuthor": { "name": "dbenhenni", "key": "dbenhenni", "displayName": "dbenhenni", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-01T08:59:20.000+0000", "updated": "2015-12-01T09:08:51.000+0000" }, { "id": "372495", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~dbenhenni], I tried tested your issue with a classic code, The code is working fine. No app crash happens. See the code below. Thanks.\r\n\r\n{code}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white',\r\n fullscreen : true\r\n});\r\n\r\nvar close = Ti.UI.createButton({\r\n title : 'close',\r\n top : 0,\r\n height : 20\r\n});\r\nwin.add(close);\r\n\r\nclose.addEventListener('click', function() {\r\n win.close();\r\n});\r\n\r\nvar search = Titanium.UI.createSearchBar({\r\n barColor : '#000',\r\n showCancel : true,\r\n height : 43,\r\n top : 0,\r\n});\r\nsearch.addEventListener('cancel', function() {\r\n search.blur();\r\n});\r\n\r\nvar listView = Ti.UI.createListView({\r\n searchView : search,\r\n caseInsensitiveSearch : true,\r\n top : 50\r\n});\r\nvar listSection = Ti.UI.createListSection();\r\nvar fruits = ['Papaya', 'Peach', 'Pear', 'Persimmon', 'Pineapple', 'Pluot', 'Pomegranate'];\r\nvar data = [];\r\nfor (var i = 0; i < fruits.length; i++) {\r\n data.push({\r\n properties : {\r\n title : fruits[i],\r\n searchableText : fruits[i]\r\n }\r\n });\r\n}\r\nlistSection.setItems(data);\r\nlistView.addEventListener('noresults', function(e) {\r\n alert(\"No results found!\");\r\n});\r\nlistView.sections = [listSection];\r\nwin.add(listView);\r\nwin.open(); \r\n{code}\r\n", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-12-09T06:05:46.000+0000", "updated": "2015-12-09T06:05:46.000+0000" }, { "id": "373112", "author": { "name": "Julian Buss", "key": "julian buss", "displayName": "Julian Buss", "active": true, "timeZone": "Europe/Berlin" }, "body": "I can clearly reproduce with the demoapp attached (only app/controller and app/view folders). Tested with most recent SDK 5.1.1.\r\n\r\nSteps to reproduce:\r\n- create a new Alloy app\r\n- copy app/controller and app/view folders from the demoapp.zip to your app\r\n- start app on iPad simulator\r\n- index.xml opens jbtest.xml automatically, now click on \"schließen\" button in the upper left -> the window closes and the index window is visible\r\n- now start the app again, click in the searchbar so that the searchbar has focus, now click the button \"Schließen\" -> app crashes\r\n", "updateAuthor": { "name": "Julian Buss", "key": "julian buss", "displayName": "Julian Buss", "active": true, "timeZone": "Europe/Berlin" }, "created": "2015-12-16T16:40:10.000+0000", "updated": "2015-12-16T16:40:10.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }