{ "id": "140212", "key": "AC-918", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "8", "description": "", "name": "Needs more info" }, "resolutiondate": "2015-09-29T01:03:53.000+0000", "created": "2014-11-23T09:13:26.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:37:13.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "I have no idea how this happened. Got this in the Developer Console's Crashes and ANRs from one of our testers. The only way this can happen is if reference was removed in a different thread while in the getCurrent loop.\r\n\r\n{quote}\r\njava.lang.RuntimeException: Unable to pause activity \\{com.pingapp.app/org.appcelerator.titanium.TiActivity\\}: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0\r\nat android.app.ActivityThread.performPauseActivity(ActivityThread.java:3196)\r\nat android.app.ActivityThread.performPauseActivity(ActivityThread.java:3151)\r\nat android.app.ActivityThread.handlePauseActivity(ActivityThread.java:3129)\r\nat android.app.ActivityThread.access$900(ActivityThread.java:159)\r\nat android.app.ActivityThread$H.handleMessage(ActivityThread.java:1333)\r\nat android.os.Handler.dispatchMessage(Handler.java:99)\r\nat android.os.Looper.loop(Looper.java:176)\r\nat android.app.ActivityThread.main(ActivityThread.java:5419)\r\nat java.lang.reflect.Method.invokeNative(Native Method)\r\nat java.lang.reflect.Method.invoke(Method.java:525)\r\nat com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1046)\r\nat com.android.internal.os.ZygoteInit.main(ZygoteInit.java:862)\r\nat dalvik.system.NativeStart.main(Native Method)\r\n\r\nCaused by: java.lang.IndexOutOfBoundsException: Invalid index 0, size is 0\r\nat java.util.ArrayList.throwIndexOutOfBoundsException(ArrayList.java:255)\r\nat java.util.ArrayList.remove(ArrayList.java:403)\r\nat org.appcelerator.titanium.TiApplication.getCurrentActivity(TiApplication.java:297)\r\nat org.appcelerator.titanium.TiApplication.setCurrentActivity(TiApplication.java:569)\r\nat org.appcelerator.titanium.TiBaseActivity.onPause(TiBaseActivity.java:1060)\r\nat org.appcelerator.titanium.TiActivity.onPause(TiActivity.java:48)\r\nat android.app.Activity.performPause(Activity.java:5474)\r\nat android.app.Instrumentation.callActivityOnPause(Instrumentation.java:1250)\r\nat android.app.ActivityThread.performPauseActivity(ActivityThread.java:3182)\r\n... 12 more\r\n{quote}", "attachment": [], "flagged": false, "summary": "IndexOutOfBoundsException in TiApplication.getCurrentActivity", "creator": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "subtasks": [], "reporter": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "environment": "Android 4.31 / Galaxy S3\r\nTitanium 3.4.1", "comment": { "comments": [ { "id": "333350", "author": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "body": "Please provide a test case to reproduce your problem.", "updateAuthor": { "name": "sliang", "key": "sliang", "displayName": "Shuo Liang", "active": true, "timeZone": "Asia/Harbin" }, "created": "2014-11-24T00:56:37.000+0000", "updated": "2014-11-24T00:56:37.000+0000" }, { "id": "333361", "author": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "As I wrote, I got this on the google developer console from one of the testers. I have no idea how this happened or how to reproduce it, but it definitely happened.", "updateAuthor": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2014-11-24T07:37:39.000+0000", "updated": "2014-11-24T07:37:39.000+0000" }, { "id": "365211", "author": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "body": "Why is this marked as resolved? It is NOT resolved. This is a real case of a real use.\r\nBetter mark it as \"we don't care\"", "updateAuthor": { "name": "buddyguards", "key": "buddyguards", "displayName": "grebulon", "active": true, "timeZone": "Asia/Jerusalem" }, "created": "2015-09-29T06:41:09.000+0000", "updated": "2015-09-29T06:41:09.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }