-
Notifications
You must be signed in to change notification settings - Fork 836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android 5 only: Crash on exit of app while BT off #105
Comments
Fixed in release 2.1.1 |
I think there is one instance of this issue still to fix, Line number 173 which causes crash sometimes, find the trace below java.lang.IllegalStateException: BT Adapter is not turned ON |
Nice catch! That was a copy/paste error. |
Wait, so we need to make another release of android beacon library now? I'm going to wait a week after it comes out before putting it into all the other libraries this time. Sent from Matt's least favorite form of communication.
|
I am still experiencing the same issues in the AltBeacon 2.9
It seems like this issue only happens on HTC devices, as Crashlytics is not reporting crashes on any other devices except HTC. |
Thanks for this report. Catching this exception seems like a reasonable fix. |
Please see #414 for further discussion on a related issue with HTC devices. This issue had a different root cause and is closed. |
For Android 5 devices, while Bluetooth is turned off, app crashes immediately after pressing the home button. This is replicable in the https://github.com/AltBeacon/android-beacon-library-reference.
E/AndroidRuntime﹕ FATAL EXCEPTION: main
Process: com.radiusnetworks.testapp, PID: 18116
java.lang.IllegalStateException: BT Adapter is not turned ON
at android.bluetooth.le.BluetoothLeUtils.checkAdapterStateOn(BluetoothLeUtils.java:136)
at android.bluetooth.le.BluetoothLeScanner.startScan(BluetoothLeScanner.java:106)
at android.bluetooth.le.BluetoothLeScanner.startScan(BluetoothLeScanner.java:101)
at org.altbeacon.beacon.service.scanner.CycledLeScannerForLollipop.deferScanIfNeeded(CycledLeScannerForLollipop.java:98)
at org.altbeacon.beacon.service.scanner.CycledLeScanner.scanLeDevice(CycledLeScanner.java:163)
at org.altbeacon.beacon.service.scanner.CycledLeScanner.finishScanCycle(CycledLeScanner.java:258)
at org.altbeacon.beacon.service.scanner.CycledLeScanner.scheduleScanCycleStop(CycledLeScanner.java:231)
at org.altbeacon.beacon.service.scanner.CycledLeScanner$1.run(CycledLeScanner.java:227)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:135)
at android.app.ActivityThread.main(ActivityThread.java:5221)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:899)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
The text was updated successfully, but these errors were encountered: