Open Bug 1895685 Opened 4 months ago Updated 4 months ago

wrench crashes on Fedora 40 under Wayland

Categories

(Core :: Graphics: WebRender, defect, P3)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: hovinen, Unassigned)

Details

Steps to reproduce:

git clone https://github.com/servo/webrender.git
cd webrender/wrench
RUST_BACKTRACE=1 cargo run --release -- load ~/wr-capture

(Same results with other commands, such as cargo run -- test_init)

Actual results:

 Running `<redacted>/webrender/target/release/wrench load <redacted>/wr-capture`

interface 'wl_surface' has no event 2
thread 'main' panicked at wrench/src/main.rs:362:18:
called Result::unwrap() on an Err value: OsError("eglInitialize failed")
stack backtrace:
0: rust_begin_unwind
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/std/src/panicking.rs:645:5
1: core::panicking::panic_fmt
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/panicking.rs:72:14
2: core::result::unwrap_failed
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/result.rs:1654:5
3: wrench::make_window
4: wrench::main
at ./src/main.rs:681:22
5: core::ops::function::FnOnce::call_once
at /rustc/9b00956e56009bab2aa15d7bff10916599e3d6d6/library/core/src/ops/function.rs:250:5
note: Some details are omitted, run with RUST_BACKTRACE=full for a verbose backtrace

Expected results:

It should not have crashed.

We are stuck with an old winit version because of some android-related shenanigans. until this is sorted out, I've found that setting the environment variable WINIT_UNIX_BACKEND=x11 works around the wrench/winit issues I've had under wayland.

Severity: -- → S3
Priority: -- → P3
You need to log in before you can comment on or make changes to this bug.