bitwarden crashes when generating password when launched from firefox on Android #1530

Closed
opened 2025-11-26 22:51:49 -06:00 by GiteaMirror · 4 comments
Owner

Originally created by @ghost on GitHub (Nov 16, 2022).

Steps To Reproduce

This has been tested on Android 13 on two different devices.

Prerequisites:

  1. Firefox (stable version)
  2. bitwarden installed
  3. bitwarden extension activated in firefox
  4. bitwarden configured for Auto-fill services: "auto fill service" and "use inline autofill" both enabled
  5. using google keyboard

Make sure that you are logged out of bitwarden, open recents view in android and close all applications.

Steps to reproduce:

  1. In firefox go to any site with login prompt
  2. At login screen open bitwarden from menu above keyboard, press "Add an item" in bitwarden
  3. enter user name
  4. press the generate button (two arrows in a circle) to generate password (password field is empty by default).
  5. bitwarden crashes

Expected Result

Bitwarden should not crash

Actual Result

Bit warden crashes.

From crash information:
Process: com.x8bit.bitwarden
PID: 21492
UID: 10137
Frozen: false
Flags: 0x20883e44
Package: com.x8bit.bitwarden v5247 (2022.10.0)
Foreground: Yes
Process-Runtime: 47603
Build: REMOVED FROM LOG INFORMATION. This is Android13, userdebug build
Loading-Progress: 1.0
Dropped-Count: 0

android.runtime.JavaProxyThrowable: System.InvalidOperationException: Access token not found.
at Bit.Core.Services.TokenService.DecodeToken () [0x00017] in <0f873a8dd4bd4b318c3bea8754aea0fd>:0
at Bit.Core.Services.TokenService.GetEmail () [0x00000] in <0f873a8dd4bd4b318c3bea8754aea0fd>:0
at Bit.App.Pages.GeneratorPageViewModel.InitAsync () [0x00113] in <7d4ceb8c0d4a41c89ab5f1ce4f84b140>:0
at Bit.App.Pages.GeneratorPage.InitAsync () [0x00067] in <7d4ceb8c0d4a41c89ab5f1ce4f84b140>:0
at Bit.App.Pages.GeneratorPage.OnAppearing () [0x0007c] in <7d4ceb8c0d4a41c89ab5f1ce4f84b140>:0
at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.b__7_0 (System.Object state) [0x00000] in <20aa4b7eefa6474fb50463361b4155c6>:0
at Android.App.SyncContext+<>c__DisplayClass2_0.b__0 () [0x00000] in <2cbbcf5fe0814026bd1bfe25fd8e543c>:0
at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <2cbbcf5fe0814026bd1bfe25fd8e543c>:0
at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <2cbbcf5fe0814026bd1bfe25fd8e543c>:0
at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PP_V (_JniMarshal_PP_V callback, System.IntPtr jnienv, System.IntPtr klazz) [0x00005] in <2cbbcf5fe0814026bd1bfe25fd8e543c>:0
at mono.java.lang.RunnableImplementor.n_run(Native Method)
at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:31)
at android.os.Handler.handleCallback(Handler.java:942)
at android.os.Handler.dispatchMessage(Handler.java:99)
at android.os.Looper.loopOnce(Looper.java:201)
at android.os.Looper.loop(Looper.java:288)
at android.app.ActivityThread.main(ActivityThread.java:7872)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936)

Screenshots or Videos

No response

Additional Context

No response

Operating System

Android

Operating System Version

Android 13

Web Browser

Firefox

Browser Version

106.1.0

Build Version

2022.10.1

Issue Tracking Info

  • I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
