{ "id": "130691", "key": "TIMOB-17001", "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": "15972", "description": "Release 3.4.0", "name": "Release 3.4.0", "archived": false, "released": true, "releaseDate": "2014-09-28" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2014-11-04T22:36:24.000+0000", "created": "2014-05-20T20:59:22.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "defect", "ios", "iphone" ], "versions": [ { "id": "15971", "description": "Release 3.2.3", "name": "Release 3.2.3", "archived": false, "released": true, "releaseDate": "2014-04-30" } ], "issuelinks": [ { "id": "38390", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "127773", "key": "TIMOB-16642", "fields": { "summary": "iOS: separatorInsets are ignored when using TableView SearchBar", "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": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-23T22:26:42.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": "ListView with a search, where the itemclick event opens a window.\r\n\r\nThis defect works in the ElementsOfListView tutorial app ( https://github.com/appcelerator-services/ElementsOfListView ). The customer is having the same issue in their own app.\r\n\r\n1) Wait for the elements list to open\r\n2) Scroll down a bit, half a screen or more.\r\n3) Click on an element (the name, not the symbol) and wait for the new window to open.\r\n4) Close that new window by clicking the \"Done\" button.\r\n5) Scroll back up to the top. Notice there is a white space where the Search was.\r\n\r\nAt this point, it should be noted that the search is still there, it just appears blank. If you click into it, it'll appear as it should.\r\n\r\nh3. Edit:\r\nSimpler test case, copy and paste into app.js\r\n{code}\r\nfunction MainWindow() {\r\n var win = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n });\r\n \r\n var items = [];\r\n for(var i = 0; i < 100; i++) {\r\n items.push({\r\n properties:{\r\n title: 'Row #' + (i + 1),\r\n searchableText: 'Row #' + (i + 1)\r\n }\r\n });\r\n }\r\n \r\n var listViewSection = Ti.UI.createListSection({\r\n items: items\r\n });\r\n var searchBar = Ti.UI.createSearchBar();\r\n var listView = Ti.UI.createListView({\r\n sections: [listViewSection],\r\n searchView: searchBar\r\n });\r\n win.add(listView);\r\n \r\n listView.addEventListener('itemclick', function(){\r\n SecondWindow().open({modal:true});\r\n });\r\n return win;\r\n}\r\n \r\nfunction SecondWindow() {\r\n var navWindow = Ti.UI.iOS.createNavigationWindow();\r\n var win = Ti.UI.createWindow({\r\n backgroundColor: 'gray'\r\n });\r\n var closeBtn = Ti.UI.createButton({\r\n title: 'close'\r\n });\r\n win.rightNavButton = closeBtn;\r\n navWindow.window = win;\r\n closeBtn.addEventListener('click', function(){\r\n navWindow.close();\r\n });\r\n return navWindow;\r\n}\r\nMainWindow().open();\r\n{code}", "attachment": [], "flagged": false, "summary": "iOS: Search disappears from ListView", "creator": { "name": "twilkinson", "key": "twilkinson", "displayName": "Thomas Wilkinson", "active": true, "timeZone": "America/Chicago" }, "subtasks": [], "reporter": { "name": "twilkinson", "key": "twilkinson", "displayName": "Thomas Wilkinson", "active": true, "timeZone": "America/Chicago" }, "environment": "iPhone", "closedSprints": [ { "id": 133, "state": "closed", "name": "2014 Sprint 13 SDK", "startDate": "2014-06-23T21:55:20.791Z", "endDate": "2014-07-04T00:00:00.000Z", "completeDate": "2014-07-07T17:32:18.561Z", "originBoardId": 100 }, { "id": 154, "state": "closed", "name": "2014 Sprint 15 SDK", "startDate": "2014-07-21T21:56:31.515Z", "endDate": "2014-08-02T00:00:00.000Z", "completeDate": "2014-08-04T21:03:51.067Z", "originBoardId": 114 }, { "id": 175, "state": "closed", "name": "2014 Sprint 17 SDK", "startDate": "2014-08-21T22:07:00.000Z", "endDate": "2014-08-30T00:00:00.000Z", "completeDate": "2014-09-02T19:56:25.517Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "307672", "author": { "name": "twilkinson", "key": "twilkinson", "displayName": "Thomas Wilkinson", "active": true, "timeZone": "America/Chicago" }, "body": "I'm going to bump up the priority because there is no workaround on it.", "updateAuthor": { "name": "twilkinson", "key": "twilkinson", "displayName": "Thomas Wilkinson", "active": true, "timeZone": "America/Chicago" }, "created": "2014-06-05T17:13:30.000+0000", "updated": "2014-06-05T17:13:30.000+0000" }, { "id": "308048", "author": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Tested on:\r\nMac OSX 10.9.3\r\nAppcelerator Studio, build: 3.3.0.201406061445\r\nTitanium SDK, build: 3.3.0.v20140606154912, 3.2.3.GA, 3.2.0.GA\r\nTitanium CLI, build: 3.3.0-beta3\r\nAlloy: 1.4.0-beta2\r\niPhone 5S (7.0.6)\r\n\r\nReproduced this issue using the latest master SDK, latest stable SDK and 3.2.0.GA SDK.\r\n\r\nScrolled down half a screen or more.\r\nOpened a new window, closed the new window and tapped the status bar to jump to the top of the listView.\r\nSearch bar is no longer present.\r\nOpening a new window and closing it again will bring back the search bar.", "updateAuthor": { "name": "sdowse", "key": "sdowse", "displayName": "Samuel Dowse", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-06-09T17:41:37.000+0000", "updated": "2014-06-09T17:41:37.000+0000" }, { "id": "316177", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending against master\r\nhttps://github.com/appcelerator/titanium_mobile/pull/5938", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-07-29T18:23:31.000+0000", "updated": "2014-07-29T18:23:31.000+0000" }, { "id": "318713", "author": { "name": "slim.mckins", "key": "slim.mckins", "displayName": "Slim McKinsley", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I just tested this with continuous build 3.4.0.v20140813022514 and if you search and tap a search result the app crashes. Also crashes if you have a search keyword entered and tap the X in the search field to clear.\r\n\r\n[ERROR] : The application has crashed with an uncaught exception 'UIViewControllerHierarchyInconsistency'.\r\n[ERROR] : Reason:\r\n[ERROR] : A view can only be associated with at most one view controller at a time! View ; layer = ; contentOffset: {0, 0}> is associated with . Clear this association before associating this view with .", "updateAuthor": { "name": "slim.mckins", "key": "slim.mckins", "displayName": "Slim McKinsley", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-14T20:20:55.000+0000", "updated": "2014-08-14T20:20:55.000+0000" }, { "id": "319236", "author": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening the issue since the app crashes with given above code while searching and tapping search result.\r\n\r\nVerified with:\r\nAppcelerator Studio:3.4.0.201408180158\r\nSdk:3.4.0.v20140815142514\r\nalloy:1.5.0-dev\r\ntitanium:3.4.0-dev\r\ntitanium-code-processor:1.1.1\r\nacs:1.0.16\r\nnpm:1.3.2\r\nOS:Maverick(10.9.4)\r\nxcode: Xcode6Beta5\r\nDevice:iPhone5c(v7.1.1)\r\n\r\n{code}\r\n[ERROR] : The application has crashed with an uncaught exception 'UIViewControllerHierarchyInconsistency'.\r\n[ERROR] : Reason:\r\n[ERROR] : A view can only be associated with at most one view controller at a time! View ; layer = ; contentOffset: {0, 0}> is associated with . Clear this association before associating this view with .\r\n[ERROR] : Stack trace:\r\n[ERROR] : \r\n[ERROR] : 0 CoreFoundation 0x2e3a2ecb + 130\r\n[ERROR] : 1 libobjc.A.dylib 0x38b3dce7 objc_exception_throw + 38\r\n[ERROR] : 2 CoreFoundation 0x2e3a2e0d + 0\r\n[ERROR] : 3 UIKit 0x30c4b259 + 232\r\n[ERROR] : 4 UIKit 0x30c4af15 + 464\r\n[ERROR] : 5 UIKit 0x30df77cd + 204\r\n[ERROR] : 6 testApp 0x0020c25d testApp + 1438301\r\n[ERROR] : 7 testApp 0x0020ab0f testApp + 1432335\r\n[ERROR] : 8 testApp 0x0012031f testApp + 471839\r\n[ERROR] : 9 UIKit 0x30dc4113 + 70\r\n[ERROR] : 10 UIKit 0x30cd0449 + 188\r\n[ERROR] : 11 UIKit 0x30c52a69 + 20\r\n[ERROR] : 12 UIKit 0x30c52783 + 206\r\n[ERROR] : 13 UIKit 0x30c52adf + 106\r\n[ERROR] : 14 UIKit 0x30ccf44b + 46\r\n[ERROR] : 15 UIKit 0x30e0b307 + 490\r\n[ERROR] : 16 UIKit 0x30c096a7 + 90\r\n[ERROR] : 17 UIKit 0x30c09643 + 38\r\n[ERROR] : 18 UIKit 0x30c09613 + 46\r\n[ERROR] : 19 UIKit 0x30bf4d5b + 374\r\n[ERROR] : 20 UIKit 0x30c0905b + 594\r\n[ERROR] : 21 UIKit 0x30c08d2d + 528\r\n[ERROR] : 22 UIKit 0x30c03c87 + 758\r\n[ERROR] : 23 UIKit 0x30bd8e55 + 196\r\n[ERROR] : 24 testApp 0x0030aecd _ZN3WTI13tryMakeStringIPKcN2TI7UStringES2_EENS_10PassRefPtrINS_10StringImplEEET_T0_T1_ + 196916\r\n[ERROR] : 25 UIKit 0x30bd7521 + 7120\r\n[ERROR] : 26 CoreFoundation 0x2e36dfaf + 14\r\n[ERROR] : 27 CoreFoundation 0x2e36d477 + 206\r\n[ERROR] : 28 CoreFoundation 0x2e36bc67 + 630\r\n[ERROR] : 29 CoreFoundation 0x2e2d6729 CFRunLoopRunSpecific + 524\r\n[ERROR] : 30 CoreFoundation 0x2e2d650b CFRunLoopRunInMode + 106\r\n[ERROR] : 31 GraphicsServices 0x332456d3 GSEventRunModal + 138\r\n[ERROR] : 32 UIKit 0x30c37871 UIApplicationMain + 1136\r\n[ERROR] : 33 testApp 0x000b273f testApp + 22335\r\n[ERROR] : 34 libdyld.dylib 0x3903bab7 + 2\r\n-- End application log -------------------------------------------------------\r\n{code}\r\n\r\n\r\n\r\n", "updateAuthor": { "name": "pagarwal", "key": "pagarwal", "displayName": "Priya Agarwal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-19T06:24:20.000+0000", "updated": "2014-08-19T06:24:20.000+0000" }, { "id": "320828", "author": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Confirmed above crash\r\nPR: https://github.com/appcelerator/titanium_mobile/pull/5996", "updateAuthor": { "name": "jalter", "key": "jalter", "displayName": "Jon Alter", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-08-28T17:14:41.000+0000", "updated": "2014-08-28T23:00:54.000+0000" }, { "id": "320912", "author": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "body": "Look like that crash is the same I reported TC-4611", "updateAuthor": { "name": "farwayer", "key": "farwayer", "displayName": "Far", "active": true, "timeZone": "Europe/Minsk" }, "created": "2014-08-28T23:06:41.000+0000", "updated": "2014-08-28T23:06:41.000+0000" }, { "id": "321396", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket as fixed. Verified the search field does not disappear in ListView after scrolling pass halfway.\r\n\r\nTested on:\r\n\r\nAppcelerator Studio, build: 3.4.0.201408291834 \r\nSDK build: 3.4.0.v20140829184521 \r\nCLI: 3.4.0-dev \r\nAlloy: 1.5.0-dev \r\nXcode: 6-beta6 \r\nDevices: iphone 5 (7.0.6)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2014-09-02T18:50:54.000+0000", "updated": "2014-09-02T18:51:44.000+0000" }, { "id": "329508", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "This ticket should be reopened since the above PR is fixing a crash in the example, not the actual reported issue.\r\n\r\nThis issue still persists in 3.4.0.GA even without first having to open a window over it.\r\n\r\nI'm trying to come up with a good test case, but reproducing is hard since it happens about 1 out of 10 times in an enterprise app I'm doing which involves a lots of interconnected code around the list view.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-10-27T14:17:39.000+0000", "updated": "2014-10-27T14:17:39.000+0000" }, { "id": "329509", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "O wait, I see there's another PR.\r\n\r\nWell, anyway... problem still exists in 3.4.0.GA for me.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-10-27T14:18:48.000+0000", "updated": "2014-10-27T14:18:48.000+0000" }, { "id": "330741", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~fokke] We evidently need a test case to reproduce before we can reopen. Please see if you can arrive at one (I know it is complicated).", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-11-04T22:36:24.000+0000", "updated": "2014-11-04T22:36:24.000+0000" }, { "id": "330800", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "I haven't seen it anymore since iOS 8.1 so I think it was an 8.0 bug, since it was popping up there daily.", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-11-05T08:42:31.000+0000", "updated": "2014-11-05T08:42:31.000+0000" }, { "id": "336300", "author": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "body": "Still seen it in 8.1.1", "updateAuthor": { "name": "fokkezb", "key": "fokke", "displayName": "Fokke Zandbergen", "active": true, "timeZone": "Europe/Amsterdam" }, "created": "2014-12-13T12:27:20.000+0000", "updated": "2014-12-13T12:27:20.000+0000" }, { "id": "336691", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "body": "Hello [~jalter]:\r\n\r\n\r\nh4. Testing Environments\r\niphone 6 - iOS 8.1.2 - Mobile SDK 3.4.1 - OK\r\nipod touch - iOS 8.1.1 - Mobile SDK 3.4.1 - OK\r\niphone 6+ sim - iOS 8.1 - Mobile SDK 3.4.1 - OK. \r\n\r\nh4. Instructions to reproduce\r\n\r\n1. Create new mobile project\r\n2. Add the sample code in the issue to app.js\r\n3. Run it in device\r\n4. Scroll to row 30+\r\n5. Click in a row\r\n6. Click Done\r\n7. Scroll to the top and check the search\r\n\r\nh4. Actual results\r\nThe search is still there and says search in all the described test in different environments. ", "updateAuthor": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-12-16T23:43:45.000+0000", "updated": "2014-12-16T23:43:45.000+0000" }, { "id": "415434", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing as fixed.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-23T22:26:42.000+0000", "updated": "2017-03-23T22:26:42.000+0000" } ], "maxResults": 18, "total": 18, "startAt": 0 } } }