fluttercommunity / flutter_workmanager

A Flutter plugin which allows you to execute code in the background on Android and iOS.
859 stars 276 forks source link

java.lang.NullPointerException while app is in backeground around 2 hours than it's getting crashed #527

Open AnilNeodove opened 10 months ago

AnilNeodove commented 10 months ago

Exception java.lang.NullPointerException: Attempt to read from field 'java.lang.String io.flutter.view.FlutterCallbackInformation.callbackLibraryPath' on a null object reference in method 'java.lang.String io.flutter.embedding.engine.dart.DartExecutor$DartCallback.toString()' at io.flutter.embedding.engine.dart.DartExecutor$DartCallback.toString at java.lang.String.valueOf (String.java:3657) at java.lang.StringBuilder.append (StringBuilder.java:132) at io.flutter.embedding.engine.dart.DartExecutor.executeDartCallback (DartExecutor.java) at dev.fluttercommunity.workmanager.BackgroundWorker.startWork$lambda$2 (BackgroundWorker.java) at dev.fluttercommunity.workmanager.BackgroundWorker.$r8$lambda$6sAKdFC7OiSIMKEvQJlu-u6nOVw (BackgroundWorker.java) at dev.fluttercommunity.workmanager.BackgroundWorker$$InternalSyntheticLambda$0$1db8b4055b41dbc6f5c5036cb185dab072c44060566ef8e5438a5c3ef071948c$0.run$bridge (BackgroundWorker.java) at android.os.Handler.handleCallback (Handler.java:942) at android.os.Handler.dispatchMessage (Handler.java:99) at android.os.Looper.loopOnce (Looper.java:226) at android.os.Looper.loop (Looper.java:313) at android.app.ActivityThread.main (ActivityThread.java:8762) at java.lang.reflect.Method.invoke at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:604) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1067)

xiaolongwuhpu commented 5 months ago

version 0.5.2
Fatal Exception: java.lang.NullPointerException: Attempt to read from field 'java.lang.String io.flutter.view.FlutterCallbackInformation.callbackLibraryPath' on a null object reference in method 'java.lang.String nd.a$b.toString()' at nd.a$b.toString(:22) at java.lang.String.valueOf(String.java:4092) at java.lang.StringBuilder.append(StringBuilder.java:179) at nd.a.j(:28) at dev.fluttercommunity.workmanager.BackgroundWorker.w(:123) at dev.fluttercommunity.workmanager.BackgroundWorker.o() at id.a.run(:2) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:241) at android.os.Looper.loop(Looper.java:342) at android.app.ActivityThread.main(ActivityThread.java:8118) at java.lang.reflect.Method.invoke(Method.java) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:583) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1045)

xiaolongwuhpu commented 5 months ago

image

Ansis100 commented 2 months ago

Any updates on this? I haven't been able to reproduce the error, but I keep receiving Crashlytics reports of the exact same trace as @xiaolongwuhpu.

Side note - all of them are from Samsung devices.