Closed HydrelioxGitHub closed 1 year ago
Simply go to Settings > Logging > Logs There the crashlog should be displayed. If not, please reproduce the crash again and then open the logging section again.
Same issue
02-02 07:36:28.869 15436 15436 E AndroidRuntime: FATAL EXCEPTION: main 02-02 07:36:28.869 15436 15436 E AndroidRuntime: Process: xyz.zedler.patrick.grocy, PID: 15436 02-02 07:36:28.869 15436 15436 E AndroidRuntime: java.lang.NumberFormatException: For input string: "0,01" 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at java.lang.Double.parseDouble(Double.java:543) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.google.gson.stream.JsonReader.nextDouble(JsonReader.java:134) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.google.gson.Gson$1.read(Gson.java:14) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:3) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:1) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:46) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:3) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:33) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.google.gson.Gson.fromJson(Gson.java:33) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at xyz.zedler.patrick.grocy.helper.DownloadHelper$40$$ExternalSyntheticLambda0.onResponse(R8$$SyntheticClass:22) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at xyz.zedler.patrick.grocy.fragment.LogFragment$$ExternalSyntheticLambda3.onResponse(R8$$SyntheticClass:1) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at xyz.zedler.patrick.grocy.web.CustomStringRequest$$ExternalSyntheticLambda0.onResponse(R8$$SyntheticClass:25) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:11) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:32) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:942) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7872) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 02-02 07:36:28.869 15436 15436 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) 02-02 07:36:33.468 15561 15561 E r.patrick.grocy: Not starting debugger since process cannot load the jdwp agent. 02-02 07:44:03.572 17368 17368 E r.patrick.grocy: Not starting debugger since process cannot load the jdwp agent. 02-02 07:44:19.071 17368 17368 E AndroidRuntime: FATAL EXCEPTION: main 02-02 07:44:19.071 17368 17368 E AndroidRuntime: Process: xyz.zedler.patrick.grocy, PID: 17368 02-02 07:44:19.071 17368 17368 E AndroidRuntime: java.lang.NumberFormatException: For input string: "0,01" 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at java.lang.Double.parseDouble(Double.java:543) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.google.gson.stream.JsonReader.nextDouble(JsonReader.java:134) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.google.gson.Gson$1.read(Gson.java:14) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:3) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:1) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:46) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:3) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:33) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.google.gson.Gson.fromJson(Gson.java:33) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at xyz.zedler.patrick.grocy.helper.DownloadHelper$40$$ExternalSyntheticLambda0.onResponse(R8$$SyntheticClass:22) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at xyz.zedler.patrick.grocy.fragment.LogFragment$$ExternalSyntheticLambda3.onResponse(R8$$SyntheticClass:1) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at xyz.zedler.patrick.grocy.web.CustomStringRequest$$ExternalSyntheticLambda0.onResponse(R8$$SyntheticClass:25) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:11) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:32) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:942) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7872) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 02-02 07:44:19.071 17368 17368 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Thanks for the nice app, keep up the great work,
Have the same problem and almost the same log.
AndroidRuntime: java.lang.NumberFormatException: For input string: "0,5"
Could you please test the latest nightly build which will be available in a few minutes?
Still not working for me. However displaying the test-server recipes works, so might (additionally) be an issue with my installation. Nginx complains about a bunch of failed get requests for unexisting recipepictures at crash time. No idea where that comes from, maybe i'll figure it out.
Not yet been able to reproduce this error connected to a test-server.
02-04 18:25:16.879 22340 22340 E AndroidRuntime: FATAL EXCEPTION: main 02-04 18:25:16.879 22340 22340 E AndroidRuntime: Process: xyz.zedler.patrick.grocy.nightly, PID: 22340 02-04 18:25:16.879 22340 22340 E AndroidRuntime: java.lang.NumberFormatException: For input string: "0,01" 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at java.lang.Double.parseDouble(Double.java:543) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.stream.JsonReader.nextDouble(JsonReader.java:922) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.Gson$1.read(Gson.java:405) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.Gson$1.read(Gson.java:399) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$1.readIntoField(ReflectiveTypeAdapterFactory.java:212) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$FieldReflectionAdapter.readField(ReflectiveTypeAdapterFactory.java:433) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.internal.bind.ReflectiveTypeAdapterFactory$Adapter.read(ReflectiveTypeAdapterFactory.java:393) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.read(TypeAdapterRuntimeTypeWrapper.java:40) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:82) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.internal.bind.CollectionTypeAdapterFactory$Adapter.read(CollectionTypeAdapterFactory.java:61) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.Gson.fromJson(Gson.java:1227) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.Gson.fromJson(Gson.java:1137) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.Gson.fromJson(Gson.java:1047) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.google.gson.Gson.fromJson(Gson.java:1014) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at xyz.zedler.patrick.grocy.helper.DownloadHelper$40.lambda$perform$1$xyz-zedler-patrick-grocy-helper-DownloadHelper$40(DownloadHelper.java:2653) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at xyz.zedler.patrick.grocy.helper.DownloadHelper$40$$ExternalSyntheticLambda1.onResponse(Unknown Source:8) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at xyz.zedler.patrick.grocy.helper.DownloadHelper$$ExternalSyntheticLambda29.onResponse(Unknown Source:4) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at xyz.zedler.patrick.grocy.web.CustomStringRequest.lambda$new$0(CustomStringRequest.java:68) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at xyz.zedler.patrick.grocy.web.CustomStringRequest$$ExternalSyntheticLambda0.onResponse(Unknown Source:10) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:82) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.android.volley.toolbox.StringRequest.deliverResponse(StringRequest.java:29) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.android.volley.ExecutorDelivery$ResponseDeliveryRunnable.run(ExecutorDelivery.java:102) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:942) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7872) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) 02-04 18:25:16.879 22340 22340 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)
Here it is the same. In my ngnix I have not yet looked.
Is there anything else I can do to help find the error?
I have already looked in my recipes the 0,5
wich i see in the logs, but found nothing.
Can someone please test it again with the latest nightly build? Also try to uninstall the old nightly build before that, this could lead to issues where the app is not updated.
I can't reproduce the error in any way, even when I simulate a response (e.g. with "0,01") like the app needs to crash according to your comments... Only when I remove my fix then the app crashes. So I hope this is a problem where the app hasn't been updated on your device properly.
I have test it and it is the same error. Uninstall the old nightly has not helped either. What is called when i open the recipes? I looked at the API via swagger and searched for the value 0,5 , but I do not have this in any recipe. For a second I see the recipes also what shows me that the call has somehow already worked.
I do some tests and I delete every recipe and i have still the same error.
After update to 3.1 the app still crash opening the recipe screen.
Same result after update to 3.1.1
Same issue with 3.1.1 and Grocy 3.3.2.
Could this error be handled a bit more gracefully such that I can still at least see the logs in-app? It just crashes immediately upon opening.
Okay, maybe I found the reason and it is fixed now. But you can reopen this issue or open a new one with reference to this if it still occurs in the upcoming release.
@Atemu You mean the app crashes without navigating to the recipe screen? This would be another issue... I hope I did understand it wrong and you mean that we just shouldn't let the app crash when you navigate to the recipe screen. But it is not that easy to find such a way.
@dominiczedler https://github.com/patzly/grocy-android/commit/2b0dc52046e5645a94af0820ad0f819766a33c57 still crashes for me.
Should I open a separate issue on this?
@Atemu Thats another issue, let's proceed in #698.
The crash still here for me with version 3.2
For me it is working. I can read, add and modify the recipes. Thx
@HydrelioxGitHub Can you please also share a crash log with us (the text from Settings -> Debugging -> Logs, after the app crashed)? I can't see anything from you in this issue regarding logs, you just always tell us that it is still not working on your phone. :)
That's because I can't see anything in the logs. Only :
--------- beginning of main
Do I have to check anywhere else?
@HydrelioxGitHub The crash should be gone with the next version 3.3.0. Maybe you can try the nightly build (which will be built in a few hours)?
You can reopen this issue (if it is possible for you) if the issue still occurs or open a new issue.
I think I will wait until the Play Store release ( If it's not available next week I will try the nightly build)
Edit : I've tried the last nightly build (mlkit) and it works like a charm. Thank you for your time ⌚and your skills 💪
I can see my recipe for 1 second and the it crash. Could you remember me what kind of log do you need ?