rafatosta / zapzap

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

Can't run on Wayland #215

Open raulcraveiro opened 1 month ago

raulcraveiro commented 1 month ago

Hello! I'm trying to run ZapZap on Fedora Workstation 40, running on Wayland with the new NVIDIA driver 555.

When I try to run the app, I get the following error on terminal:

qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile QPropertyAnimation: you're trying to animate the non-writable property width of your QObject js: Error with Permissions-Policy header: Feature xr-spatial-tracking's parameters are ignored. js: Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'attribution-reporting'. js: Error with Permissions-Policy header: Unrecognized feature: 'battery'. js: Error with Permissions-Policy header: Unrecognized feature: 'bluetooth'. js: Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'compute-pressure'. js: Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'interest-cohort'. js: Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'shared-storage'. js: Error with Permissions-Policy header: Origin trial controlled feature not enabled: 'shared-storage-select-url'. js: Error with Permissions-Policy header: Unrecognized feature: 'usb-unrestricted'. The Wayland connection experienced a fatal error: Erro de protocolo

natanael-b commented 1 month ago

Please give a try:

flatpak run --env=QT_QPA_PLATFORM="wayland" com.rtosta.zapzap 

If this works @rafatosta shold consider add --env=QT_QPA_PLATFORM=wayland as finish-args

rafatosta commented 1 month ago

Por um momento nem acreditei que era você 🤣🤣 Curto e acompanho seus conteúdos e do Dio!!

Cara, parece que essa última atualização da nvidia tá quebrando mesmo no Wayland. Minha orientação é usar o X11 através do Flatseal.

Há uma limitação da minha parte por não ter nvidia. Mesmo mantenho os pacotes mais atualizados do Qt, recebo relatos sobre a quebra na NVidia.

Uso o Fedora Workstation e mantenho um Copr para o Zapzap. Os pacotes do Qt atualizam mais rapidamente no Fedora do que no Flatpak, então vale a pena fazer o teste se quiser usar em Wayland ao invés do X11.

Se testar via copr avisa se funcionou, por favor. Obs: via copr é definido Wayland por padrão e só é possível mudar para x11 nas configurações do Zapzap. Então, se não abrir não há muito o que fazer.

Abraços

rafatosta commented 1 month ago

Please give a try:

flatpak run --env=QT_QPA_PLATFORM="wayland" com.rtosta.zapzap 

If this works @rafatosta shold consider add --env=QT_QPA_PLATFORM=wayland as finish-args

Have you worked around the problem with NVidia?

kuroki100 commented 1 month ago

i'm having the same issue, after trying the command given this was the error:

flatpak run --env=QT_QPA_PLATFORM="wayland" com.rtosta.zapzap qt.gui.imageio: libpng warning: iCCP: known incorrect sRGB profile QPropertyAnimation: you're trying to animate the non-writable property width of your QObject The Wayland connection experienced a fatal error: Protocol error

Pryka commented 1 month ago

Same issue, crash on Wayland.

githubkuyaya commented 1 month ago

I'm on Wayland aswell (Hyprland/arch) and it works without issue here, can't reproduce

AxeldeWater commented 1 month ago

I'm on Wayland aswell (Hyprland/arch) and it works without issue here, can't reproduce

@githubkuyaya you are not using the AUR version by any chance? Flatpak version right?

githubkuyaya commented 1 month ago

I'm on Wayland aswell (Hyprland/arch) and it works without issue here, can't reproduce

@githubkuyaya you are not using the AUR version by any chance? Flatpak version right?

Oh, no I'm using the AUR version. Sorry, didn't realize that this was about the Flatpak version.

serhumanos commented 3 weeks ago

when I used Wayland with mesa drivers, it works ok.. but now change to x11 and after install nvidia drivers zapzap crashes on start

EDIT: with wayland + nvidia, update flatpak to install flatpak-nvidia-drivers

CazSaa commented 2 weeks ago

I'm getting the same error with the AUR version on KDE Plasma + Wayland