jamie-mh / AuthenticatorPro

📱 Two-Factor Authentication (2FA) client for Android + Wear OS
https://authenticatorpro.jmh.me
GNU General Public License v3.0
2.72k stars 194 forks source link

QR code Error #1052

Closed NumbGnat closed 6 months ago

NumbGnat commented 6 months ago

Describe the bug I received the following error when attempting to add a new entry, by QR Code, through the camera.

To Reproduce

  1. Tap [+] to add new entry.
  2. Tap [QR Code].
  3. Tap [Camera].
  4. Point camera at QR Code displayed on laptop (or desktop) screen.

Expected behavior The "Add New Item" dialog should be displayed.

App Version 1.23.0

Additional context The error returned was as follows...

System.ArgumentException: Handle must be valid. Arg_ParamName_Name, instance at Java.Interop.JniEnvironment.InstanceMethods.CallVoidMethod(JniObjectReference , JniMethodInfo ) at Android.Runtime.JNIEnv.CallVoidMethod(IntPtr , IntPtr ) at AndroidX.Camera.Core.IImageProxyInvoker.Close() at AuthenticatorPro.Droid.QrCode.Analyser.MlKitQrCodeImageAnalyser.Analyze(IImageProxy imageProxy) at System.Threading.Tasks.Task.<>c.b128_0(Object ) at Android.App.SyncContext.<>c__DisplayClass2_0.b0() at Java.Lang.Thread.RunnableImplementor.Run() at Java.Lang.IRunnableInvoker.n_Run(IntPtr , IntPtr ) at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PP_V(_JniMarshal_PP_V , IntPtr , IntPtr )

jamie-mh commented 6 months ago

The MLKit analyser has been removed in 1.24.0. This should no longer occur.