{ "id": "168551", "key": "TIMOB-24872", "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": "19870", "description": "", "name": "Release 6.1.2", "archived": false, "released": true, "releaseDate": "2017-08-03" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-08-03T16:10:24.000+0000", "created": "2017-06-21T22:00:05.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "reprod" ], "versions": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "issuelinks": [ { "id": "55640", "type": { "id": "10011", "name": "Includes", "inward": "is included by", "outward": "includes" }, "inwardIssue": { "id": "168742", "key": "TIMOB-24926", "fields": { "summary": "Android: Prevent fireEvent when proxy has been released", "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 } } } }, { "id": "55266", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "83924", "key": "TIMOB-6692", "fields": { "summary": "Android: ImageView with just one dimension size specified and placed on a TableViewRow can easily lead to Out Of Memory exceptions", "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": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-08-03T16:10:31.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": "When Pressing the back button on an android application, the application crashes and displays the following error message:\r\n{code:java}\r\n[ERROR] : TiApplication: (main) [353,2796] Sending event: exception on thread: main msg:java.lang.RuntimeException: Unable to destroy activity {com.appc.test1/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.appcelerator.titanium.proxy.TiViewProxy.fireEvent(java.lang.String, java.lang.Object, boolean)' on a null object reference; Titanium 6.1.1,2017/06/19 14:33,undefined\r\n[ERROR] : TiApplication: java.lang.RuntimeException: Unable to destroy activity {com.appc.test1/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.appcelerator.titanium.proxy.TiViewProxy.fireEvent(java.lang.String, java.lang.Object, boolean)' on a null object reference\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4203)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4221)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.-wrap6(ActivityThread.java)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1538)\r\n[ERROR] : TiApplication: \tat android.os.Handler.dispatchMessage(Handler.java:102)\r\n[ERROR] : TiApplication: \tat android.os.Looper.loop(Looper.java:154)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.main(ActivityThread.java:6119)\r\n[ERROR] : TiApplication: \tat java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)\r\n[ERROR] : TiApplication: \tat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)\r\n[ERROR] : TiApplication: Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'boolean org.appcelerator.titanium.proxy.TiViewProxy.fireEvent(java.lang.String, java.lang.Object, boolean)' on a null object reference\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.view.TiUIView.fireEvent(TiUIView.java:1940)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.view.TiUIView.fireEvent(TiUIView.java:1931)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.widget.TiUIImageView.fireStop(TiUIImageView.java:509)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.widget.TiUIImageView.handleStop(TiUIImageView.java:664)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.widget.TiUIImageView.release(TiUIImageView.java:993)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.releaseViews(TiViewProxy.java:543)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.TableViewRowProxy.releaseViews(TableViewRowProxy.java:280)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.TableViewSectionProxy.releaseViews(TableViewSectionProxy.java:147)\r\n[ERROR] : TiApplication: \tat ti.modules.titanium.ui.TableViewProxy.releaseViews(TableViewProxy.java:133)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiViewProxy.releaseViews(TiViewProxy.java:540)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.proxy.TiWindowProxy.closeFromActivity(TiWindowProxy.java:191)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiBaseActivity.onDestroy(TiBaseActivity.java:1579)\r\n[ERROR] : TiApplication: \tat org.appcelerator.titanium.TiActivity.onDestroy(TiActivity.java:32)\r\n[ERROR] : TiApplication: \tat android.app.Activity.performDestroy(Activity.java:6881)\r\n[ERROR] : TiApplication: \tat android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1153)\r\n[ERROR] : TiApplication: \tat android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4190)\r\n[ERROR] : TiApplication: \t... 9 more\r\n{code}\r\n\r\n*Steps to reproduce*\r\n1. Create a new app.\r\n2. Replace the contents of the app's app.js with the code below.\r\n3. Run the app.\r\n\r\n{code:java}\r\nTitanium.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({ \r\n title:'Test',\r\n backgroundColor:'gray',\r\n\texitOnClose: true\r\n});\r\n \r\nvar rows = [];\r\nfor (var i = 0; i < 30; i++) {\r\n\tvar row = Ti.UI.createTableViewRow({height: \"40dp\"});\r\n\tvar iv = Ti.UI.createImageView({image: \"/KS_nav_ui.png\", height: \"43\"});\r\n\trow.add(iv);\r\n\trows.push(row);\r\n}\r\n \r\nvar tv = Ti.UI.createTableView({data: rows});\r\nwin.add(tv);\r\nwin.open();\r\n{code}\r\n\r\n\r\n\r\n", "attachment": [ { "id": "62721", "filename": "KS_nav_ui.png", "author": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-06-21T21:39:53.000+0000", "size": 1158, "mimeType": "image/png" } ], "flagged": false, "summary": "[Android] Unable to destroy activity when exiting application has a TableView", "creator": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "smohammed", "key": "smohammed", "displayName": "Samir Mohammed", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "SDK Version: 6.1.1.v20170619143158\r\nAppcelerator Command-Line Interface, version 6.2.2\r\nGoogle Nexus 6P (7.1.1)\r\nOperating System Name: Mac OS X El Capitan\r\nOperating System Version: 10.11.6\r\nNode.js Version: 6.10.1\r\nXcode: 8.2\r\nAppcelerator Studio: 4.9.0.201705251638", "closedSprints": [ { "id": 933, "state": "closed", "name": "2017 Sprint 16 SDK", "startDate": "2017-07-30T16:17:10.306Z", "endDate": "2017-08-13T16:17:00.000Z", "completeDate": "2017-08-13T23:06:34.398Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "423501", "author": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "body": "I've the same issue using Ti SDK 6.1.1.GA", "updateAuthor": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-05T15:19:09.000+0000", "updated": "2017-07-05T15:19:09.000+0000" }, { "id": "424026", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "I am able to reproduce this issue with the following environment;\r\nPixel (7.1)\r\nStudio 4.9.0.201705302345\r\nTi SDK 6.1.1 GA\r\nAppc NPM 4.2.9\r\nAppc CLI 6.2.2\r\nTi CLI 5.0.14\r\nAlloy 1.9.11\r\nXcode 8.2 (8C38)\r\nNode v4.8.2\r\nJava 1.8.0_131", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-12T20:31:08.000+0000", "updated": "2017-07-12T20:31:08.000+0000" }, { "id": "424064", "author": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "updateAuthor": { "name": "astrovicapps", "key": "astrovicapps", "displayName": "Vittorio Sorbera", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-13T08:58:07.000+0000", "updated": "2017-07-13T08:58:07.000+0000" }, { "id": "424434", "author": { "name": "AppDev", "key": "appdev", "displayName": "AppDev", "active": true, "timeZone": "Europe/Berlin" }, "body": "This issue is affecting us as well on Ti SDK 6.1.1.GA only on a window that contains a TableView. Other windows seem to be fine still. The same code works on Ti SDK 5.5.1.GA.\r\n\r\nIs there any workaround while we wait for a fix and the following release of Ti SDK?", "updateAuthor": { "name": "AppDev", "key": "appdev", "displayName": "AppDev", "active": true, "timeZone": "Europe/Berlin" }, "created": "2017-07-20T07:47:57.000+0000", "updated": "2017-07-20T07:50:06.000+0000" }, { "id": "425407", "author": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This issue has been fixed in {{6.1.2}} by TIMOB-24926", "updateAuthor": { "name": "gmathews", "key": "gmathews", "displayName": "Gary Mathews", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-08-03T15:43:21.000+0000", "updated": "2017-08-03T15:43:21.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }