stratumauth / app

📱 Two-Factor Authentication (2FA) client for Android + Wear OS
https://stratumauth.com
GNU General Public License v3.0
3.08k stars 199 forks source link

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

Closed puka-tchou closed 3 months ago

puka-tchou commented 4 months 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 4 months ago

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

Linked to b9dbb2b3943ae1814b7592297c4798be83ed019f