{ "id": "168817", "key": "TIMOB-24952", "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": "16980", "description": "New V8", "name": "Release 6.0.0", "archived": false, "released": true, "releaseDate": "2016-11-15" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2019-05-17T20:41:36.000+0000", "created": "2017-07-05T08:37:07.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [ "android", "core", "regression" ], "versions": [], "issuelinks": [], "assignee": null, "updated": "2019-05-17T20:41:36.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": [], "description": "I have attached a screenshot of the crash report log we are seeing from Google. Currently receiving thousands of crashes, pretty much entirely isolated to various Samsung Galaxy devices running Android 7.x\r\n\r\nThis is currently out in production and we are starting to see a trend as more customers are adopting Android N. \r\n\r\nIs this issue known? Would upgrading the SDK solve this potentially (i.e. fixes for this problem)? Is it a case of bumping the Android build tools?\r\n\r\n", "attachment": [ { "id": "62830", "filename": "Screen Shot 2017-07-05 at 09.30.26.png", "author": { "name": "lmcjt", "key": "lmcjt", "displayName": "Luke Taylor", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-05T08:30:52.000+0000", "size": 124730, "mimeType": "image/png" } ], "flagged": false, "summary": "Null Pointer Exceptions caused on Samsung Galaxy devices", "creator": { "name": "lmcjt", "key": "lmcjt", "displayName": "Luke Taylor", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "lmcjt", "key": "lmcjt", "displayName": "Luke Taylor", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Ti SDK 5.2.0.GA\r\nAppcelerator CLI 5.2.0\r\nNode 4.2.6\r\nAndroid SDK Platform-tools 23.1\r\n", "comment": { "comments": [ { "id": "423475", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "body": "As part of looking at fixes to this issue - we are also encountering this issue: AC-5071 - it would be much appreciated if you could review and respond to these issues as soon as possible.", "updateAuthor": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-05T09:08:02.000+0000", "updated": "2017-07-05T09:08:02.000+0000" }, { "id": "423477", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "body": "As an additional note - we're seeing notes that indicate this could be related to backgrounding and resuming the app over extended periods of time - are there any bugs / issues in this area that you're aware of, that could be causing this?", "updateAuthor": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-05T09:42:54.000+0000", "updated": "2017-07-05T09:42:54.000+0000" }, { "id": "423481", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "body": "We have been able to track down the method of reproduction for this, and can confirm it is related to backgrounding the app, and resuming it at a later point (after other, more power hungry apps have been opened up). The (modified) error log we see shows this:\r\n\r\n{code:java}\r\n07-05 12:30:30.123 26536-26536/? E/AndroidRuntime: FATAL EXCEPTION: main\r\n Process: com.app.domain, PID: 26536\r\n java.lang.RuntimeException: Unable to destroy activity {com.app.domain/org.appcelerator.titanium.TiActivity}: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.OrientationEventListener.disable()' on a null object reference\r\n at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4595)\r\n at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4618)\r\n at android.app.ActivityThread.-wrap7(ActivityThread.java)\r\n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696)\r\n at android.os.Handler.dispatchMessage(Handler.java:102)\r\n at android.os.Looper.loop(Looper.java:154)\r\n at android.app.ActivityThread.main(ActivityThread.java:6692)\r\n at java.lang.reflect.Method.invoke(Native Method)\r\n at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468)\r\n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358)\r\n Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void android.view.OrientationEventListener.disable()' on a null object reference\r\n at org.appcelerator.titanium.TiBaseActivity.onDestroy(TiBaseActivity.java:1477)\r\n at org.appcelerator.titanium.TiActivity.onDestroy(TiActivity.java:29)\r\n at android.app.Activity.performDestroy(Activity.java:7165)\r\n at android.app.Instrumentation.callActivityOnDestroy(Instrumentation.java:1161)\r\n at android.app.ActivityThread.performDestroyActivity(ActivityThread.java:4582)\r\n at android.app.ActivityThread.handleDestroyActivity(ActivityThread.java:4618) \r\n at android.app.ActivityThread.-wrap7(ActivityThread.java) \r\n at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1696) \r\n at android.os.Handler.dispatchMessage(Handler.java:102) \r\n at android.os.Looper.loop(Looper.java:154) \r\n at android.app.ActivityThread.main(ActivityThread.java:6692) \r\n at java.lang.reflect.Method.invoke(Native Method) \r\n at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1468) \r\n at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1358) \r\n{code}\r\n", "updateAuthor": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-05T11:48:24.000+0000", "updated": "2017-07-05T11:50:02.000+0000" }, { "id": "423770", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello, Can you send a sample code or app that reproduce the issue? we will test for Android N. Also provide details steps for successful regeneration on the issue. ", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2017-07-10T15:02:29.000+0000", "updated": "2017-07-10T15:02:46.000+0000" }, { "id": "423772", "author": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "body": "A sample app shouldn't be needed for this, as long as you have code that:\r\n\r\n- opens up the app, \r\n- displays an image and;\r\n- sets an event listener\r\n\r\n...this should be easily reproducible on a Samsung Android 7 device, running SDK 5.2.0 with the above Android SDK tools.\r\n\r\nOpen the app up - minimise it, then open up and interact with (roughly) 6-8 different high-processing power apps (e.g. 6-8 different 3D games that will consume device memory and processing threads). After this - return to the Ti App by tapping on the launcher icon - *not* by navigating back to it from the open app stack. The app should crash almost immediately, and then reboot.", "updateAuthor": { "name": "plancaster", "key": "plancaster", "displayName": "Peter Lancaster", "active": true, "timeZone": "Europe/London" }, "created": "2017-07-10T15:12:21.000+0000", "updated": "2017-07-10T15:12:21.000+0000" }, { "id": "424111", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "[~plancaster] We don't need a sample app. We are looking at this now.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-07-13T21:02:43.000+0000", "updated": "2017-07-13T21:02:43.000+0000" }, { "id": "448489", "author": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing per developer comments.", "updateAuthor": { "name": "ahutton", "key": "ahutton", "displayName": "Alan Hutton", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-05-17T20:41:36.000+0000", "updated": "2019-05-17T20:41:36.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }