juicycleff / flutter-unity-view-widget

Embeddable unity game engine view for Flutter. Advance demo here https://github.com/juicycleff/flutter-unity-arkit-demo
BSD 3-Clause "New" or "Revised" License
2.12k stars 514 forks source link

kotlin.KotlinNullPointerException #494

Open danbudworthmead opened 2 years ago

danbudworthmead commented 2 years ago

I am getting thousands of these errors each day. This is the call stack that Google Play provides.

`java.lang.Error: FATAL EXCEPTION [main] Unity version : 2020.3.7f1 Device model : DOOGEE X95 Device fingerprint: DOOGEE/X95/X95:10/QP1A.190711.020/1626926129:user/release-keys Build Type : Release Scripting Backend : IL2CPP ABI : armeabi-v7a Strip Engine Code : true

Caused by at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:4969) at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:4998) at android.app.servertransaction.DestroyActivityItem.execute (DestroyActivityItem.java:44) at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2041) at android.os.Handler.dispatchMessage (Handler.java:107) at android.os.Looper.loop (Looper.java:214) at android.app.ActivityThread.main (ActivityThread.java:7386) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:980) Caused by: kotlin.KotlinNullPointerException: at com.xraph.plugin.flutter_unity_widget.FlutterUnityWidgetPlugin$onAttachedToEngine$1.getLifecycle (FlutterUnityWidgetPlugin.kt:31) at com.xraph.plugin.flutter_unity_widget.FlutterUnityWidgetController.dispose (FlutterUnityWidgetController.kt:97) at io.flutter.plugin.platform.PlatformViewsController$1.disposeAndroidViewForPlatformView (PlatformViewsController.java:165) at io.flutter.plugin.platform.PlatformViewsController.flushAllViews (PlatformViewsController.java:712) at io.flutter.plugin.platform.PlatformViewsController.onDetachedFromJNI (PlatformViewsController.java:584) at io.flutter.embedding.engine.FlutterEngine.destroy (FlutterEngine.java:417) at io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.onDetach (FlutterActivityAndFragmentDelegate.java:648) at io.flutter.embedding.android.FlutterActivity.release (FlutterActivity.java:651) at io.flutter.embedding.android.FlutterActivity.onDestroy (FlutterActivity.java:672) at android.app.Activity.performDestroy (Activity.java:8048) at android.app.Instrumentation.callActivityOnDestroy (Instrumentation.java:1341) at android.app.ActivityThread.performDestroyActivity (ActivityThread.java:4954) at android.app.ActivityThread.handleDestroyActivity (ActivityThread.java:4998) at android.app.servertransaction.DestroyActivityItem.execute (DestroyActivityItem.java:44) at android.app.servertransaction.TransactionExecutor.executeLifecycleState (TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute (TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage (ActivityThread.java:2041) at android.os.Handler.dispatchMessage (Handler.java:107) at android.os.Looper.loop (Looper.java:214) at android.app.ActivityThread.main (ActivityThread.java:7386) at java.lang.reflect.Method.invoke (Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run (RuntimeInit.java:492) at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:980)`

juicycleff commented 2 years ago

Could elaborate how the error gets thrown?

danbudworthmead commented 2 years ago

No I can't. All I have is the callstack from Google play store. It doesn't happen on my devices.

On Fri, 3 Dec 2021, 18:42 Rex Raphael, @.***> wrote:

Could elaborate how the error gets thrown?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/juicycleff/flutter-unity-view-widget/issues/494#issuecomment-985745037, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACHDMCNE44EO4DMOL26KVDLUPEFPRANCNFSM5IPN3NZA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.