bitwarden / clients

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

Delayed opening on Ubuntu 22.04.2 LTS #5029

Open drmfarrell opened 1 year ago

drmfarrell commented 1 year ago

Steps To Reproduce

i installed bitwarden from the ubuntu app store .

when launching bitwarden, the window appears, but there is nothing in the window.

after about 2 minutes, the standard interface appears.

this has happened to me on 2 different machines with the version of ubuntu.

the app seems to work fine on my windows machines.

Expected Result

i expect the software to launch immediately.

i honestly thought it was broken on my other machine, so I use bitwarden through a firefox plugin.

with this new machine, I just let it sit over the weekend and came back to it actually working.

Actual Result

the app doesn't load until after a 2 minute delay.

Screenshots or Videos

No response

Additional Context

No response

Operating System

Linux

Operating System Version

Ubuntu 22.04.2 LTS

Installation method

Other

Build Version

2023.2.0

Issue Tracking Info

joshtrichards commented 1 year ago

Possibly related to #4997 ?

Krychaz commented 1 year ago

Hello there,

I tried to replicate this issue by testing it on a local VM. I was unable to replicate it. Could you press F12 when you see the blank window and see if there are any errors within the network tab?

drmfarrell commented 1 year ago

so i was mashing F12 while I had the blank/empty window, and nothing happened.

However, once it finally showed stuff, I saw the console thing on the right come up, and I see a red X balloon with a 1 next to it, and this is what I found when clicking on it:

"

  1. Indicate whether a cookie is intended to be set in a cross-site context by specifying its SameSite attribute
  2. Because a cookie’s SameSite attribute was not set or is invalid, it defaults to SameSite=Lax, which prevents the cookie from being set in a cross-site context. This behavior protects user data from accidentally leaking to third parties and cross-site request forgery.

    Resolve this issue by updating the attributes of the cookie:

    • Specify SameSite=None and Secure if the cookie is intended to be set in cross-site contexts. Note that only cookies sent over HTTPS may use the Secure attribute.
      • Specify SameSite=Strict or SameSite=Lax if the cookie should not be set by cross-site requests.
        1. AFFECTED RESOURCES
        2. 1 cookie
        3. Name Domain & Path _mitata identity.bitwarden.com/

"

On Mon, Mar 20, 2023 at 4:44 PM Krystian Kan @.***> wrote:

Hello there,

I tried to replicate this issue by testing it on a local VM. I was unable to replicate it. Could you press F12 when you see the blank window and see if there are any errors within the network tab?

— Reply to this email directly, view it on GitHub https://github.com/bitwarden/clients/issues/5029#issuecomment-1476908306, or unsubscribe https://github.com/notifications/unsubscribe-auth/A6TRKRT7EXJ3F5LEMSTYYZDW5C6UFANCNFSM6AAAAAAWBDULBU . You are receiving this because you authored the thread.Message ID: @.***>

drmfarrell commented 1 year ago

now the app won't even open. I must've done some update. I've reverted to using the firefox plugin.

drmfarrell commented 1 year ago

oooh, so I thought I'd try launching it from the terminal.

user@user-desktop:~$ bitwarden 
(node:8809) DeprecationWarning: file property is deprecated and will be removed in v5.
(Use `bitwarden --trace-deprecation ...` to show where the warning was created)
A JavaScript error occurred in the main process
Uncaught Exception:
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at Conf._deserialize (/snap/bitwarden/84/resources/app.asar/main.js:6643:43)
    at get store [as store] (/snap/bitwarden/84/resources/app.asar/main.js:6854:43)
    at new Conf (/snap/bitwarden/84/resources/app.asar/main.js:6707:32)
    at new ElectronStore (/snap/bitwarden/84/resources/app.asar/main.js:10440:3)
    at new ElectronStorageService (/snap/bitwarden/84/resources/app.asar/main.js:52688:22)
    at new Main (/snap/bitwarden/84/resources/app.asar/main.js:53056:31)
    at 99726 (/snap/bitwarden/84/resources/app.asar/main.js:43789:18)
    at __webpack_require__ (/snap/bitwarden/84/resources/app.asar/main.js:57139:42)
    at /snap/bitwarden/84/resources/app.asar/main.js:57195:37

(bitwarden:8809): Gtk-WARNING **: 15:27:54.536: Theme parsing error: gtk.css:1422:23: 'font-feature-settings' is not a valid property name

(bitwarden:8809): Gtk-WARNING **: 15:27:54.540: Theme parsing error: gtk.css:3308:25: 'font-feature-settings' is not a valid property name

(bitwarden:8809): Gtk-WARNING **: 15:27:54.541: Theme parsing error: gtk.css:3770:23: 'font-feature-settings' is not a valid property name
[8918:0330/152754.657571:ERROR:gbm_wrapper.cc(293)] Failed to export buffer to dma_buf: No such file or directory (2)
[8918:0330/152754.657729:ERROR:gbm_wrapper.cc(293)] Failed to export buffer to dma_buf: No such file or directory (2)
[8918:0330/152754.657829:ERROR:gbm_wrapper.cc(293)] Failed to export buffer to dma_buf: No such file or directory (2)

and there's like 30+ more lines of the same as the last one, and then it just sits there until i ctrl-c it

drmfarrell commented 1 year ago

oh lulz, it turns out there's an update... and I can't update because there are like 20 PIDs of bitwarden running. reboot............

drmfarrell commented 1 year ago

nah, that didn't fix it. It was the update through the ubuntu app store thing btw

conny-nyman commented 5 months ago

I just installed bitwarden from the ubuntu software app after a fresh ubuntu install (v.22.04) and I have the same issue as described, a blank window opens and stays that way for a couple of minutes before the UI shows up.

Logs from the terminal:

<user>:~$ bitwarden

(bitwarden:8689): Gtk-WARNING **: 20:04:05.900: Theme parsing error: gtk.css:1422:23: 'font-feature-settings' is not a valid property name

(bitwarden:8689): Gtk-WARNING **: 20:04:05.904: Theme parsing error: gtk.css:3308:25: 'font-feature-settings' is not a valid property name

(bitwarden:8689): Gtk-WARNING **: 20:04:05.904: Theme parsing error: gtk.css:3770:23: 'font-feature-settings' is not a valid property name
[8770:0118/200406.072098:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8770:0118/200406.072259:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
[8770:0118/200406.072350:ERROR:gbm_wrapper.cc(253)] Failed to export buffer to dma_buf: No such file or directory (2)
...
VincentPelletier1 commented 2 months ago

Same here. I did not have the issue until I wipe my OS clean and installed it back (Ubuntu 22.04). It works on chrome, but doesn't work using the app from the ubuntu store. It just buffers endlessly. Tried letting it run a whole weekend and it never stopped buffering.