bitwarden / clients

Bitwarden client apps (web, browser extension, desktop, and cli).
https://bitwarden.com
Other
8.65k stars 1.14k forks source link

Endless Loading Spinner - Firefox Extension #9253

Open MartinLPetrauskas opened 1 month ago

MartinLPetrauskas commented 1 month ago

Steps To Reproduce

  1. Open Firefox
  2. Click on Bitwarden extension icon
  3. Loading spinner appears and nothing will load

Expected Result

Expected to see vault and various different options in Bitwarden

Actual Result

bitwarden_error

Screenshots or Videos

No response

Additional Context

No response

Operating System

Linux

Operating System Version

Kubuntu 22.04

Web Browser

Firefox

Browser Version

124.0.1

Build Version

2024.4.2

Issue Tracking Info

a-discordant-tune commented 1 month ago

Possibly related to https://bugzilla.mozilla.org/show_bug.cgi?id=1891305, which is observed on Windows and has additional impacts (causes rest of browser UI to cease loading pages)

jakobvase commented 1 month ago

I had this on Firefox 125.0.3, but it's gone now I updated to 126.0.0.

kamaradclimber commented 1 month ago

Could this be the same issue than https://github.com/bitwarden/clients/issues/8759?

krillerdk commented 1 month ago

For me the issue occurs when switching accounts. Initial login works fine. But after switching account, it will sometimes give me this endless spinner. After restarting firefox twice the issue is currently not there. But a single restart of firefox was not enough. Thisis on Firefox 126.0

jcbeck37 commented 1 month ago

I had this on Firefox 125.0.3, but it's gone now I updated to 126.0.0.

I have this issue in Firefox 126.0.0, but intermittently. This time just after logging back in (due to this bug)

Restarting Firefox 3 times did not solve it. I'm still "logged in" but my extension vault is not loading.

Locking and then re-entering my password did "fix" it for the moment.

sonofjon commented 1 month ago

I have this issue on FF 126.0 on a Mac.

RuneNyhuus commented 1 month ago

I have same issues with Firefox 126.0 and Bitwarden extension 2024.4.2 I get logged out, and then when i log back in, its and endless spinning....

mrichtarsky commented 1 month ago

Same issue since about two weeks. Windows, Firefox 125.0.3. Android and Windows apps work fine.

robproject commented 1 month ago

Same issue FF 126.0 bw extension 2024.4.2 bw server 2024.5.0 macos 14.5 (23F79)

desktop app 2024.5.0 is working

william-davies commented 1 month ago

I have a similar issue. After I log in in the Bitwarden Firefox extension, it just loads forever. So I can't actually see anything in my Vault.

Firefox 126.0 BitWarden exension 2024.4.2 MacOs Sonoma 14.5

Restarting Firefox resolves it, but this issue happens around every week.

SergeantConfused commented 1 month ago

Hello everyone,

Thank you all for your input. Is anyone's Firefox browser also not loading webpages when the Bitwarden browser extension seems to be indefinitely loading?

Thank you in advance,

mrichtarsky commented 1 month ago

Is anyone's Firefox browser also not loading webpages when the Bitwarden browser extension seems to be indefinitely loading?

No, webpages load fine.

william-davies commented 1 month ago

A new problem just came up today. This time I click on the Bitwarden extension icon and the modal that pops up is just loading. I can't even try to log in anymore. And then when I click away and click on the Bitwarden extension icon again, it doesn't even pop up a modal. And then my whole Firefox seems to get bricked. I can click on hyperlinks and open new tabs and search for something. But these new tabs will never load any content. I can fix this by restarting Firefox. I tried re-installing Bitwarden but immediately got the same issue. The Bitwarden extension icon disappeared as well. It still took up a place on the Firefox UI at the top, but there was just no blue shield.

This issue has happened three times in around two hours.

Firefox 126.0 BitWarden exension 2024.4.2 MacOs Sonoma 14.5

Thank you!

craig-jennings commented 1 month ago

I have the same behavior on Windows 11/Brave 1.66 (Chromium 125). When I inspect the widget, I'm seeing this error in the console

Uncaught (in promise) TypeError: Failed to execute 'decrypt' on 'SubtleCrypto': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.
upcboy commented 1 month ago

I have the same behavior on Windows 11/Brave 1.66 (Chromium 125). When I inspect the widget, I'm seeing this error in the console

