{ "id": "175959", "key": "TIMOB-28315", "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": "21177", "name": "Release 9.3.1", "archived": false, "released": true, "releaseDate": "2021-01-26" } ], "resolution": null, "resolutiondate": null, "created": "2021-01-15T19:42:17.000+0000", "priority": { "name": "None", "id": "6" }, "labels": [ "regression" ], "versions": [ { "id": "21052", "description": "", "name": "Release 9.3.0", "archived": false, "released": true, "releaseDate": "2020-12-14" }, { "id": "21177", "name": "Release 9.3.1", "archived": false, "released": true, "releaseDate": "2021-01-26" }, { "id": "21050", "name": "Release 10.0.0", "archived": false, "released": true, "releaseDate": "2021-05-17" } ], "issuelinks": [], "assignee": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2021-02-17T03:50:01.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": "This is a regression from 9.3.0.GA onwards. Not seen with SDK 9.2.2.GA\r\n\r\nh5.Steps to reproduce:\r\n1. Use the code below in your app.js:\r\n{code}\r\nconst win = Ti.UI.createWindow({ backgroundColor: 'gray' });\r\n\r\nconst rows = [];\r\nfor (let i = 0; i < 100; i++) {\r\n rows.push({ title: `Row #${i}` });\r\n}\r\n\r\nconst tableView = Ti.UI.createTableView({ data: rows });\r\n\r\nwin.add(tableView);\r\nwin.open();\r\n{code}\r\n2. Build for android device & let the app launch.\r\n3. Press back button to close the app.\r\n\r\nh5.Actual results:\r\n1. We see ACA crash logs showing a crash. No error is seen in the console:\r\n{code}\r\n[DEBUG] : TiBaseActivity: (main) [25579,25948] onBackPressed: exit\r\n[DEBUG] : AndroidRuntime: Shutting down VM\r\n[DEBUG] : ACA: (main) [757,26705] ACA crash.report: {\r\n[DEBUG] : ACA: \"meta\": {\r\n[DEBUG] : ACA: \"handled\": false\r\n[DEBUG] : ACA: },\r\n[DEBUG] : ACA: \"message\": \"Unable to destroy activity {com.app.timob28290\\/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference\",\r\n[DEBUG] : ACA: \"stack\": [\r\n[DEBUG] : ACA: \"Unable to destroy activity {com.app.timob28290\\/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference\\nUnable to destroy activity {com.app.timob28290\\/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'android.content.res.Resources android.content.Context.getResources()' on a null object reference\",\r\n[DEBUG] : ACA: \"\\n android.view.ViewConfiguration.get(ViewConfiguration.java:481)\\n android.view.View.(View.java:5059)\\n android.view.View.(View.java:5201)\\n android.view.ViewGroup.(ViewGroup.java:675)\\n android.view.ViewGroup.(ViewGroup.java:671)\\n android.view.ViewGroup.(ViewGroup.java:667)\\n org.appcelerator.titanium.view.TiCompositeLayout.(TiCompositeLayout.java:170)\\n org.appcelerator.titanium.view.TiCompositeLayout.(TiCompositeLayout.java:157)\\n ti.modules.titanium.ui.widget.TiView.(TiView.java:32)\\n ti.modules.titanium.ui.TableViewRowProxy$RowView.(TableViewRowProxy.java:453)\\n ti.modules.titanium.ui.TableViewRowProxy.createView(TableViewRowProxy.java:110)\\n org.appcelerator.titanium.proxy.TiViewProxy.handleGetView(TiViewProxy.java:474)\\n ti.modules.titanium.ui.TableViewRowProxy.releaseViews(TableViewRowProxy.java:419)\\n ti.modules.titanium.ui.widget.tableview.TiTableView.release(TiTableView.java:257)\\n ti.modules.titanium.ui.widget.TiUITableView.release(TiUITableView.java:248)\\n org.appcelerator.titanium.proxy.TiViewProxy.releaseViews(TiViewProxy.java:521)\\n ti.modules.titanium.ui.TableViewProxy.releaseViews(TableViewProxy.java:566)\\n org.appcelerator.titanium.proxy.TiViewProxy.releaseViews(TiViewProxy.java:517)\\n org.appcelerator.titanium.TiBaseActivity.onDestroy(TiBaseActivity.java:1530)\\n org.appcelerator.titanium.TiActivity.onDestroy(TiActivity.java:91)\\n android.app.Activity.performDestroy(Activity.java:8048)\\n android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1341)\\n android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4926)\\n android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4970)\\n android.app.servertransaction.DestroyActivityItem.execute(DestroyActivityItem.java:44)\\n android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176)\\n android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97)\\n android.app.ActivityThread$H.handleMessage(ActivityThread.java:2016)\\n android.os.Handler.dispatchMessage(Handler.java:107)\\n android.os.Looper.loop(Looper.java:214)\\n android.app.ActivityThread.main(ActivityThread.java:7356)\\n java.lang.reflect.Method.invoke(Native Method)\\n com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:492)\\n com.android.internal.os.ZygoteInit.main(ZygoteInit.java:930)\"\r\n[DEBUG] : ACA: ],\r\n[DEBUG] : ACA: \"aca_version\": \"3.0.0\"\r\n[DEBUG] : ACA: }\r\n[INFO] : APSAnalyticsStore: crash.report\r\n{code}\r\n2. Now from the app tray try to launch the app again.\r\n3. The app will launch & will be stuck on the splash screen.\r\n\r\nh5.Expected results:\r\n1. No crash happens when app is closed via the back button & launching the app again via app tray launches the app fine.", "attachment": [], "flagged": false, "summary": "Android: App with tableview crashes on back button press to close the app", "creator": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lchoudhary", "key": "lchoudhary", "displayName": "Lokesh Choudhary", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Studio Ver: 6.0.0.202005141803\r\nSDK Ver: Local from PR\r\nOS Ver: 10.15.5\r\nXcode Ver: Xcode 12.2\r\nAppc NPM: 5.0.0\r\nAppc CLI: 8.1.1\r\nDaemon Ver: 3.2.0\r\nTi CLI Ver: 5.2.5\r\nAlloy Ver: 1.15.2\r\nNode Ver: 12.13.1\r\nNPM Ver: 6.14.7\r\nJava Ver: 11.0.6\r\nAndroid Devices: ⇨ google Pixel (Android 10)", "comment": { "comments": [ { "id": "458013", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "master: https://github.com/appcelerator/titanium_mobile/pull/12386", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-01-15T19:49:01.000+0000", "updated": "2021-01-15T19:49:01.000+0000" }, { "id": "458255", "author": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "body": "We're experiencing many different problems with the new TableView on Android - so many that we're going back to 9.2.2. Wish we had time to document them all but you've got a 5-alarm fire on TableView & ListView.", "updateAuthor": { "name": "jfalcone", "key": "jfalcone", "displayName": "Joe Falcone", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2021-02-17T03:50:01.000+0000", "updated": "2021-02-17T03:50:01.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }