{ "id": "173489", "key": "TIMOB-26989", "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": "20432", "name": "Release 8.0.1", "archived": false, "released": true, "releaseDate": "2019-05-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-04-29T13:42:30.000+0000", "created": "2019-04-20T02:10:02.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "SearchBar", "TableView", "android", "engSchedule", "regression", "searchview" ], "versions": [ { "id": "20214", "description": "", "name": "Release 7.2.1", "archived": false, "released": true, "releaseDate": "2018-08-17" } ], "issuelinks": [], "assignee": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2019-04-29T13:42:30.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "*Summary:*\r\nIf Android \"Developer Options\" setting \"Don't keep activities\" is enabled, then a {{TableView}} having a {{SearchBar}} or {{SearchView}} assigned to its \"search\" property will cause the app to crash after homing-out of the app and then resuming it.\r\n\r\nThis regression was introduced as of 7.2.1.\r\n\r\n{{ListView}} does not have this problem. This is only a regression with {{TableView}}.\r\n\r\n*Steps to reproduce:*\r\n# Go to the Android device's main \"Settings\" screen.\r\n# Tap on \"System\" under \"Settings.\r\n# Tap on \"Developer options\" under \"System\" settings.\r\n# Enable \"Don't keep activities\", which should be near the bottom of the list.\r\n# Build and run the below code on the above Android device.\r\n# Wait for the app to launch.\r\n# Tap on the Android \"Home\" button.\r\n# Resume the app.\r\n# Notice that the app crashes upon resume.\r\n\r\n{code:javascript}\r\nvar window = Ti.UI.createWindow();\r\nvar tableView = Ti.UI.createTableView({\r\n\tdata: [],\r\n//\tsearch: Ti.UI.createSearchBar({ showCancel: true, width: Ti.UI.FILL }),\r\n\tsearch: Ti.UI.Android.createSearchView(),\r\n\twidth: Ti.UI.FILL,\r\n\theight: Ti.UI.FILL,\r\n});\r\nwindow.add(tableView);\r\nwindow.open();\r\n{code}\r\n\r\n*Result:*\r\n{code}\r\n[ERROR] TiExceptionHandler: (main) [6143,6143] Attempt to invoke virtual method 'java.lang.Object org.appcelerator.kroll.KrollDict.get(java.lang.Object)' on a null object reference\r\n[ERROR] TiExceptionHandler:\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.view.TiUIView.composeContentDescription(TiUIView.java:2188)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.view.TiUIView.applyContentDescription(TiUIView.java:2162)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.view.TiUIView.applyAccessibilityProperties(TiUIView.java:2225)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.view.TiUIView.setNativeView(TiUIView.java:351)\r\n[ERROR] TiExceptionHandler: ti.modules.titanium.ui.widget.searchview.TiUISearchView.(TiUISearchView.java:44)\r\n[ERROR] TiExceptionHandler: ti.modules.titanium.ui.android.SearchViewProxy.createView(SearchViewProxy.java:40)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:490)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:462)\r\n[ERROR] TiExceptionHandler: ti.modules.titanium.ui.widget.TiUITableView.processProperties(TiUITableView.java:154)\r\n[ERROR] TiExceptionHandler: org.appcelerator.kroll.KrollProxy.setModelListener(KrollProxy.java:1296)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:505)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:462)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.realizeViews(TiViewProxy.java:512)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:496)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.getOrCreateView(TiViewProxy.java:462)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.proxy.TiViewProxy.add(TiViewProxy.java:601)\r\n[ERROR] TiExceptionHandler: ti.modules.titanium.ui.WindowProxy.windowCreated(WindowProxy.java:292)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiActivityWindows.windowCreated(TiActivityWindows.java:33)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiBaseActivity.windowCreated(TiBaseActivity.java:624)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiBaseActivity.onCreate(TiBaseActivity.java:767)\r\n[ERROR] TiExceptionHandler: org.appcelerator.titanium.TiActivity.onCreate(TiActivity.java:21)\r\n[ERROR] TiExceptionHandler: android.app.Activity.performCreate(Activity.java:7136)\r\n[ERROR] TiExceptionHandler: android.app.Activity.performCreate(Activity.java:7127)\r\n[ERROR] TiExceptionHandler: android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1271)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2893)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3048)\r\n[ERROR] TiExceptionHandler: android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:78)\r\n[ERROR] TiExceptionHandler: android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:108)\r\n[ERROR] TiExceptionHandler: android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:68)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread$H.handleMessage(ActivityThread.java:1808)\r\n[ERROR] TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:106)\r\n[ERROR] TiExceptionHandler: android.os.Looper.loop(Looper.java:193)\r\n[ERROR] TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:6669)\r\n[ERROR] TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] TiExceptionHandler: com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:493)\r\n{code}\r\n", "attachment": [], "flagged": false, "summary": "Android: TableView having SearchBar/SearchView will crash upon resume while \"Don't keep activities\" is enabled as of 7.2.1", "creator": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "closedSprints": [ { "id": 1128, "state": "closed", "name": "2019 Sprint 9", "startDate": "2019-04-14T19:05:00.000Z", "endDate": "2019-04-26T19:05:00.000Z", "completeDate": "2019-04-26T22:05:13.933Z", "originBoardId": 114 }, { "id": 1129, "state": "closed", "name": "2019 Sprint 10", "startDate": "2019-04-28T22:06:00.000Z", "endDate": "2019-05-17T22:06:00.000Z", "completeDate": "2019-05-20T16:48:42.522Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "447807", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (master): https://github.com/appcelerator/titanium_mobile/pull/10829", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-20T02:13:54.000+0000", "updated": "2019-04-20T02:13:54.000+0000" }, { "id": "447999", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "PR (8.0.x): https://github.com/appcelerator/titanium_mobile/pull/10868", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-26T22:32:31.000+0000", "updated": "2019-04-26T22:32:31.000+0000" }, { "id": "448009", "author": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "body": "FR passed PR merged.", "updateAuthor": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-26T23:19:19.000+0000", "updated": "2019-04-26T23:19:19.000+0000" }, { "id": "448034", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket, fix verified in SDK version {{8.0.1.v20190426162041}} and SDK version {{8.1.0.v20190426222341}}\r\n\r\nTest and other information can be found at: \r\nMaster : https://github.com/appcelerator/titanium_mobile/pull/10829\r\n8_0_X: https://github.com/appcelerator/titanium_mobile/pull/10868", "updateAuthor": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-04-29T13:42:11.000+0000", "updated": "2019-04-29T13:42:11.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }