afriscic / BarcodeScanning.Native.Maui

Barcode scanning library for .NET MAUI
https://www.nuget.org/packages/BarcodeScanning.Native.Maui
MIT License
183 stars 33 forks source link

ObjectDisposedException when popping modal page #41

Closed Ghostbird closed 7 months ago

Ghostbird commented 7 months ago

I've read #4 and I'm having a similar issue in 1.3.1:

System.ObjectDisposedException: Cannot access a disposed object. Object name: 'AndroidX.Camera.View.LifecycleCameraController'.
Java.Interop.JniPeerMembers.AssertSelf (/home/user/workspace/app/.meteor/sources/xamarin/java.interop/bec0326a925ff888d96cb433f5049000a6d32a33/src/Java.Interop/Java.Interop/JniPeerMembers.cs:153)
Java.Interop.JniPeerMembers.JniInstanceMethods.InvokeVirtualObjectMethod (/home/user/workspace/app/.meteor/sources/xamarin/java.interop/bec0326a925ff888d96cb433f5049000a6d32a33/src/Java.Interop/Java.Interop/JniPeerMembers.JniInstanceMethods_Invoke.cs:858)
AndroidX.Camera.View.CameraController.EnableTorch (AndroidX.Camera.View.CameraController.cs:1654)
BarcodeScanning.CameraViewHandler.Stop (:-1)
Java.Lang.Thread.RunnableImplementor.Run (/home/user/workspace/app/.meteor/sources/xamarin/xamarin-android/f68622cf6b97fa23cc3d3105a52ef5b2e31d52a1/src/Mono.Android/Java.Lang/Thread.cs:36)
Java.Lang.IRunnableInvoker.n_Run (/home/user/workspace/app/.meteor/sources/xamarin/xamarin-android/f68622cf6b97fa23cc3d3105a52ef5b2e31d52a1/src/Mono.Android/obj/Release/net8.0/android-34/mcw/Java.Lang.IRunnable.cs:84)
Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PP_V (/home/user/workspace/app/.meteor/sources/xamarin/xamarin-android/f68622cf6b97fa23cc3d3105a52ef5b2e31d52a1/src/Mono.Android/Android.Runtime/JNINativeWrapper.g.cs:26)
Ghostbird commented 7 months ago

No longer reproducible in 1.4.0 Thanks for fixing this over the weekend (from our perspective)