Skip to content
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 crasher when app is in the background (exiting)? #12

Open
jd-bus opened this issue Jun 23, 2024 · 0 comments
Open

Android crasher when app is in the background (exiting)? #12

jd-bus opened this issue Jun 23, 2024 · 0 comments

Comments

@jd-bus
Copy link

jd-bus commented Jun 23, 2024

We are seeing this crasher across ~all Android users. According to Crashylitcs the app is in the background 100% of the time.
states
versions
phones

Based on the primary exception it appears that this may be occurring when the app is in the process of closing:

Fatal Exception: java.lang.RuntimeException
Unable to destroy activity {com.jdbus.packge/com.jdbus.packge.MainActivity}: java.lang.NullPointerException: getValue(...) must not be null
android.app.ActivityThread.performDestroyActivity (ActivityThread.java:5301)

com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1027)
DailyFlutterPlugin.getSurfaceTextureHelper
java.lang.NullPointerException - getValue(...) must not be null
co.daily.daily_flutter
DailyFlutterPlugin.java:8
Caused by java.lang.NullPointerException
getValue(...) must not be null
co.daily.daily_flutter.DailyFlutterPlugin.getSurfaceTextureHelper (DailyFlutterPlugin.java:8)
co.daily.daily_flutter.DailyFlutterPlugin.onDetachedFromEngine (DailyFlutterPlugin.java:29)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.remove (FlutterEngineConnectionRegistry.java:59)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.remove (FlutterEngineConnectionRegistry.java:16)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.removeAll (FlutterEngineConnectionRegistry.java:11)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.destroy (FlutterEngineConnectionRegistry.java:10)
io.flutter.embedding.engine.FlutterEngine.destroy (FlutterEngine.java:31)
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach (FlutterActivityAndFragmentDelegate.java:105)
io.flutter.embedding.android.FlutterActivity.onDestroy (FlutterActivity.java:18)
android.app.Activity.performDestroy (Activity.java:8258)
android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1341)
android.app.ActivityThread.performDestroyActivity (ActivityThread.java:5286)
android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:5330)
android.app.servertransaction.DestroyActivityItem.execute (DestroyActivityItem.java:44)
android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:181)
android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:102)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2235)
android.os.Handler.dispatchMessage (Handler.java:107)
android.os.Looper.loop (Looper.java:240)
android.app.ActivityThread.main (ActivityThread.java:7829)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:512)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1027)

This is running the demo code. Does something need to change with how the widget is destroyed? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant