geweald / flutter_onfido

Flutter Onfido Plugin
MIT License
8 stars 20 forks source link

Background Crash #25

Open the-ginger-geek opened 2 years ago

the-ginger-geek commented 2 years ago

We recently integrated the onfido plugin into our app but haven't started using it yet, still waiting for some backend work to complete so the plugin is dormant in production.

I started seeing this crash today in production without the plugin being used, I'm assuming there's some app startup stuff that runs on the native side.

com.fluencybank.flutter_onfido.FlutterOnfidoPlugin.onDetachedFromActivityForConfigChanges (FlutterOnfidoPlugin.kt:87)
com.fluencybank.flutter_onfido.FlutterOnfidoPlugin.onDetachedFromActivityForConfigChanges (FlutterOnfidoPlugin.kt:87)
com.fluencybank.flutter_onfido.FlutterOnfidoPlugin.onDetachedFromActivityForConfigChanges (FlutterOnfidoPlugin.kt:87)
com.fluencybank.flutter_onfido.FlutterOnfidoPlugin.onDetachedFromActivityForConfigChanges (FlutterOnfidoPlugin.kt:87)
com.fluencybank.flutter_onfido.FlutterOnfidoPlugin.onDetachedFromActivityForConfigChanges (FlutterOnfidoPlugin.kt:87)
com.fluencybank.flutter_onfido.FlutterOnfidoPlugin.onDetachedFromActivityForConfigChanges (FlutterOnfidoPlugin.kt:87)
com.fluencybank.flutter_onfido.FlutterOnfidoPlugin.onDetachedFromActivityForConfigChanges (FlutterOnfidoPlugin.kt:87)
com.fluencybank.flutter_onfido.FlutterOnfidoPlugin.onDetachedFromActivityForConfigChanges (FlutterOnfidoPlugin.kt:87)
com.fluencybank.flutter_onfido.FlutterOnfidoPlugin.onDetachedFromActivityForConfigChanges (FlutterOnfidoPlugin.kt:87)
com.fluencybank.flutter_onfido.FlutterOnfidoPlugin.onDetachedFromActivityForConfigChanges (FlutterOnfidoPlugin.kt:87)
io.flutter.embedding.engine.FlutterEngineConnectionRegistry.detachFromActivityForConfigChanges (FlutterEngineConnectionRegistry.java:372)
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach (FlutterActivityAndFragmentDelegate.java:651)
io.flutter.embedding.android.FlutterFragment.onDetach (FlutterFragment.java:844)
androidx.fragment.app.Fragment.performDetach (Fragment.java:3229)
androidx.fragment.app.FragmentStateManager.detach (FragmentStateManager.java:812)
androidx.fragment.app.FragmentStateManager.moveToExpectedState (FragmentStateManager.java:353)
androidx.fragment.app.SpecialEffectsController$FragmentStateManagerOperation.complete (SpecialEffectsController.java:742)
androidx.fragment.app.SpecialEffectsController$Operation.cancel (SpecialEffectsController.java:594)
androidx.fragment.app.SpecialEffectsController.forceCompleteAllOperations (SpecialEffectsController.java:329)
androidx.fragment.app.FragmentManager.dispatchStateChange (FragmentManager.java:3130)
androidx.fragment.app.FragmentManager.dispatchDestroy (FragmentManager.java:3105)
androidx.fragment.app.FragmentController.dispatchDestroy (FragmentController.java:334)
androidx.fragment.app.FragmentActivity.onDestroy (FragmentActivity.java:330)
android.app.Activity.performDestroy (Activity.java:8468)
android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1344)
android.app.ActivityThread.performDestroyActivity (ActivityThread.java:5652)
android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:5712)
android.app.ActivityThread.handleRelaunchActivityInner (ActivityThread.java:6015)
android.app.ActivityThread.handleRelaunchActivity (ActivityThread.java:5934)
android.app.servertransaction.ActivityRelaunchItem.execute (ActivityRelaunchItem.java:69)
android.app.servertransaction.TransactionExecutor.executeCallbacks (TransactionExecutor.java:135)
android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:95)
android.app.ActivityThread$H.handleMessage (ActivityThread.java:2317)
android.os.Handler.dispatchMessage (Handler.java:106)
android.os.Looper.loop (Looper.java:246)
android.app.ActivityThread.main (ActivityThread.java:8625)
java.lang.reflect.Method.invoke (Method.java)
com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:602)
com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1130)

This is on flutter version 2.10.1