Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wry cannot create windows on Arch Linux with Nvidia #1366

Open
ColonelThirtyTwo opened this issue Sep 23, 2024 · 1 comment
Open

Wry cannot create windows on Arch Linux with Nvidia #1366

ColonelThirtyTwo opened this issue Sep 23, 2024 · 1 comment

Comments

@ColonelThirtyTwo
Copy link

ColonelThirtyTwo commented Sep 23, 2024

Describe the bug

Wry cannot properly create windows on my machine. When using Wayland, wry logs with a wayland protocol error and then aborts. When using X11, either natively or via xwayland, Wry logs a "failed to create GBM buffer" error and shows a window containing a white screen.

Steps To Reproduce

Checkout wry-v0.43.1 and run cargo run --example simple or env GDK_BACKEND=x11 cargo run --example simple

Expected behavior

The window should be created and its contents visible.

Screenshots
Wayland:

warning: method `try_register_uri_scheme` is never used
   --> src/webkitgtk/web_context.rs:122:6
    |
105 | pub trait WebContextExt {
    |           ------------- method in this trait
...
122 |   fn try_register_uri_scheme<F>(&mut self, name: &str, handler: F) -> crate::Result<()>
    |      ^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: `wry` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 36.11s
     Running `target/debug/examples/simple`
Gdk-Message: 08:48:07.371: Error 71 (Protocol error) dispatching to Wayland display.

X11 and XWayland:

warning: method `try_register_uri_scheme` is never used
   --> src/webkitgtk/web_context.rs:122:6
    |
105 | pub trait WebContextExt {
    |           ------------- method in this trait
...
122 |   fn try_register_uri_scheme<F>(&mut self, name: &str, handler: F) -> crate::Result<()>
    |      ^^^^^^^^^^^^^^^^^^^^^^^
    |
    = note: `#[warn(dead_code)]` on by default

warning: `wry` (lib) generated 1 warning
    Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.10s
     Running `target/debug/examples/simple`
Failed to create GBM buffer of size 800x600: Invalid argument

Platform and Versions (please complete the following information):
OS: Arch Linux
Rustc: 1.81.0
Desktop Env: Plasma 6.1.5 and Gnome 47.0.1
webkit2gtk: 2.46.0
nvidia: 560.35.03

Additional context

@ColonelThirtyTwo
Copy link
Author

ColonelThirtyTwo commented Sep 23, 2024

Tauri issue: tauri-apps/tauri#10702

The WEBKIT_DISABLE_DMABUF_RENDERER fix works.

Seems like an issue with webkit2gtk since I get the exact same error when running their MiniBrowser for version 4.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants