Difficult to capture barcode for authenticator #1278

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

Originally created by @lloricode on GitHub (Apr 20, 2021).

Describe the Bug

When capturing bar-code for authenticator, the camera result is not proportion

this is the actual photo https://bit.ly/2QK5eUs
and this is the result https://bit.ly/3sB1DFy it becomes rectangle (sorry for blur image)

and too difficult capturing, sometime crash the app itself

Steps To Reproduce

  1. Select any login
  2. Click edit button
  3. Click camera logo for capturing barcode for authenticator

Expected Result

Its capture easily

Actual Result

difficult to capture image, the image capturing is not proportion result, sometimes crash it

Screenshots or Videos

Environment

  • Device: Samsung A51
  • Operating system: Android 11
  • Build Version 2.9.1 (3444)
  • Is this a Beta release? N

Additional Context

Originally created by @lloricode on GitHub (Apr 20, 2021). <!-- Comment: Please do not submit feature requests. The [Community Forums][1] has a section for submitting, voting for, and discussing product feature requests. [1]: https://community.bitwarden.com --> ## Describe the Bug When capturing bar-code for authenticator, the camera result is not proportion this is the actual photo https://bit.ly/2QK5eUs and this is the result https://bit.ly/3sB1DFy it becomes rectangle (sorry for blur image) and too difficult capturing, sometime crash the app itself <!-- Comment: A clear and concise description of what the bug is. --> ## Steps To Reproduce <!-- Comment: How can we reproduce the behavior: --> 1. Select any login 2. Click edit button 3. Click camera logo for capturing barcode for authenticator ## Expected Result <!-- Comment: A clear and concise description of what you expected to happen. --> Its capture easily ## Actual Result <!-- Comment: A clear and concise description of what is happening. --> difficult to capture image, the image capturing is not proportion result, sometimes crash it ## Screenshots or Videos <!-- Comment: If applicable, add screenshots and/or a short video to help explain your problem. --> ## Environment - Device: Samsung A51 - Operating system: Android 11 - Build Version 2.9.1 (3444) - Is this a Beta release? N ## Additional Context <!-- Comment: Add any other context about the problem here. -->
Author
Owner

@apjyotirmay commented on GitHub (May 10, 2021):

+1 facing the same issue here. Sometimes I need to do multiple attempts to get it done, and sometimes it works flawlessly.

Device: Galaxy Note 9
OS: One UI 2.5 (Android 10)
Build: Official one from play store

@apjyotirmay commented on GitHub (May 10, 2021): +1 facing the same issue here. Sometimes I need to do multiple attempts to get it done, and sometimes it works flawlessly. Device: Galaxy Note 9 OS: One UI 2.5 (Android 10) Build: Official one from play store
Author
Owner

@lloricode commented on GitHub (May 10, 2021):

+1 facing the same issue here. Sometimes I need to do multiple attempts to get it done, and sometimes it works flawlessly.

Device: Galaxy Note 9
OS: One UI 2.5 (Android 10)
Build: Official one from play store

that's exactly as mine

@lloricode commented on GitHub (May 10, 2021): > +1 facing the same issue here. Sometimes I need to do multiple attempts to get it done, and sometimes it works flawlessly. > > Device: Galaxy Note 9 > OS: One UI 2.5 (Android 10) > Build: Official one from play store that's exactly as mine
Author
Owner

@empjustine commented on GitHub (Apr 7, 2022):

Device: Samsung Galaxy A50
OS: One UI 3.1 (Android 11)
Build: Play Store 2.17.0

Collected stacktrace of the offending Camera event:

FATAL EXCEPTION: main
Process: com.x8bit.bitwarden, PID: 27983
java.lang.RuntimeException: Camera is being used after Camera.release() was called
	at android.hardware.Camera.native_getParameters(Native Method)
	at android.hardware.Camera.getParameters(Camera.java:2153)
	at mono.java.lang.RunnableImplementor.n_run(Native Method)
	at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30)
	at android.os.Handler.handleCallback(Handler.java:938)
	at android.os.Handler.dispatchMessage(Handler.java:99)
	at android.os.Looper.loop(Looper.java:246)
	at android.app.ActivityThread.main(ActivityThread.java:8550)
	at java.lang.reflect.Method.invoke(Native Method)
	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602)
	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130)
@empjustine commented on GitHub (Apr 7, 2022): Device: Samsung Galaxy A50 OS: One UI 3.1 (Android 11) Build: Play Store 2.17.0 Collected stacktrace of the offending Camera event: ``` FATAL EXCEPTION: main Process: com.x8bit.bitwarden, PID: 27983 java.lang.RuntimeException: Camera is being used after Camera.release() was called at android.hardware.Camera.native_getParameters(Native Method) at android.hardware.Camera.getParameters(Camera.java:2153) at mono.java.lang.RunnableImplementor.n_run(Native Method) at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:30) at android.os.Handler.handleCallback(Handler.java:938) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loop(Looper.java:246) at android.app.ActivityThread.main(ActivityThread.java:8550) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:602) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1130) ```
Author
Owner

@thomasbbrunner commented on GitHub (Jun 8, 2022):

I am also facing the same issues: the shown camera output was distorted and the app crashed when reading the QR code.

Tried multiple times with no success.

Running Android 12 on a Pixel 4a 5G with Bitwarden version 2022.05.0 (4636)

@thomasbbrunner commented on GitHub (Jun 8, 2022): I am also facing the same issues: the shown camera output was distorted and the app crashed when reading the QR code. Tried multiple times with no success. Running Android 12 on a Pixel 4a 5G with Bitwarden version 2022.05.0 (4636)
Author
Owner

@fedemkr commented on GitHub (Jun 8, 2022):

Hi, thank you all for the reports and the information. About the crashing there is already an issue #1228 and a fix for that #1942 that is going to be deployed in next release.
If there are more reports about crashing after the release please reopen #1228
OTOH, do you still have issues with the proportion of the camera?

@fedemkr commented on GitHub (Jun 8, 2022): Hi, thank you all for the reports and the information. About the crashing there is already an issue #1228 and a fix for that #1942 that is going to be deployed in next release. If there are more reports about crashing after the release please reopen #1228 OTOH, do you still have issues with the proportion of the camera?
Author
Owner

@develop7 commented on GitHub (Jun 10, 2022):

@fedemkr yeah, the camera proportions are off for me too (Pixel 5 running Android 12)

@develop7 commented on GitHub (Jun 10, 2022): @fedemkr yeah, the camera proportions are off for me too (Pixel 5 running Android 12)
Author
Owner

@vvolkgang commented on GitHub (Jun 20, 2024):

Issue migrated to https://github.com/bitwarden/mobile/issues/1378

@vvolkgang commented on GitHub (Jun 20, 2024): Issue migrated to https://github.com/bitwarden/mobile/issues/1378
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#1278