Uncaught (in promise) TypeError: Failed to execute 'decrypt' on 'SubtleCrypto': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.

I'm seeing the same thing on Chrome ( 125.0.6422.113 ) and Brave( v1.66.115 125.0.6422.112 ) . Chrome worked until i forced it to update the extension to 2024.05.0 Brave stopped working first and was always on 2024.05.0 since i noticed the issue.

The issue also exists on the Beta version of the Bitwarden Extension.

stiffbruno commented 1 month ago

Hello, I have the same problem since Chrome extension version 2024.5.0. Has anyone found a solution yet?

isleshocky77 commented 1 month ago

This is happening on Chrome Version: 2024.5.1 as well. 2024.4.2 still works just fine.

nicolastorrente commented 1 month ago

Im having this issue also

Plugin version 2024.5.1 Browser: Chome stable in ubuntu (Versión 125.0.6422.112 (Build oficial) (64 bits))

justindbaur commented 1 month ago

Hey all, we are looking into this, no one has been able to recreate this internally at Bitwarden yet. I will hopefully be hopping on a call with a user tomorrow to debug the problem. What I first want to do here is make sure there aren't two bugs going on here that are just manifesting themselves in the same way.

Has anyone using the Firefox extension seen errors like the following:

Uncaught (in promise) TypeError: Failed to execute 'decrypt' on 'SubtleCrypto': The provided value is not of type '(ArrayBuffer or ArrayBufferView)'.

I'm currently working on the theory that this particular error message is Chrome/Chromium based browsers ONLY but if I am wrong about that, please let me know.

If Firefox users aren't seeing that particular error, are you seeing any other error?

One more thing, anyone who is looking to report their instance of the bug or willing to update their original report some of the extra information I am interested in are:

Thank you for all your help and your patience, hopefully we will get a fix out shortly for you all.

stiffbruno commented 1 month ago

Hey Justin, my issue is only with the Chrome extension.

Operating System: Windows 11 Pro 23H2 22635.3646 Are you a part of any organizations? No, regular cloud account. Account creation date: August 11, 2018 Can you log in and successfully view your vault from our web page? Yes.

Google Chrome version: 125.0.6422.113 Google Chrome Bitwarden extension version 2024.5.1

Desktop App version 2024.5.0: Working fine. The 2024.4.2 version extensions, both on Chrome (sideloaded) and Firefox are working fine.

kamaradclimber commented 1 month ago

If Firefox users aren't seeing that particular error, are you seeing any other error?

I don't see the mentioned error.

Here are the developer tools console errors:

downloadable font: Glyph bbox was incorrect (glyph ids 4 5 12 16 17 20 21 22 23 29 31 33 35 37 38 39 40 41 42 43 45 47 48 49 50 61 62 66 67 68 69 70 75 76 78 80 86 87 88 98 99 102 103 105 109 111 112 113 123 124 125 128 129 130 131 137 138 139 143 145 146 154 158 159 160 161 162 163 171 172 176) (font-family: "bwi-font" style:normal weight:400 stretch:100 src index:1) source: moz-extension://b04b2b20-9ae0-44e9-8c95-66380ba8dffc/popup/fonts/bwi-font.ttf

Error while fetching an original source: unsupported protocol for sourcemap request webpack:///%3Cno%20source%3E
Source URL: webpack:///%3Cno%20source%3E

downloadable font: Glyph bbox was incorrect (glyph ids 4 5 12 16 17 20 21 22 23 29 31 33 35 37 38 39 40 41 42 43 45 47 48 49 50 61 62 66 67 68 69 70 75 76 78 80 86 87 88 98 99 102 103 105 109 111 112 113 123 124 125 128 129 130 131 137 138 139 143 145 146 154 158 159 160 161 162 163 171 172 176) (font-family: "bwi-font" style:normal weight:400 stretch:100 src index:1) source: moz-extension://b04b2b20-9ae0-44e9-8c95-66380ba8dffc/popup/fonts/bwi-font.ttf
State version: 58
justindbaur commented 4 weeks ago

For anyone having the TypeError: Failed to execute 'decrypt' on 'SubtleCrypto' problem in Chrome/Chromium browsers. Could you try sideloading the DO-NOT-USE-FOR-PROD-dist-chrome-MV3-b587105.zip artifact from this build and see if it fixes your problem? If you don't feel comfortable sideloading, we are going to be uploading this fix to our beta extension first and I will update this issue with a link to that when its been approved. Thank you so much for all your reports in helping us fix the issue.