Originally created by @ghost on GitHub (Nov 16, 2022). ### Steps To Reproduce This has been tested on Android 13 on two different devices. Prerequisites: 1. Firefox (stable version) 2. bitwarden installed 3. bitwarden extension activated in firefox 4. bitwarden configured for Auto-fill services: "auto fill service" and "use inline autofill" both enabled 5. using google keyboard Make sure that you are logged out of bitwarden, open recents view in android and close all applications. Steps to reproduce: 1. In firefox go to any site with login prompt 2. At login screen open bitwarden from menu above keyboard, press "Add an item" in bitwarden 3. enter user name 4. press the generate button (two arrows in a circle) to generate password (password field is empty by default). 6. bitwarden crashes ### Expected Result Bitwarden should not crash ### Actual Result Bit warden crashes. From crash information: Process: com.x8bit.bitwarden PID: 21492 UID: 10137 Frozen: false Flags: 0x20883e44 Package: com.x8bit.bitwarden v5247 (2022.10.0) Foreground: Yes Process-Runtime: 47603 Build: REMOVED FROM LOG INFORMATION. This is Android13, userdebug build Loading-Progress: 1.0 Dropped-Count: 0 android.runtime.JavaProxyThrowable: System.InvalidOperationException: Access token not found. at Bit.Core.Services.TokenService.DecodeToken () [0x00017] in <0f873a8dd4bd4b318c3bea8754aea0fd>:0 at Bit.Core.Services.TokenService.GetEmail () [0x00000] in <0f873a8dd4bd4b318c3bea8754aea0fd>:0 at Bit.App.Pages.GeneratorPageViewModel.InitAsync () [0x00113] in <7d4ceb8c0d4a41c89ab5f1ce4f84b140>:0 at Bit.App.Pages.GeneratorPage.InitAsync () [0x00067] in <7d4ceb8c0d4a41c89ab5f1ce4f84b140>:0 at Bit.App.Pages.GeneratorPage.OnAppearing () [0x0007c] in <7d4ceb8c0d4a41c89ab5f1ce4f84b140>:0 at System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__7_0 (System.Object state) [0x00000] in <20aa4b7eefa6474fb50463361b4155c6>:0 at Android.App.SyncContext+<>c__DisplayClass2_0.<Post>b__0 () [0x00000] in <2cbbcf5fe0814026bd1bfe25fd8e543c>:0 at Java.Lang.Thread+RunnableImplementor.Run () [0x00008] in <2cbbcf5fe0814026bd1bfe25fd8e543c>:0 at Java.Lang.IRunnableInvoker.n_Run (System.IntPtr jnienv, System.IntPtr native__this) [0x00008] in <2cbbcf5fe0814026bd1bfe25fd8e543c>:0 at Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PP_V (_JniMarshal_PP_V callback, System.IntPtr jnienv, System.IntPtr klazz) [0x00005] in <2cbbcf5fe0814026bd1bfe25fd8e543c>:0 at mono.java.lang.RunnableImplementor.n_run(Native Method) at mono.java.lang.RunnableImplementor.run(RunnableImplementor.java:31) at android.os.Handler.handleCallback(Handler.java:942) at android.os.Handler.dispatchMessage(Handler.java:99) at android.os.Looper.loopOnce(Looper.java:201) at android.os.Looper.loop(Looper.java:288) at android.app.ActivityThread.main(ActivityThread.java:7872) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:936) ### Screenshots or Videos _No response_ ### Additional Context _No response_ ### Operating System Android ### Operating System Version Android 13 ### Web Browser Firefox ### Browser Version 106.1.0 ### Build Version 2022.10.1 ### Issue Tracking Info - [X] I understand that work is tracked outside of Github. A PR will be linked to this issue should one be opened to address it, but Bitwarden doesn't use fields like "assigned", "milestone", or "project" to track progress.
GiteaMirror added the bug label 2025-11-26 22:51:49 -06:00
Author
Owner

@ghost commented on GitHub (Nov 16, 2022):

Opening bitwarden from home screen of phone and typing all details by hand works as expected.

@ghost commented on GitHub (Nov 16, 2022): Opening bitwarden from home screen of phone and typing all details by hand works as expected.
Author
Owner

@ghost commented on GitHub (Nov 16, 2022):

I initially thought this issue was site dependent, but is most likely not.
I have tested gmail.com, tv4play.se, slashdot.org.

The important part here seems to be that bitwarden must not be active in the background.

If the bitwarden application has been started from homescreen previously and is still active in the background, then launching from browser and adding account works fine.

@ghost commented on GitHub (Nov 16, 2022): I initially thought this issue was site dependent, but is most likely not. I have tested gmail.com, tv4play.se, slashdot.org. The important part here seems to be that bitwarden must not be active in the background. If the bitwarden application has been started from homescreen previously and is still active in the background, then launching from browser and adding account works fine.
Author
Owner

@djsmith85 commented on GitHub (Nov 16, 2022):

Hi @hnktmobile and thank you for your report.

This seems to be a duplicate of https://github.com/bitwarden/mobile/issues/2149, which has already received a fix.

This should be resolved with the next release (2022.11)

Closing this now.

@djsmith85 commented on GitHub (Nov 16, 2022): Hi @hnktmobile and thank you for your report. This seems to be a duplicate of https://github.com/bitwarden/mobile/issues/2149, which has already received a fix. This should be resolved with the next release (2022.11) Closing this now.
Author
Owner

@ghost commented on GitHub (Nov 17, 2022):

Thanks for fast feedback, sorry that I didn't find the original issue before filing this one.

@ghost commented on GitHub (Nov 17, 2022): Thanks for fast feedback, sorry that I didn't find the original issue before filing this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/android#1530