ProtonMail / proton-bridge

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

Bridge GUI does not start and crashes in a Wayland session and NVIDIA hybrid setup #344

Closed fthx closed 1 year ago

fthx commented 1 year ago

Hi,

Ubuntu 22.04 Ubuntu Wayland session Nvidia gpu, hybrid mode Latest Nvidia proprietary driver from Ubuntu

Bridge GUI does not start. Bridge autostart as a background task is ok. After clicking on GUI app icon, Bridge seems to crash (nothing happens) and Thunderbird cannot connect anymore to localhost/bridge port.

I can see some similar bug on some apps that do mix up X and Wayland. This bug does not happen in a pure dGPU setup or any X session.

LBeernaertProton commented 1 year ago

Hey @fthx this is probably related to Qt's GPU accelerated rendering, If you are experiencing issues, I would recommend trying to start bridge with the --software-renderer flag which, as the flag states, will use a software based renderer instead. Please let us know if that fixes it for you.

fthx commented 1 year ago

No!

LBeernaertProton commented 1 year ago

Could tell us which version of the bridge you are running?

fthx commented 1 year ago

3.0.16 updated from 2.4.8

fthx commented 1 year ago

just tried some qt qpa export options but no way

LBeernaertProton commented 1 year ago

Can you try with QT_QPA_PLATFORM=xcb protonmail-bridge ?

fthx commented 1 year ago

this one works!

fthx commented 1 year ago

I forgot to try the most evident one...

LBeernaertProton commented 1 year ago

Happy to hear the issue is solved for you.

fthx commented 1 year ago

Well, that's not what I expected, though. :-) Of course I can add this QT export in the launcher but I hoped a neat solution to be found. Since recently Nvidia drivers in Ubuntu 22.04 are natively Wayland compatible so my Ubuntu setup is not a hack.

LBeernaertProton commented 1 year ago

Unfortunately, this falls outside the scope of what we can address.

We are using the official release binaries from Qt6 for our builds. If you would like to see this particular issue addressed, I would recommend opening a bug on their issue tracker.

fthx commented 1 year ago

OK!

fthx commented 1 year ago

Note that this issue does not exist using latest dev Ubuntu 23.04.