Skip to content

WSL: Rerun native crashes on launch with Could not find wayland compositor #6748

@jprochazk

Description

@jprochazk

On WSL2, the native viewer crashes immediately on launch with "Could not find wayland compositor".

$ rerun
[2024-07-03T15:03:02Z INFO  re_sdk_comms::server] Hosting a SDK server over TCP at 0.0.0.0:9876. Connect with the Rerun logging SDK.
[2024-07-03T15:03:02Z INFO  re_viewer] Forcing graphics backend to Gl.
Error: winit EventLoopError: os error at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.9/src/platform_impl/linux/wayland/event_loop/mod.rs:81: Could not find wayland compositor -> os error at /usr/local/cargo/registry/src/index.crates.io-6f17d22bba15001f/winit-0.29.9/src/platform_impl/linux/wayland/event_loop/mod.rs:81: Could not find wayland compositor

The documented workaround of setting WAYLAND_DISPLAY= works, but we could at least try to improve the error message.

Tested on both rerun 0.16.1 and latest main.

System information

Windows Subsystem for Linux (WSL2)
Build: 19045
Branch: vb_release
Release: Ubuntu 22.04.4 LTS
Kernel: Linux 5.15.153.1-microsoft-standard-WSL2

Metadata

Metadata

Assignees

No one assigned

    Labels

    💣 crashcrash, deadlock/freeze, do-no-start🪳 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions