Closed AgentSteel closed 3 years ago
can you check if the issue still occurs in the latest version (v3.4)
Just installed 3.4, so far no crash
Also (minor bug!) a couple of strings seem not to be in french, but in polish.
This string for instance :
starten,Toque para iniciar la medición,Poklepáním spusťte měření,Tocca per avviere la misura,"Dotknij, aby zmierzyć",Appui simple pour démarrer la mesure
It's because the polish string contains a comma (after the word "Dotknij"), so the rest is truncated
okay, the issue is with the comma separated values, if you can fix and create a PR that would be great, otherwise I'll try to do it later
pull request https://github.com/fbiego/DT78-App-Android/pull/19
I have switched it to tab-separated values
Running latest v3.3 since it was released, all was working fine until today
Now, the app systematically crashes after a few seconds when started. If I stop the service within the app, it does not crash. Only when the service is enabled.
edit: same crash after uninstalling/reinstalling the app
here is the log when the crash occurs :
07-21 10:56:34.400 9732 9732 D AndroidRuntime: Shutting down VM 07-21 10:56:34.401 9732 9732 E AndroidRuntime: FATAL EXCEPTION: main 07-21 10:56:34.401 9732 9732 E AndroidRuntime: Process: com.fbiego.dt78, PID: 9732 07-21 10:56:34.401 9732 9732 E AndroidRuntime: java.lang.NullPointerException 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at com.fbiego.dt78.app.ForegroundService.onDataReceived(ForegroundService.kt:1310) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at com.fbiego.dt78.app.DataReceiver.getData(DataReceiver.kt:14) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at com.fbiego.dt78.ble.LEManager$callback$1$initialize$1.onDataReceived(LEManager.kt:411) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at no.nordicsemi.android.ble.ValueChangedCallback.lambda$notifyValueChanged$0(ValueChangedCallback.java:126) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at no.nordicsemi.android.ble.-$$Lambda$ValueChangedCallback$4rcq0bbOhcTVqpLmftoy8pUEJ-Q.run(lambda) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:751) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6123) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) 07-21 10:56:34.401 9732 9732 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757) 07-21 10:56:34.405 1105 2639 W ActivityManager: Force finishing activity com.fbiego.dt78/.MainActivity