Some time ago, I switched to Bitwarden to manage my passwords, partly because KDE Wallet is a bit clunky, but also because it can only retrieve passwords from the machine that it is installed on, which limits it to Linux only. At first I was fairly happy with BW and used it on my tablet, my phone, my desktop and my laptop. I installed it using snap via Discover.
Fairly recently, I’ve been getting messages in Kubuntu telling me it needs updating, and I must exit it so that snap can update it. I found that I was unable to do this via the GUI, because it didn’t open, so I’ve been killing bitwarden via htop. More recently, however, I have found that there seem to be dozens of bitwarden processes and as soon as I kill the parent of one set, another appears. This prevents update from occurring. Eventually I got all instances killed
When I try to launch bitwarden from the console, I get:
terry@OptiPlex:~$ /snap/bin/bitwarden
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/127/resources/app.asar/main.js:10101:43)
at get store (/snap/bitwarden/127/resources/app.asar/main.js:10312:43)
at new Conf (/snap/bitwarden/127/resources/app.asar/main.js:10165:32)
at new ElectronStore
(/snap/bitwarden/127/resources/app.asar/main.js:14994:3)
at new ElectronStorageService
(/snap/bitwarden/127/resources/app.asar/main.js:88235:22)
at new Main (/snap/bitwarden/127/resources/app.asar/main.js:88968:31)
at 83243 (/snap/bitwarden/127/resources/app.asar/main.js:75098:18)
at __webpack_require__
(/snap/bitwarden/127/resources/app.asar/main.js:91864:42)
at /snap/bitwarden/127/resources/app.asar/main.js:91920:37
(bitwarden-app:8364): Gtk-WARNING **: 07:44:50.011: Theme parsing error:
gtk.css:3536:25: 'font-feature-settings' is not a valid property name
Gtk-Message: 07:44:50.030: Failed to load module "colorreload-gtk-module"
Gtk-Message: 07:44:50.030: Failed to load module
"window-decorations-gtk-module"
[8364:1219/074450.078247:ERROR:object_proxy.cc(576)] Failed to call
method: org.kde.KWallet.isEnabled: object_path= /modules/kwalletd6:
org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents
this sender from sending this message to this recipient;
type="method_call", sender=":1.153" (uid=1000 pid=8364
comm="/snap/bitwarden/127/bitwarden-app --no-sandbox"
label="snap.bitwarden.bitwarden (enforce)") interface="org.kde.KWallet"
member="isEnabled" error name="(unset)" requested_reply="0"
destination="org.kde.kwalletd6" (uid=1000 pid=2206
comm="/usr/bin/kwalletd6 --pam-login 13 14" label="unconfined")
[8364:1219/074450.078287:ERROR:kwallet_dbus.cc(112)] Error contacting
kwalletd6 (isEnabled)
[8364:1219/074450.078983:ERROR:object_proxy.cc(576)] Failed to call
method: org.kde.KLauncher.start_service_by_desktop_name: object_path=
/KLauncher: org.freedesktop.DBus.Error.ServiceUnknown: The name
org.kde.klauncher was not provided by any .service files
[8364:1219/074450.079001:ERROR:kwallet_dbus.cc(81)] Error contacting
klauncher to start kwalletd6
[8364:1219/074450.079193:ERROR:object_proxy.cc(576)] Failed to call
method: org.kde.KWallet.close: object_path= /modules/kwalletd6:
org.freedesktop.DBus.Error.AccessDenied: An AppArmor policy prevents
this sender from sending this message to this recipient;
type="method_call", sender=":1.153" (uid=1000 pid=8364
comm="/snap/bitwarden/127/bitwarden-app --no-sandbox"
label="snap.bitwarden.bitwarden (enforce)") interface="org.kde.KWallet"
member="close" error name="(unset)" requested_reply="0"
destination="org.kde.kwalletd6" (uid=1000 pid=2206
comm="/usr/bin/kwalletd6 --pam-login 13 14" label="unconfined")
[8364:1219/074450.079206:ERROR:kwallet_dbus.cc(502)] Error contacting
kwalletd6 (close)
libGL error: MESA-LOADER: failed to open nouveau (search paths
/snap/bitwarden/127/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: nouveau
libGL error: MESA-LOADER: failed to open swrast (search paths
/snap/bitwarden/127/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: swrast
[8395:1219/074450.091897:ERROR:angle_platform_impl.cc(44)]
Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289:
Could not create a backing OpenGL context.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error
12289: Could not create a backing OpenGL context.
[8395:1219/074450.092070:ERROR:gl_display.cc(497)] EGL Driver message
(Critical) eglInitialize: Could not create a backing OpenGL context.
[8395:1219/074450.092120:ERROR:gl_display.cc(767)] eglInitialize OpenGL
failed with error EGL_NOT_INITIALIZED, trying next display type
[8395:1219/074450.093149:ERROR:angle_platform_impl.cc(44)]
Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289:
Could not create a backing OpenGL context.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error
12289: Could not create a backing OpenGL context.
[8395:1219/074450.093238:ERROR:gl_display.cc(497)] EGL Driver message
(Critical) eglInitialize: Could not create a backing OpenGL context.
[8395:1219/074450.093318:ERROR:gl_display.cc(767)] eglInitialize
OpenGLES failed with error EGL_NOT_INITIALIZED
[8395:1219/074450.093395:ERROR:gl_display.cc(801)] Initialization of all
EGL display types failed.
[8395:1219/074450.093486:ERROR:gl_ozone_egl.cc(26)]
GLDisplayEGL::Initialize failed.
(bitwarden-app:8364): Gtk-WARNING **: 07:44:50.094: Theme parsing error:
gtk.css:3536:25: 'font-feature-settings' is not a valid property name
[8395:1219/074450.098507:ERROR:angle_platform_impl.cc(44)]
Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289:
Could not create a backing OpenGL context.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error
12289: Could not create a backing OpenGL context.
[8395:1219/074450.098596:ERROR:gl_display.cc(497)] EGL Driver message
(Critical) eglInitialize: Could not create a backing OpenGL context.
[8395:1219/074450.098662:ERROR:gl_display.cc(767)] eglInitialize OpenGL
failed with error EGL_NOT_INITIALIZED, trying next display type
[8395:1219/074450.100067:ERROR:angle_platform_impl.cc(44)]
Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289:
Could not create a backing OpenGL context.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error
12289: Could not create a backing OpenGL context.
[8395:1219/074450.100143:ERROR:gl_display.cc(497)] EGL Driver message
(Critical) eglInitialize: Could not create a backing OpenGL context.
[8395:1219/074450.100203:ERROR:gl_display.cc(767)] eglInitialize
OpenGLES failed with error EGL_NOT_INITIALIZED
[8395:1219/074450.100261:ERROR:gl_display.cc(801)] Initialization of all
EGL display types failed.
[8395:1219/074450.100329:ERROR:gl_ozone_egl.cc(26)]
GLDisplayEGL::Initialize failed.
[8395:1219/074450.102072:ERROR:viz_main_impl.cc(166)] Exiting GPU
process due to errors during initialization
libGL error: MESA-LOADER: failed to open nouveau (search paths
/snap/bitwarden/127/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: nouveau
libGL error: MESA-LOADER: failed to open swrast (search paths
/snap/bitwarden/127/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: swrast
[8431:1219/074450.177636:ERROR:angle_platform_impl.cc(44)]
Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289:
Could not create a backing OpenGL context.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error
12289: Could not create a backing OpenGL context.
[8431:1219/074450.177753:ERROR:gl_display.cc(497)] EGL Driver message
(Critical) eglInitialize: Could not create a backing OpenGL context.
[8431:1219/074450.177823:ERROR:gl_display.cc(767)] eglInitialize OpenGL
failed with error EGL_NOT_INITIALIZED, trying next display type
[8431:1219/074450.178809:ERROR:angle_platform_impl.cc(44)]
Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289:
Could not create a backing OpenGL context.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error
12289: Could not create a backing OpenGL context.
[8431:1219/074450.178913:ERROR:gl_display.cc(497)] EGL Driver message
(Critical) eglInitialize: Could not create a backing OpenGL context.
[8431:1219/074450.178971:ERROR:gl_display.cc(767)] eglInitialize
OpenGLES failed with error EGL_NOT_INITIALIZED
[8431:1219/074450.179028:ERROR:gl_display.cc(801)] Initialization of all
EGL display types failed.
[8431:1219/074450.179083:ERROR:gl_ozone_egl.cc(26)]
GLDisplayEGL::Initialize failed.
[8431:1219/074450.182551:ERROR:angle_platform_impl.cc(44)]
Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289:
Could not create a backing OpenGL context.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error
12289: Could not create a backing OpenGL context.
[8431:1219/074450.182607:ERROR:gl_display.cc(497)] EGL Driver message
(Critical) eglInitialize: Could not create a backing OpenGL context.
[8431:1219/074450.182670:ERROR:gl_display.cc(767)] eglInitialize OpenGL
failed with error EGL_NOT_INITIALIZED, trying next display type
[8431:1219/074450.183620:ERROR:angle_platform_impl.cc(44)]
Display.cpp:1083 (initialize): ANGLE Display::initialize error 12289:
Could not create a backing OpenGL context.
ERR: Display.cpp:1083 (initialize): ANGLE Display::initialize error
12289: Could not create a backing OpenGL context.
[8431:1219/074450.183708:ERROR:gl_display.cc(497)] EGL Driver message
(Critical) eglInitialize: Could not create a backing OpenGL context.
[8431:1219/074450.183765:ERROR:gl_display.cc(767)] eglInitialize
OpenGLES failed with error EGL_NOT_INITIALIZED
[8431:1219/074450.183819:ERROR:gl_display.cc(801)] Initialization of all
EGL display types failed.
[8431:1219/074450.183870:ERROR:gl_ozone_egl.cc(26)]
GLDisplayEGL::Initialize failed.
[8431:1219/074450.185358:ERROR:viz_main_impl.cc(166)] Exiting GPU
process due to errors during initialization
MESA-LOADER: failed to open nouveau (search paths
/snap/bitwarden/127/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
failed to load driver: nouveau
MESA-LOADER: failed to open kms_swrast (search paths
/snap/bitwarden/127/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
failed to load driver: kms_swrast
MESA-LOADER: failed to open swrast (search paths
/snap/bitwarden/127/gnome-platform/usr/lib/x86_64-linux-gnu/dri)
failed to load swrast driver
I tried uninstalling and reinstalling via Discover and that seemed to work, but it is now the same as it was earlier.