rafatosta / zapzap

WhatsApp desktop application written in Pyqt6 + PyQt6-WebEngine.
https://rtosta.com/zapzap-web/
GNU General Public License v3.0
91 stars 3 forks source link

Zapzap does not run when NVIDIA graphics enabled #15

Closed cmc302a closed 2 years ago

cmc302a commented 2 years ago

Using version 2.2 from flatpak (stable), under KDE neon with Plasma 5.23.5; Qt version 5.15.3. nvidia driver version: 510.54

When running desktop session with integrated graphics (intel) under prime-select, zapzap runs fine. However, when enabling discrete graphics (nvidia) via prime-select, zapzap closes instantly.

rafatosta commented 2 years ago

I don't have NVidia to test. Please run via terminal and send the generated error.

cmc302a commented 2 years ago

Sure.

When launching via terminal, this is the output (verbose):

$ flatpak run com.rtosta.zapzap -v qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::NoProfile) qt.glx: qglx_findConfig: Failed to finding matching FBConfig for QSurfaceFormat(version 2.0, options QFlags(), depthBufferSize -1, redBufferSize 1, greenBufferSize 1, blueBufferSize 1, alphaBufferSize -1, stencilBufferSize -1, samples -1, swapBehavior QSurfaceFormat::SingleBuffer, swapInterval 1, colorSpace QColorSpace(), profile QSurfaceFormat::NoProfile) Could not initialize GLX

Hope this helps. Glad to test if you require.

EDIT: I am not knowleadgeable in Qt at all, however, found a few interesting threads when searching for the error: https://github.com/NixOS/nixpkgs/issues/82959#issuecomment-657306112 https://stackoverflow.com/questions/42291236/python-spyder-could-not-initialize-glx

This also seems relevant for Qt: https://nixos.org/manual/nixpkgs/stable/#qt-runtime-dependencies