[BUG] SteamVR 2.19.3+ beta: vrcompositor SIGSEGV in RenderThread when an app submits a Vulkan overlay texture

Abierto
#1,078 2 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Error
Claridad
Bien especificado
Estado de actividad
Activo
Stack tecnológico
linux

Línea de trabajo

Start by comparing Vulkan overlay texture submission through IVROverlay::SetOverlayTexture with VRVulkanTextureData_t on SteamVR 2.19.3 beta and 2.18.4. The crash occurs in vrcompositor's RenderThread on the first texture upload, with a reported Vulkan UNKNOWN_ERROR in vulkanrenderer.cpp at line 3719. Use the supplied crash logs and coredumps to trace the regression; done means Vulkan overlay textures are accepted and displayed without crashing.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

Describe the bug

On SteamVR 2.19.3 beta (build 26655409, v1794604515) and 2.19.4 beta
(build 26793788), vrcompositor segfaults as soon as an OpenVR overlay application submits its first Vulkan overlay texture via IVROverlay::SetOverlayTexture with VRVulkanTextureData_t.

Reproduced with WayVR (an OpenVR overlay app that renders with wgpu and calls set_image_vulkan()). The crash is immediate and consistent: vrcompositor dies in RenderThread, and WayVR then receives EVROverlayError(24): InvalidTexture for every subsequent overlay.

The same WayVR builds work on 2.18.4. The crash is identical with all three WayVR screen-capture backends (wlr-screencopy GPU, wlr-screencopy CPU, and PipeWire GPU), so neither DMA-BUF nor the capture path is involved — the common element is the Vulkan texture handoff itself.

To Reproduce

  1. Use SteamVR 2.19.3+ beta on Linux with an NVIDIA GPU and a Wayland compositor.
  2. Start WayVR (wayvr-git 26.8.0.r158.2df0c63, or release 26.8.0).
  3. Open the WayVR dashboard / screen overlay so it submits an overlay texture.
  4. vrcompositor segfaults within about a second. SteamVR reports the compositor crash; WayVR logs InvalidTexture from then on.

The compositor can also die before the screen capture stream produces a frame: in a PipeWire run, vrcompositor crashed 12 seconds before WayVR received its first PipeWire buffer, on the first texture upload from a toast overlay.

Expected behavior

Vulkan overlay textures submitted via VRVulkanTextureData_t are accepted and displayed, as they are on SteamVR 2.18.4.

System Information

  • SteamVR 2.19.4 beta, build 26793788 — crashes, same signature at +0x42f595
  • SteamVR: 2.19.3 beta, build 26655409 (v1794604515) — crashes
  • SteamVR 2.18.4 (public, build 25998080) — same WayVR sessions work
  • SteamVR 2.19.2 (linux-temp) — separate display-shaking regression, not usable as a workaround
  • Headsets: Valve Index (lighthouse) and Steam Frame (vrlink wireless) — both reproduce the crash
  • GPU: NVIDIA GeForce RTX 4080, driver 615.78.08 (open kernel module)
  • Distro: Omarchy 4.5 / Arch, kernel 7.2.15-1-omarchy
  • Desktop: Umbriel 0.1.0.r1585 (wlroots 0.20), xdg-desktop-portal-umbriel
  • WayVR: wayvr-git 26.8.0.r158.2df0c63-1 and wayvr 26.8.0-1

Additional context

Crash signature is always the same:

Signal: 11 (SEGV), si_code: SEGV_MAPERR
Thread: RenderThread
#0  vrcompositor + 0x42be15   <-- call *0x18(%rax)
#1  vrcompositor + 0x1d94fe
#2  vrcompositor + 0x29d17b
#3  vrcompositor + 0x2a3e19
#4  vrcompositor + 0x2a62d8
#5  vrcompositor + 0x2dfec2
#6  libc.so.6 + 0x98042
#7  libc.so.6 + 0x12072c

Kernel log from the ScreenCopy GPU run:

RenderThread[160944]: segfault at 7f00d4029 ip 000055e1677fee15
sp 00007f008f7f65c0 error 4 in vrcompositor[42ae15,...+399000]

The fault address is a corrupted pointer and the faulting instruction is an indirect call through [rax+0x18], i.e. the compositor is calling through a bad object/vtable pointer. The binary is stripped, so the coredump cannot be symbolized locally.

Before the RenderThread crash, some 2.19.3 attempts also logged:

Fatal : VkResult is "UNKNOWN_ERROR" in
/data/src/common/vrcommon/vrrenderer/vulkanrenderer.cpp at line 3719

This happened with the older WayVR 26.8.0 release as well, immediately before its compositor crash, so the failure is not specific to the current wayvr-git build.

The same crash occurs on both headsets — Valve Index over DisplayPort and Steam Frame over vrlink wireless — so it is not specific to either headset's display or streaming path.

Breakpad crash IDs: bp-774c2020-5ab0-4fc5-bbcb-eb6ff2261119, bp-6d62bf61-f519-451d-a449-f8cfa2261118, bp-1c9d940a-e445-4ed8-b751-548df2261118, bp-3da78aa5-0456-4ad6-acfe-845392261118

I can provide the full vrcompositor-linux.txt, steamsysinfo.txt, coredumpctl info output, or the coredumps/minidumps if useful.

Lenguaje dominante
Shell
Estrellas
1.2k
Forks
58
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ValveSoftware/SteamVR-for-Linux

Todos los issues de ValveSoftware/SteamVR-for-Linux

Issues similares

Más issues de Shell/Bash

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.