For the firefox issue, we believe this is a separate issue from the Chrome one, we are still looking into it and are struggling to reproduce it consistently.

upcboy commented 4 weeks ago

For anyone having the TypeError: Failed to execute 'decrypt' on 'SubtleCrypto' problem in Chrome/Chromium browsers. Could you try sideloading the DO-NOT-USE-FOR-PROD-dist-chrome-MV3-b587105.zip artifact from this build and see if it fixes your problem? If you don't feel comfortable sideloading, we are going to be uploading this fix to our beta extension first and I will update this issue with a link to that when its been approved. Thank you so much for all your reports in helping us fix the issue.

For the firefox issue, we believe this is a separate issue from the Chrome one, we are still looking into it and are struggling to reproduce it consistently.

This does seem to resolve the Chrome issue I was facing. After sideloading the extension I can now login with out issue.

stiffbruno commented 4 weeks ago

For anyone having the TypeError: Failed to execute 'decrypt' on 'SubtleCrypto' problem in Chrome/Chromium browsers. Could you try sideloading the DO-NOT-USE-FOR-PROD-dist-chrome-MV3-b587105.zip artifact from this build and see if it fixes your problem? If you don't feel comfortable sideloading, we are going to be uploading this fix to our beta extension first and I will update this issue with a link to that when its been approved. Thank you so much for all your reports in helping us fix the issue.

For the firefox issue, we believe this is a separate issue from the Chrome one, we are still looking into it and are struggling to reproduce it consistently.

It worked for me, it managed to load all my data.

NR2014 commented 4 weeks ago

