After upgrading Ubuntu 20.04 Desktop to 22.04 Desktop mongodb-compass
crashes after a fews seconds booting with:
mongo compass FATAL gpu_data_manager_impl_private.cc(894)] The display compositor is frequently crashing
It seems like there is an issue with chromium, but I was not able to find a clean fix for this.
2
Answers
The solution was quite simple:
sudo apt remove mongodb-compass
Reinstall MongoDB Compass:
deb
file from the official Download pagecd ~/Download
andsudo apt install ./mongodb-compass_*_amd64.deb
like suggested hereI found that running
mongodb-compass --no-sandbox
worked for me on Kubuntu 22.04.1.I saw this flag on another Electron app issue https://github.com/mifi/lossless-cut/issues/1025 It looks like a bug in Electron. I believe electron passes this flag to the chromium browser that it uses, however this won’t run mongodb compass in a secure sandbox environment: https://chromium.googlesource.com/chromium/src/+/master/docs/design/sandbox.md
Needless to say, it works and I added the flag to my shortcut
/usr/share/applications/mongodb-compass.desktop
which now looks like this: