Skip to content

Application crashes (SIGSEGV) on modern Linux systems due to outdated wgpu/winit dependencies #22

@jalovisko

Description

@jalovisko

The application crashes on startup on modern Linux systems. Two separate issues happen:

  1. Wayland error on native Wayland: interface 'wl_surface' has no event 2.
    Caused by winit 0.24.0 using wayland-client 0.28, which is incompatible with current Wayland compositors.
  2. SIGSEGV + swap chain panic when forcing X11 via WINIT_UNIX_BACKEND=x11 (it was an attempt to make it run on Wayland): thread 'main' panicked at gui/src/app.rs:175:14:
    Failed to acquire next swap chain texture: Outdated
    fish: Job terminated by signal SIGSEGV (Address boundary error)

It was tested with both WGPU_BACKEND=gl and WGPU_BACKEND=vulkan, same result.

Root cause seems to be that the GUI crate pins very old versions that are incompatible with modern drivers and compositors:

  • wgpu = "0.8.1" (current: 28.x), uses the removed SwapChain API
  • winit = "0.24.0" (current: 0.30.x), uses old wayland-client

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions