ProtonMail / proton-bridge

Proton Mail Bridge application
GNU General Public License v3.0
1.14k stars 155 forks source link

Bridge fails to launch on Debian testing: Cannot find libOpenGL.so.0 #375

Closed aleuffre closed 1 year ago

aleuffre commented 1 year ago

Expected Behavior

Protonmail Bridge launches correctly

Current Behavior

❯ protonmail-bridge
/home/username/cache/protonmail/bridge/updates/3.0.21/bridge-gui: error while loading shared libraries: libOpenGL.so.0: cannot open shared object file: No such file or directory
FATA[Apr  7 11:30:30.123] Failed to launch                              error="exit status 127" exe_path=/home/username/.cache/protonmail/bridge/updates/3.0.21/bridge-gui exe_to_launch=bridge-gui launcher_path=/home/username/.cache/protonmail/bridge/updates/3.0.21/proton-bridge launcher_version=3.0.21
FATA[Apr  7 11:30:30.125] Failed to launch                              error="exit status 1"

Do note that after clearing the cache (rm -rf .cache/*) the app runs normally, and a notification appears that an update exists. When restarting and applying the update, the error comes back again.

Error also persists if I install the 3.0.21 .deb package from the website.

Possible Solution

Not sure if there's just an undeclared dependency, but manually installing libopengl0 sudo apt install libopengl0 fixed the issue, though the application displays with an unusual border, unlike before.

Old border (v2.3.0): image

New Border (v3.0.21): image

Also, not sure if relevant but on the previous versions I would get this warning:

WARN[Apr  7 11:41:11.388] Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.  pkg=frontent/qml

I do not get it anymore on the current version.

Version Information

3.0.21

On debian testing, fully up to date with apt. Gnome version 43.3, using Wayland

LBeernaertProton commented 1 year ago

hey @aleuffre. This is a Qt6 specific issue that we can't fix. You can try to apply the suggestion mentioned in #356.

Edit: Regarding the missing OpenGL library, that is also a Qt6 dependency.

joh4nd commented 6 months ago

apt install libopengl0 solved it for me https://github.com/ProtonMail/proton-bridge/issues/464