{ "id": "172908", "key": "AC-6115", "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": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2019-02-12T22:05:52.000+0000", "created": "2019-01-23T21:06:38.000+0000", "labels": [ "Android,", "Appcelerator,", "Titanium" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2019-02-20T16:41:44.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": [], "description": "- Android app on restart giving blank black screen and also gets freeze any time. \r\n- Phone hang when try to open app from background\r\n\r\nAfter reading all other related bugs I have tried using Appcelerator CLI 7.0.9 but its just badly messed up with my UI and functionality of all screens so I have decided to revert it back to 7.0.6\r\n\r\nGetting following errors in my console\r\n\r\n[ERROR] : TiExceptionHandler: (main) [15128,88247] Not allowed to start service Intent { cmp=ca.wearecircus.bcc/com.radiusnetworks.ibeacon.IBeaconIntentProcessor (has extras) }: app is in background uid UidRecord{fe9fde7 u0a474 LAST bg:+1m3s223ms idle procs:1 seq(0,0,0)}\r\n[ERROR] : TiExceptionHandler:\r\n[ERROR] : TiExceptionHandler: android.app.ContextImpl.startServiceCommon(ContextImpl.java:1538)\r\n[ERROR] : TiExceptionHandler: android.app.ContextImpl.startService(ContextImpl.java:1484)\r\n[ERROR] : TiExceptionHandler: android.content.ContextWrapper.startService(ContextWrapper.java:663)\r\n[ERROR] : TiExceptionHandler: com.radiusnetworks.ibeacon.service.Callback.call(Callback.java:63)\r\n[ERROR] : TiExceptionHandler: com.radiusnetworks.ibeacon.service.IBeaconService.processRangeData(IBeaconService.java:533)\r\n[ERROR] : TiExceptionHandler: com.radiusnetworks.ibeacon.service.IBeaconService.finishScanCycle(IBeaconService.java:451)\r\n[ERROR] : TiExceptionHandler: com.radiusnetworks.ibeacon.service.IBeaconService.scheduleScanStop(IBeaconService.java:436)\r\n[ERROR] : TiExceptionHandler: com.radiusnetworks.ibeacon.service.IBeaconService.access$100(IBeaconService.java:62)\r\n[ERROR] : TiExceptionHandler: com.radiusnetworks.ibeacon.service.IBeaconService$2.run(IBeaconService.java:432)\r\n[ERROR] : TiExceptionHandler: android.os.Handler.handleCallback(Handler.java:789)\r\n[ERROR] : TiExceptionHandler: android.os.Handler.dispatchMessage(Handler.java:98)\r\n[ERROR] : TiExceptionHandler: android.os.Looper.loop(Looper.java:164)\r\n[ERROR] : TiExceptionHandler: android.app.ActivityThread.main(ActivityThread.java:6944)\r\n[ERROR] : TiExceptionHandler: java.lang.reflect.Method.invoke(Native Method)\r\n[ERROR] : TiExceptionHandler: com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)\r\n[ERROR] : TiExceptionHandler: com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)", "attachment": [], "flagged": false, "summary": "Android App Freezing and stuck app screen", "creator": { "name": "ppancholi", "key": "ppancholi", "displayName": "Pankti Pancholi", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "ppancholi", "key": "ppancholi", "displayName": "Pankti Pancholi", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Operating System\r\n Name = Mac OS X\r\n Version = 10.13.6\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8.0GB\r\n\r\nNode.js\r\n Node.js Version = 8.12.0\r\n npm Version = 6.4.1\r\n\r\nAppcelerator CLI\r\n Installer = 4.2.13\r\n Core Package = 7.0.6\r\n\r\nTitanium CLI\r\n CLI Version = 5.1.1\r\n node-appc Version = 0.2.44\r\n\r\nTitanium SDKs\r\n 7.5.0.GA\r\n Version = 7.5.0\r\n Install Location = /Users/ppancholi/Library/Application Support/Titanium/mobilesdk/osx/7.5.0.GA\r\n Platforms = iphone, android\r\n git Hash = 2e5a7423d0\r\n git Timestamp = 11/15/2018 21:52\r\n node-appc Version = 0.2.47", "comment": { "comments": [ { "id": "445601", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "This looks like an issue with a module using \"beacon\". Can you tell me which module this is please?\r\n\r\nFrom the stacktrace, I can tell that this is an issue with that beacon module trying to start a \"service\" while the app is backgrounded. As of Android 8.0, Google made a breaking change where you can no longer start a background service like this. It has to be made a \"foreground\" service instead. It sounds like the module's code needs to be changed.", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-23T22:52:53.000+0000", "updated": "2019-01-23T22:52:53.000+0000" }, { "id": "445638", "author": { "name": "ppancholi", "key": "ppancholi", "displayName": "Pankti Pancholi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I am using liferay beacons\r\n- \r\n \r\n \r\n \r\n\r\nThis way, I have mentioned it in my manifest, I mean in Tiapp.xml\r\n\r\n", "updateAuthor": { "name": "ppancholi", "key": "ppancholi", "displayName": "Pankti Pancholi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-24T19:32:45.000+0000", "updated": "2019-01-24T20:29:48.000+0000" }, { "id": "445639", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Edit:\r\n_(Sorry. I posted to the wrong ticket.)_", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-24T19:51:36.000+0000", "updated": "2019-01-24T19:52:28.000+0000" }, { "id": "445641", "author": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I'm guessing you're using the following module?\r\nhttps://github.com/jamesfalkner/liferay-android-beacons\r\n\r\nIt's using a \"radius.jar\" which is documented as a 2014 release. This jar library contains the \"com.radiusnetwork.ibeacon\" classes which is causing this exception.\r\nhttps://github.com/jamesfalkner/liferay-android-beacons/tree/master/lib\r\n\r\nThe issue is in the \"radius.jar\". This can't be fixed in the module's code or your code. It's an issue with that old library. And the reason it is crashing is because Google made a breaking-change in Android 8.0 where you're no longer allowed to start a service while the app is in the background... unless you make it a \"foreground\" service. But you can only make it a \"foreground\" service via a code change because it involves displaying a notification in the top status bar.\r\nhttps://developer.android.com/about/versions/oreo/background#services\r\n\r\nSo, this means contacting the module developer to see about getting a newer JAR, assuming the original JAR developer has fixed this issue. That's really the only solution.\r\n\r\nWell, the only other alternative is to \"target\" Android 7.1 when building your app, but Google Play no longer accepts apps which target versions older than 8.0. So, this is only a viable solution when not deploying via Google Play.\r\n", "updateAuthor": { "name": "jquick", "key": "jquick", "displayName": "Joshua Quick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-24T20:11:27.000+0000", "updated": "2019-01-24T20:11:27.000+0000" }, { "id": "445664", "author": { "name": "ppancholi", "key": "ppancholi", "displayName": "Pankti Pancholi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Please check this new error again, We are already running app in Android 8.0.0 which is live on playstore, It is working fine for everyone, I feel it has something to do with some titanium version and java.lang.thread.run error as I started getting it all of sudden in testing version of our app. It is not happening with live app on app store and its not showing me error every-time from one module, Some time beacon, some time other modules\r\n\r\n[ERROR] : APSAnalyticsRunnable: Error posting events: method POST must have a request body.\r\n[ERROR] : APSAnalyticsRunnable: java.lang.IllegalArgumentException: method POST must have a request body.\r\n[ERROR] : APSAnalyticsRunnable: \tat com.android.okhttp.Request$Builder.method(Request.java:259)\r\n[ERROR] : APSAnalyticsRunnable: \tat com.android.okhttp.internal.huc.JavaApiConverter.createOkResponseForCacheGet(JavaApiConverter.java:212)\r\n[ERROR] : APSAnalyticsRunnable: \tat com.android.okhttp.internal.huc.CacheAdapter.get(CacheAdapter.java:51)\r\n[ERROR] : APSAnalyticsRunnable: \tat com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:326)\r\n[ERROR] : APSAnalyticsRunnable: \tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:489)\r\n[ERROR] : APSAnalyticsRunnable: \tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:131)\r\n[ERROR] : APSAnalyticsRunnable: \tat com.android.okhttp.internal.huc.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:262)\r\n[ERROR] : APSAnalyticsRunnable: \tat com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)\r\n[ERROR] : APSAnalyticsRunnable: \tat com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getOutputStream(Unknown Source:0)\r\n[ERROR] : APSAnalyticsRunnable: \tat com.appcelerator.aps.APSAnalyticsRunnable.run(APSAnalyticsRunnable.java:164)\r\n[ERROR] : APSAnalyticsRunnable: \tat java.lang.Thread.run(Thread.java:764)", "updateAuthor": { "name": "ppancholi", "key": "ppancholi", "displayName": "Pankti Pancholi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-01-25T20:28:47.000+0000", "updated": "2019-01-25T20:28:47.000+0000" }, { "id": "445665", "author": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "body": "About the module: \r\nThe RadiusNetwork library has been removed by the author: https://github.com/RadiusNetworks/android-ibeacon-service \r\nThe replacement library is https://github.com/AltBeacon/android-beacon-library but has to have a new module. So I think you are stuck with the old radius library or create a new one. And as mentioned in the ti.goosh ticket: https://github.com/AltBeacon/android-beacon-library/issues/673 [~jquick] is right: it is about the background/foreground stuff.", "updateAuthor": { "name": "michael", "key": "michael", "displayName": "Michael Gangolf", "active": true, "timeZone": "Europe/Berlin" }, "created": "2019-01-25T21:12:57.000+0000", "updated": "2019-01-25T21:12:57.000+0000" }, { "id": "445955", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello [~ppancholi], Can you please follow up here? Did you follow Joshua's guide to follow up with the module developer to see about getting a newer JAR? Share with us their response regarding this issue. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2019-02-08T22:11:54.000+0000", "updated": "2019-02-08T22:11:54.000+0000" }, { "id": "446190", "author": { "name": "ppancholi", "key": "ppancholi", "displayName": "Pankti Pancholi", "active": true, "timeZone": "America/Los_Angeles" }, "body": "No, I did not get newer jar yet as it is not available , the library has been removed by the developer", "updateAuthor": { "name": "ppancholi", "key": "ppancholi", "displayName": "Pankti Pancholi", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2019-02-20T16:41:17.000+0000", "updated": "2019-02-20T16:41:44.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }