{ "id": "142789", "key": "TIMOB-18380", "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": "16711", "description": "Release 3.5.1", "name": "Release 3.5.1", "archived": false, "released": true, "releaseDate": "2015-03-06" }, { "id": "16593", "description": "Release 4.0.0", "name": "Release 4.0.0", "archived": false, "released": true, "releaseDate": "2015-05-21" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2015-01-15T17:43:46.000+0000", "created": "2015-01-14T16:12:30.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "listview", "popover", "qe-testadded", "qe-verified", "searchbar" ], "versions": [ { "id": "16704", "description": "Release 3.5.0", "name": "Release 3.5.0", "archived": false, "released": true, "releaseDate": "2015-01-13" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2015-03-06T14:58:23.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": "This ticket is related to TIMOB-17923 and TIMOB-18260. Though TIMOB-18260 fixes the situation where the popover hides because the user taps outside the popover, this ticket is for the situation where the popover is closed programmatically via {{hide()}}.\r\n\r\nh2. Steps\r\n\r\n1. Build the code to iPad Simulator\r\n2. Click the green button\r\n3. Click the searchbar to focus on the field\r\n4. Click the red button to programmatically hide the popover\r\n5. See it crash\r\n\r\nh1. Code\r\n\r\n{code:javascript}\r\nvar w = Ti.UI.createWindow({\r\n backgroundColor: 'white'\r\n});\r\n\r\nvar b = Ti.UI.createButton({\r\n title: 'Click Me',\r\n backgroundColor: 'green'\r\n});\r\n\r\nb.addEventListener('click', function() {\r\n\r\n var cw = Ti.UI.createWindow({\r\n width: 300\r\n });\r\n\r\n var lv = Ti.UI.createListView({\r\n searchView: Ti.UI.createSearchBar(),\r\n });\r\n\r\n var bt = Ti.UI.createButton({\r\n title: 'Focus search then click me',\r\n backgroundColor: 'red'\r\n });\r\n\r\n bt.addEventListener('click', function() {\r\n p.hide();\r\n });\r\n\r\n cw.add(lv);\r\n cw.add(bt);\r\n\r\n var p = Ti.UI.iPad.createPopover({\r\n contentView: cw\r\n });\r\n\r\n p.show({\r\n view: b\r\n });\r\n\r\n});\r\n\r\nw.add(b);\r\nw.open();\r\n{code}\r\n\r\nh1. Crash log\r\n\r\n{code}\r\n[DEBUG] 2015-01-14 14:31:55.492 Timewax[52232:3411517] -[TiUILabelProxy addSubview:]: unrecognized selector sent to instance 0x7bafc200\r\n[ERROR] The application has crashed with an uncaught exception 'NSInvalidArgumentException'.\r\n[ERROR] Reason:\r\n[ERROR] -[TiUILabelProxy addSubview:]: unrecognized selector sent to instance 0x7bafc200\r\n[ERROR] Stack trace:\r\n[ERROR]\r\n[ERROR] 0 CoreFoundation 0x05abe92a __exceptionPreprocess + 154\r\n[ERROR] 1 libobjc.A.dylib 0x05690a97 objc_exception_throw + 44\r\n[ERROR] 2 CoreFoundation 0x05ac65c5 -[NSObject(NSObject) doesNotRecognizeSelector:] + 277\r\n[ERROR] 3 CoreFoundation 0x05a0f3e7 ___forwarding___ + 1047\r\n[ERROR] 4 CoreFoundation 0x05a0efae _CF_forwarding_prep_0 + 14\r\n[ERROR] 5 UIKit 0x02a49899 -[UISearchDisplayController _hoistSearchBar] + 375\r\n[ERROR] 6 UIKit 0x02a4a82e -[UISearchDisplayController showHideAnimationDidFinish] + 108\r\n[ERROR] 7 UIKit 0x02650f72 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 206\r\n[ERROR] 8 UIKit 0x026512e2 -[UIViewAnimationState animationDidStop:finished:] + 80\r\n[ERROR] 9 UIKit 0x14ffb50b -[UIViewAnimationStateAccessibility animationDidStop:finished:] + 66\r\n[ERROR] 10 QuartzCore 0x017eb9d9 _ZN2CA5Layer23run_animation_callbacksEPv + 307\r\n[ERROR] 11 libdispatch.dylib 0x0639b03f _dispatch_client_callout + 14\r\n[ERROR] 12 libdispatch.dylib 0x06384764 _dispatch_main_queue_callback_4CF + 470\r\n[ERROR] 13 CoreFoundation 0x05a1895e __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 14\r\n[ERROR] 14 CoreFoundation 0x059d7760 __CFRunLoopRun + 2256\r\n[ERROR] 15 CoreFoundation 0x059d6bcb CFRunLoopRunSpecific + 443\r\n[ERROR] 16 CoreFoundation 0x059d69fb CFRunLoopRunInMode + 123\r\n[ERROR] 17 GraphicsServices 0x06b0324f GSEventRunModal + 192\r\n[ERROR] 18 GraphicsServices 0x06b0308c GSEventRun + 104\r\n[ERROR] 19 UIKit 0x025e98b6 UIApplicationMain + 1526\r\n[ERROR] 20 Timewax 0x0006b468 main + 456\r\n[ERROR] 21 libdyld.dylib 0x063c1ac9 start + 1\r\n[ERROR]\r\n[ERROR] 2015-01-14 14:31:55.505 Timewax[52232:3411517] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[TiUILabelProxy addSubview:]: unrecognized selector sent to instance 0x7bafc200'\r\n[ERROR] *** First throw call stack:\r\n[ERROR] (\r\n[ERROR] 0 CoreFoundation 0x05abe946 __exceptionPreprocess + 182\r\n[ERROR] 1 libobjc.A.dylib 0x05690a97 objc_exception_throw + 44\r\n[ERROR] 2 CoreFoundation 0x05ac65c5 -[NSObject(NSObject) doesNotRecognizeSelector:] + 277\r\n[ERROR] 3 CoreFoundation 0x05a0f3e7 ___forwarding___ + 1047\r\n[ERROR] 4 CoreFoundation 0x05a0efae _CF_forwarding_prep_0 + 14\r\n[ERROR] 5 UIKit 0x02a49899 -[UISearchDisplayController _hoistSearchBar] + 375\r\n[ERROR] 6 UIKit 0x02a4a82e -[UISearchDisplayController showHideAnimationDidFinish] + 108\r\n[ERROR] 7 UIKit 0x02650f72 -[UIViewAnimationState sendDelegateAnimationDidStop:finished:] + 206\r\n[ERROR] 8 UIKit 0x026512e2 -[UIViewAnimationState animationDidStop:finished:] + 80\r\n[ERROR] 9 UIKit 0x14ffb50b -[UIViewAnimationStateAccessibility animationDidStop:finished:] + 66\r\n[ERROR] 10 QuartzCore 0x017eb9d9 _ZN2CA5Layer23run_animation_callbacksEPv + 307\r\n[ERROR] 11 libdispatch.dylib 0x0639b03f _dispatch_client_callout + 14\r\n[ERROR] 12 libdispatch.dylib 0x06384764 _dispatch_main_queue_callback_4CF + 470\r\n[ERROR] 13 CoreFoundation 0x05a1895e __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 14\r\n[ERROR] 14 CoreFoundation 0x059d7760 __CFRunLoopRun + 2256\r\n[ERROR] 15 CoreFoundation 0x059d6bcb CFRunLoopRunSpecific + 443\r\n[ERROR] 16 CoreFoundation 0x059d69fb CFRunLoopRunInMode + 123\r\n[ERROR] 17 GraphicsServices 0x06b0324f GSEventRunModal + 192\r\n[ERROR] 18 GraphicsServices 0x06b0308c GSEventRun + 104\r\n[ERROR] 19 UIKit 0x025e98b6 UIApplicationMain + 1526\r\n[ERROR] 20 Timewax 0x0006b468 main + 456\r\n[ERROR] 21 libdyld.dylib 0x063c1ac9 start + 1\r\n[ERROR] )\r\n[ERROR] libc++abi.dylib: terminating with uncaught exception of type NSException\r\n{code}", "attachment": [], "flagged": false, "summary": "Regression: Programmatically hiding a PopOver showing a ListView with a SearchBar that has focus results in crash", "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": "Fails on 3.5.0.RC-GA\r\nWorks on 3.4.1.GA", "closedSprints": [ { "id": 291, "state": "closed", "name": "2015 Sprint 01 SDK", "startDate": "2015-01-03T01:00:00.000Z", "endDate": "2015-01-17T01:00:00.000Z", "completeDate": "2015-01-19T17:24:40.828Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "339248", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending\r\nmaster - https://github.com/appcelerator/titanium_mobile/pull/6575", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-15T17:26:57.000+0000", "updated": "2015-01-15T17:26:57.000+0000" }, { "id": "339259", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Backport to 3_5_X\r\nhttps://github.com/appcelerator/titanium_mobile/pull/6577", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-01-15T17:42:25.000+0000", "updated": "2015-01-15T17:42:25.000+0000" }, { "id": "339473", "author": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "body": "Verified fix on:\r\n\r\nMac OSX 10.10.1\r\nAppcelerator Studio, build: 3.4.1.201410281743\r\nTitanium SDK build: 3.6.0.v20150116070927, 3.5.1.v20150115094121 \r\nTitanium CLI, build: 3.4.1\r\nAlloy: 1.5.1\r\nXcode 6.1.1\r\niPad Air 2 (8.2b4), iPad Air (7.0.3)\r\n\r\nUsing the attached code built to both devices, the app no longer crashes when the popover is dismissed.\r\n\r\nClosing ticket.", "updateAuthor": { "name": "eharris", "key": "eharris", "displayName": "Ewan Harris", "active": true, "timeZone": "Europe/Dublin" }, "created": "2015-01-16T19:28:12.000+0000", "updated": "2015-01-16T19:28:12.000+0000" }, { "id": "343937", "author": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Verified working as expected using:\r\n\r\nTitanium SDK 3.5.1.v20150219110512\r\nStudio 3.4.2.201502181619\r\nCLI 3.4.2-alpha\r\nXcode 6.2b5", "updateAuthor": { "name": "ewieber", "key": "ewieber", "displayName": "Eric Wieber", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2015-02-19T19:36:01.000+0000", "updated": "2015-02-19T19:36:01.000+0000" }, { "id": "345268", "author": { "name": "swanify", "key": "swanify", "displayName": "Matthew Lanham", "active": true, "timeZone": "Europe/London" }, "body": "There is actually still a bug on this, if you highlight the searchBar, and then click outside of the popover to close, it will crash. ", "updateAuthor": { "name": "swanify", "key": "swanify", "displayName": "Matthew Lanham", "active": true, "timeZone": "Europe/London" }, "created": "2015-03-06T14:58:23.000+0000", "updated": "2015-03-06T14:58:23.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }