cinnyapp / cinny-desktop

Yet another matrix client for desktop
GNU Affero General Public License v3.0
415 stars 49 forks source link

The application does not start in Wayland with NVIDIA #369

Open ogarcia opened 1 month ago

ogarcia commented 1 month ago

Describe the bug

I detail this bug in case it happens to someone else. It is not a Cinny bug directly as the problem is in WebKitGTK, but it directly affects Cinny Desktop users.

If you have an NVIDIA graphics card and use Wayland the application will not start. Instead it gives a dk-Message: 12:33:51.438: Error 71 (Error de protocolo) dispatching to Wayland display. error and stops.

If you start the application with the WEBKIT_DISABLE_COMPOSITING_MODE=1 environment variable then it works without problems.

export WEBKIT_DISABLE_COMPOSITING_MODE=1
cinny

Or simply run WEBKIT_DISABLE_COMPOSITING_MODE=1 cinny

Reproduction

  1. Download Cinny
  2. Run
  3. Crash

Expected behavior

It should simply not close the application and should work without any problems.

Platform and versions

OS: Arch Linux
Cinny Version: 4.2.1
Homeserver: n/a

Additional context

One way to solve this would be for Cinny to start using Tauri 2.0 since with the new versions of WebKitGTK this problem does not exist.