jamie-mh / AuthenticatorPro

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

The app crashes when trying to add an account by scanning a QR code #1153

Open puka-tchou opened 1 month ago

puka-tchou commented 1 month ago

Describe the bug The app crashes when trying to add an account by scanning a QR code.

See error detail below:

AuthenticatorPro.ZXing.ZXingException: ImageView parameters are inconsistent (out of bounds)
   at AuthenticatorPro.ZXing.Interop.Guard.ThrowIfNullPointer(IntPtr )
   at AuthenticatorPro.ZXing.ImageView..ctor(Byte[] , Int32 , Int32 , ImageFormat , Int32 , Int32 )
   at AuthenticatorPro.Droid.QrCode.QrCodeImageAnalyser.AnalyseInternal(IImageProxy imageProxy)
   at AuthenticatorPro.Droid.QrCode.QrCodeImageAnalyser.Analyze(IImageProxy imageProxy)
   at AndroidX.Camera.Core.ImageAnalysis.IAnalyzerInvoker.n_Analyze_Landroidx_camera_core_ImageProxy_(IntPtr jnienv, IntPtr native__this, IntPtr native_p0)
   at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPL_V(_JniMarshal_PPL_V callback, IntPtr jnienv, IntPtr klazz, IntPtr p0)

To Reproduce Steps to reproduce the behavior:

  1. Click on the "+" icon in the bottom right corner
  2. Choose "Scan a QR code"
  3. See error

Expected behavior The QR code is correctly scanned.

App Version 1.25.1 F-Droid

Additional context N/A

puka-tchou commented 3 weeks ago

It may have been fixed in release 1.25.2 but I can't confirm right now.

Linked to b9dbb2b3943ae1814b7592297c4798be83ed019f