Bitwarden flatpak crash, TypeError: Cannot read properties of undefined (reading 'osSupportsBiometric')

Hi,

The Bitwarden 2023.9.2 application installed via Flatpak stopped working a few hours ago.

Here’s the error I get every time I try to enter my password:

$ flatpak run com.bitwarden.desktop
(node:2) DeprecationWarning: file property is deprecated and will be removed in v5.
(Use `bitwarden --trace-deprecation ...` to show where the warning was created)
Gtk-Message: 22:22:54.209: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:22:54.209: Failed to load module "pk-gtk-module"
Gtk-Message: 22:22:54.209: Failed to load module "canberra-gtk-module"
Gtk-Message: 22:22:54.209: Failed to load module "pk-gtk-module"
(node:2) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'init')
    at BiometricsService.<anonymous> (/app/Bitwarden/resources/app.asar/main.js:47194:55)
    at Generator.next (<anonymous>)
    at /app/Bitwarden/resources/app.asar/main.js:47160:71
    at new Promise (<anonymous>)
    at biometrics_service_awaiter (/app/Bitwarden/resources/app.asar/main.js:47156:12)
    at BiometricsService.init (/app/Bitwarden/resources/app.asar/main.js:47193:16)
    at Main.<anonymous> (/app/Bitwarden/resources/app.asar/main.js:53805:46)
    at Generator.next (<anonymous>)
    at fulfilled (/app/Bitwarden/resources/app.asar/main.js:53702:58)
(node:2) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
22:22:54.987 › Error: No password found
22:22:55.016 › Error: No password found
22:22:55.056 › Error: No password found
22:22:55.057 › Error: No password found
22:22:55.057 › Error: No password found
22:22:55.088 › Error: No password found
22:22:55.112 › TypeError: Cannot read properties of undefined (reading 'osSupportsBiometric')
    at BiometricsService.<anonymous> (/app/Bitwarden/resources/app.asar/main.js:47199:55)
    at Generator.next (<anonymous>)
    at /app/Bitwarden/resources/app.asar/main.js:47160:71
    at new Promise (<anonymous>)
    at biometrics_service_awaiter (/app/Bitwarden/resources/app.asar/main.js:47156:12)
    at BiometricsService.osSupportsBiometric (/app/Bitwarden/resources/app.asar/main.js:47198:16)
    at BiometricsService.<anonymous> (/app/Bitwarden/resources/app.asar/main.js:47209:58)
    at Generator.next (<anonymous>)
    at fulfilled (/app/Bitwarden/resources/app.asar/main.js:47157:58)
22:22:55.113 › TypeError: Cannot read properties of undefined (reading 'osSupportsBiometric')
    at BiometricsService.<anonymous> (/app/Bitwarden/resources/app.asar/main.js:47199:55)
    at Generator.next (<anonymous>)
    at /app/Bitwarden/resources/app.asar/main.js:47160:71
    at new Promise (<anonymous>)
    at biometrics_service_awaiter (/app/Bitwarden/resources/app.asar/main.js:47156:12)
    at BiometricsService.osSupportsBiometric (/app/Bitwarden/resources/app.asar/main.js:47198:16)
    at DesktopCredentialStorageListener.<anonymous> (/app/Bitwarden/resources/app.asar/main.js:47383:59)
    at Generator.next (<anonymous>)
    at /app/Bitwarden/resources/app.asar/main.js:47311:71
    at new Promise (<anonymous>)
22:22:55.120 › Error: No password found
22:22:55.241 › Error: No password found
22:22:55.775 › Error: No password found
22:22:55.948 › Error: No password found
22:22:56.193 › Error: No password found
22:22:56.193 › Error: No password found
(node:2) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'setContextMenu')
    at TrayMain.updateContextMenu (/app/Bitwarden/resources/app.asar/main.js:46304:23)
    at MessagingMain.updateTrayMenu (/app/Bitwarden/resources/app.asar/main.js:45804:28)
    at MessagingMain.onMessage (/app/Bitwarden/resources/app.asar/main.js:45730:22)
    at MessagingMain.<anonymous> (/app/Bitwarden/resources/app.asar/main.js:45721:151)
    at Generator.next (<anonymous>)
    at /app/Bitwarden/resources/app.asar/main.js:45700:71
    at new Promise (<anonymous>)
    at messaging_main_awaiter (/app/Bitwarden/resources/app.asar/main.js:45696:12)
    at IpcMainImpl.<anonymous> (/app/Bitwarden/resources/app.asar/main.js:45721:79)
    at IpcMainImpl.emit (node:events:513:28)
(node:2) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 5)
22:22:56.424 › Error: No password found
22:22:56.450 › Error: No password found
22:22:56.614 › Error: No password found
22:22:56.614 › Error: No password found
22:22:56.782 › Error: No password found
22:22:56.881 › Error: No password found
(node:2) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'setContextMenu')
    at TrayMain.updateContextMenu (/app/Bitwarden/resources/app.asar/main.js:46304:23)
    at MessagingMain.updateTrayMenu (/app/Bitwarden/resources/app.asar/main.js:45804:28)
    at MessagingMain.onMessage (/app/Bitwarden/resources/app.asar/main.js:45730:22)
    at MessagingMain.<anonymous> (/app/Bitwarden/resources/app.asar/main.js:45721:151)
    at Generator.next (<anonymous>)
    at /app/Bitwarden/resources/app.asar/main.js:45700:71
    at new Promise (<anonymous>)
    at messaging_main_awaiter (/app/Bitwarden/resources/app.asar/main.js:45696:12)
    at IpcMainImpl.<anonymous> (/app/Bitwarden/resources/app.asar/main.js:45721:79)
    at IpcMainImpl.emit (node:events:513:28)
(node:2) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 6)
22:22:56.908 › Error: No password found
22:22:56.908 › Error: No password found
22:22:57.178 › Error: No password found
22:22:58.032 › Error: No password found
[42:1013/222259.508881:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times!
[42:1013/222259.522304:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times!
[42:1013/222302.201415:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

I use Gnome Wayland on Fedora38,

$ flatpak list
Name                                              Application ID                                                  Version                          Branch                 Origin             Installation
Bitwarden                                         com.bitwarden.desktop                                           2023.9.2                         stable                 flathub            system

Do you have any idea where the problem might be coming from?

Do you think it is about biometric feature?

Best regards,
Stéphane


Message also posted on Fedora Forum

Hi @klein_stephane,

this is likely related to Linux Desktop Client blanks out when entering vault key · Issue #6560 · bitwarden/clients · GitHub.

Kind regards,
Daniel