I am also facing the same issue on Waterfox(G6.0.15 (64-bit).. Also the firefox add-on are not up to date compared to the chrome version .

Everytime i have issue with bitwarden add-on , i need to uninstall and reinstall the add-on , it will work for some weeks and then start to have the same issue. Please rectify the issue , its annoying.

mrichtarsky commented 4 weeks ago

@justindbaur Thanks for looking into this issue and updating us! Here are a few findings that may help.

My vault is set to never timeout, however since a few days (perhaps related to this issue) I notice I am logged out when unlocking my computer the next day. This just happened. So I tried to login and hit the issue:

Steps:

Login is now successful. This results in these network requests:

network_requests

The dark highlight denotes the first call after reenabling the extension. So everything above is from the failed login until I disabled the extension. Note the failing websocket requests (404). But they happen in both cases, so do not seem to be the immediate reason.

Let me know if you need further info from these requests, I have saved the HAR file (but do not want to share).

I did pause the extension in the debugger when the spinner appeared yesterday, it was hitting a timeout callback waiting for a response, didn't seem immediately helpful. Do not see the spinner now to make a screenshot but let me know if that would help.

This is running against my own Vaultwarden server, which is running on the latest version. I also restarted it while the spinner did show, which did not make it go away (yesterday, not part of above screenshot). Not part of any organizations, all other clients work fine (Windows & Android)

shadow-identity commented 4 weeks ago

@justindbaur, I use Firefox Developer Edition. I think this bug is the same as described here: https://github.com/bitwarden/clients/issues/9309 Regarding your questions:

Operating System: macOS 14.5 (23F79) Are you a part of any organizations? No What year approximately did you create your account? 2023 Can you log in and successfully view your vault from our web page? Yes

I reproduce it on FF 127.0b9 (64-bit), extension version is 2024.4.2 (why is it different from the Chrome's web store?) I don't reproduce it on FF 126.0.1 (64-bit) (same accounts, same system).

It happened couples of days ago for the first time.

In the extension's devtools, I see only this warning below (no errors reported to the console, nothing related to type error you quoted).

After clicking on the extension button, FF broke. Pages don't load, devtools do not work.

downloadable font: Glyph bbox was incorrect (glyph ids 4 5 12 16 17 20 21 22 23 29 31 33 35 37 38 39 40 41 42 43 45 47 48 49 50 61 62 66 67 68 69 70 75 76 78 80 86 87 88 98 99 102 103 105 109 111 112 113 123 124 125 128 129 130 131 137 138 139 143 145 146 154 158 159 160 161 162 163 171 172 176) (font-family: "bwi-font" style:normal weight:400 stretch:100 src index:1) source: moz-extension://aaf55415-ea43-414a-bbec-1c0ce054c315/popup/fonts/bwi-font.ttf 
EDIflyer commented 3 weeks ago

Just to confirm I experienced this a couple of times recently too.

Chrome Version 125.0.6422.142 (Official Build) (64-bit) Bitwarden Version 2024.4.2 Server version: 2024.5.0

Operating System: Windows 11 Are you a part of any organizations? Yes (recently upgraded from personal Premium to Teams a month ago) What year approximately did you create your account? 2021 Can you log in and successfully view your vault from our web page? Yes. Can also view it OK in Firefox.

I've noticed this a couple of times recently. One time if I moved from tab to vault it would then let me see the entries OK. This time it wouldn't work for either Tab or Vault. Send/Generator/Settings all accessible OK. I then rebooted the machine after a Windows Update and it worked OK when I came back in.

Phlosioneer commented 3 weeks ago

Experienced this on firefox 126.0, windows 11. Using the top-right menu to re-lock it and then unlocking it again fixed it, for now. While it was spinning endlessly, I popped the dropdown out into its own window. Developer Tools's debugger on the popped-out window did not detect any code being run except a periodic heartbeat command. I unfortunately lost the exact name of the command, but it was pausing near a comment like "Check if this dangling promise is intentional" and an @eslint annotation. (The dangling promise is probably completely unrelated, just trying to describe where in the code the heartbeat was happening.) Whatever the spinner is waiting for, wasn't being executed.

No errors in the dev console, though, and no unusual logs. Did not check network tab.

Luckz commented 3 weeks ago

Can confirm that locking and unlocking again now worked as a workaround in Edge (2024.5.2 from CWS) without installing the build artifact linked further above.

fily1212 commented 3 weeks ago

I experienced today and yesterday with Firefox 126.0.1 Yesterday, I resolved to uninstall the Bitwarden extension and reinstall it. I have Windows 11, the bitwarden extension version 2024.4.2 Today it happened again

EDIT: Today, I resolved unlogging and doing the login again. I don't remember if I tried in the past (I think yes and did not work, some weeks ago but not 100% sure)

mrichtarsky commented 2 weeks ago

@justindbaur Any update here? Were you able to reproduce this? Thanks!

bd808 commented 2 weeks ago

Yet another "me too" post on this general error scenario. I started seeing this issue today with Firefox 126.0.1 on MacOS 14.5 (M3 Max) and the 2024.4.2 Bitwarden addon. Symptoms were that the Bitwarden addon's popup dialog would not open and tabs would not load either.

Restarting Firefox, restarting networking, and even restarting the laptop did not change the addon's behavior of first showing a blank page and then the popup not even opening. Firefox would restore tabs from local cache on startup but would not load new pages or reload existing tabs.

Disabling the addon got Firefox working again initially. Uninstalling and reinstalling the addon seems to have returned both Firefox and the addon to normal function, but I have not done much more than authenticate via the addon and load this page since reinstalling.

LiloBzH commented 2 weeks ago

same probleme

Extension : 2024.4.2 Firefox 126 / Windows 11

when waking up for example, I enter the password and the extension loads infinitely deactivation / reactivation fixes the problem but it's not a solution ...

william-davies commented 1 week ago

It got even worse for me right now. I tried to to log in to the BItwarden extension. It froze at the screen with the email and password. Then when I clicked off the modal and tried to click on the Bitwarden logo again it wouldn't open. I restarted Firefox multiple times but after the restart the browser was already "broken". All the loaded tabs were still viewable. But I couldn't open a new tab to search for anything. I finally fixed this by just removing the extension altogether.

Do you have any temporary fixes until a proper fix is implemented? Even a rollback would be very helpful! Thank you!

EDIflyer commented 1 week ago

@william-davies for me an uninstall and reinstall of the extension seemed to do the trick but not sure if it'll still recur or not!

mrichtarsky commented 1 week ago

@EDIflyer Reinstall only helps for some time, I've been through about 15.

mrichtarsky commented 4 days ago

I've downgraded to 2024.2.0 and not faced the problem there so far.

https://addons.mozilla.org/en-US/firefox/addon/bitwarden-password-manager/versions/

https://addons.mozilla.org/firefox/downloads/file/4233394/bitwarden_password_manager-2024.2.0.xpi