TOTP QR code scanner causes crash #1042

Closed
opened 2025-11-26 22:37:27 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @luc-bw on GitHub (Jun 12, 2020).

Originally assigned to: @MattTheDev on GitHub.

Describe the Bug

If you attempt to use the QR code scanner for TOTP, and Bitwarden is not already given Camera permissions, the system will ask you to allow the application access to the camera. This action causes the system and application to bind up and become unresponsive.

Steps To Reproduce

  1. If enabled, go to the system settings and revoke Bitwarden's camera permission.
  2. Open Bitwarden
  3. Edit any Login type item
  4. Select the camera icon in the Authenticator Key (TOTP) field
  5. Grant Bitwarden camera access.

Expected Result

The camera is enabled and you can scan your QR code.

Actual Result

The camera viewfinder is stuck as a white screen. The application and system become unresponsive to input. The application crashes.

Environment

  • Device: Pixel 2XL
  • Operating system: Android 10 (QQ2A.200501.001.B3)
  • Build Version: 2.4.3 (2523)
  • Is this a Beta release? Y

Additional Context

Once the application restarts with the camera permission enabled, scanning a QR code is successful.

Originally created by @luc-bw on GitHub (Jun 12, 2020). Originally assigned to: @MattTheDev on GitHub. ## Describe the Bug If you attempt to use the QR code scanner for TOTP, and Bitwarden is not already given Camera permissions, the system will ask you to allow the application access to the camera. This action causes the system and application to bind up and become unresponsive. ## Steps To Reproduce 1. If enabled, go to the system settings and revoke Bitwarden's camera permission. 2. Open Bitwarden 3. Edit any Login type item 4. Select the camera icon in the Authenticator Key (TOTP) field 5. Grant Bitwarden camera access. ## Expected Result The camera is enabled and you can scan your QR code. ## Actual Result The camera viewfinder is stuck as a white screen. The application and system become unresponsive to input. The application crashes. ## Environment - Device: Pixel 2XL - Operating system: Android 10 (QQ2A.200501.001.B3) - Build Version: 2.4.3 (2523) - Is this a Beta release? Y ## Additional Context Once the application restarts with the camera permission enabled, scanning a QR code is successful.
Author
Owner

@bcronce commented on GitHub (Jun 15, 2020):

I'm stuck on Android 8 and was in darkmode, when instead of a white screen, I had a black one. I assume this is because dark mode.

Also mention that I just kept trying and eventually got it to take. Seemed like every other time crashed then worked. But it's late and I don't want to setup any more tonight to see if that pattern persists.

@bcronce commented on GitHub (Jun 15, 2020): I'm stuck on Android 8 and was in darkmode, when instead of a white screen, I had a black one. I assume this is because dark mode. Also mention that I just kept trying and eventually got it to take. Seemed like every other time crashed then worked. But it's late and I don't want to setup any more tonight to see if that pattern persists.
Author
Owner

@cscharf commented on GitHub (Jul 8, 2020):

Resolved by #1005

@cscharf commented on GitHub (Jul 8, 2020): Resolved by #1005
Author
Owner

@OLLI-S commented on GitHub (Nov 21, 2020):

@cscharf
I switched to Bitwarden some days ago and still had this issue the last days (the Android app crashed while scanning the QR code).
So this issue is not fixed!

@OLLI-S commented on GitHub (Nov 21, 2020): @cscharf I switched to Bitwarden some days ago and still had this issue the last days (the Android app crashed while scanning the QR code). So this issue is not fixed!
Author
Owner

@julian-alarcon commented on GitHub (Dec 28, 2020):

I have the same error mentioned by @OLLI-S . But I think that this is a different issue than the reported bug here as the App already have the Camera permission and when I try to set the code scanning the QR the App crashes.

@julian-alarcon commented on GitHub (Dec 28, 2020): I have the same error mentioned by @OLLI-S . But I think that this is a different issue than the reported bug here as the App already have the Camera permission and when I try to set the code scanning the QR the App crashes.
Author
Owner

@gaticssa commented on GitHub (Jan 12, 2021):

I have (had?) the same problem on a Galaxy S10e.

The first time I tried to scan a QR code (for an Amazon account) the Bitwarden app asked for the Camera permission.
I allowed that, but still the app crashed on every scanning attempt.

Then I noticed under App Settings that the Bitwarden app did not have the Storage permission. I don't recall whether it had asked for that on install, but it definitely didn't ask when scanning the QR code.

I allowed that, and I was able to successfully scan at least that one code. I haven't tried with any other sites, so I'm not sure if it was just a lucky coincidence that it worked.

Bitwarden app: Version 2.6.1 (3178)
Android Build Number: QP1A.190711.020.G970FXXU9DTJA

@gaticssa commented on GitHub (Jan 12, 2021): I have (had?) the same problem on a Galaxy S10e. The first time I tried to scan a QR code (for an Amazon account) the Bitwarden app asked for the Camera permission. I allowed that, but still the app crashed on every scanning attempt. Then I noticed under App Settings that the Bitwarden app did not have the Storage permission. I don't recall whether it had asked for that on install, but it definitely didn't ask when scanning the QR code. I allowed that, and I was able to successfully scan at least that one code. I haven't tried with any other sites, so I'm not sure if it was just a lucky coincidence that it worked. Bitwarden app: Version 2.6.1 (3178) Android Build Number: QP1A.190711.020.G970FXXU9DTJA
Author
Owner

@prakharaug commented on GitHub (Mar 6, 2021):

The application was not given storage permission. Once you give storage permission to the application the bit warden app stop crashing.

@prakharaug commented on GitHub (Mar 6, 2021): The application was not given storage permission. Once you give storage permission to the application the bit warden app stop crashing.
Author
Owner

@francois-pasquier commented on GitHub (Sep 15, 2021):

Hey, why is this closed?

I can browse github but most users will not search for this and just consider the feature broken.

@francois-pasquier commented on GitHub (Sep 15, 2021): Hey, why is this closed? I can browse github but most users will not search for this and just consider the feature broken.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#1042