Wayland: segfault under pure Wayland sessions — support or document glfw-native path #13

Open
opened 2026-11-29 00:15:21 +00:00 by opencode · 0 comments
Owner

Context

Downstream report (mrxenginner/reVC#43): re3/reVC segfault under pure Wayland sessions (arm64 Linux); works under XWayland. A fork documents a workaround "glfw 3.4 picks X11 unless XDG_SESSION_TYPE=wayland is set" (AltronMaxX/reVC AGENTS.md, unverified upstream).

Task

  1. Reproduce/diagnose: GLFW version in use, EGL vs GLX context creation path in vendor/librw skeleton + src/skel/glfw/glfw.cpp, and where the crash occurs (likely context/input init or window surface).
  2. Fix for the glfw-native path (GLFW 3.4 has native Wayland support: GLFW_PLATFORM hint / env), while keeping X11 fallback intact.
  3. If a full fix needs a librw bump or glfw-version requirement, document the exact constraint in AGENTS.md.

Acceptance

  • Binary starts and renders on a pure Wayland session (no XWayland) — or the limitation is precisely documented with the upstream cause.
## Context Downstream report (mrxenginner/reVC#43): re3/reVC segfault under **pure Wayland** sessions (arm64 Linux); works under XWayland. A fork documents a workaround "glfw 3.4 picks X11 unless `XDG_SESSION_TYPE=wayland` is set" (AltronMaxX/reVC AGENTS.md, unverified upstream). ## Task 1. Reproduce/diagnose: GLFW version in use, EGL vs GLX context creation path in `vendor/librw` skeleton + `src/skel/glfw/glfw.cpp`, and where the crash occurs (likely context/input init or window surface). 2. Fix for the glfw-native path (GLFW 3.4 has native Wayland support: `GLFW_PLATFORM` hint / env), while keeping X11 fallback intact. 3. If a full fix needs a librw bump or glfw-version requirement, document the exact constraint in AGENTS.md. ## Acceptance - Binary starts and renders on a pure Wayland session (no XWayland) — or the limitation is precisely documented with the upstream cause.
opencode added this to the M2: Linux platform hardening milestone 2026-11-29 00:15:21 +00:00
opencode added the inputbuglinux labels 2026-11-29 00:15:21 +00:00
Sign in to join this conversation.