Windows: driver host process crashes ~1s after DualSense virtual gamepad creation; all libvirtualhid devices become invalid until reboot
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 43/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- cpp
- Área
- backend, operating-systems
Línea de trabajo
Start by examining the attached sunshine.log.5 and sunshine.log.4, especially the Windows virtual HID input report failures and the later unavailable or unlicensed driver message. Trace the DualSense device creation, state submission, and removal paths in the Windows implementation; the issue does not name source files or tests. Done means reproducing or isolating the driver host termination and confirming devices recover without a reboot.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the Bug
Environment
- OS: Windows 10 Pro 22H2 (build 19045.6466)
- Sunshine: 2026.914.233613 (commit 63d35f702ee9e362e43263742981836ec0710384)
- libvirtualhid Windows driver: 2026.914.1218.10 (active license)
- GPU: NVIDIA GeForce RTX 5060
- gamepad_driver:
all(first occurrence), thenvirtualhid - Virtual gamepad: DualSense, auto-selected by client-reported type
- Client: Moonlight for Windows 6.2.0
- Physical controller: Sony DualSense (CFI-ZCT1W)
Description
About 1 second after Sunshine creates the virtual DualSense gamepad, the device driver host process terminates. From that moment every libvirtualhid device (gamepad, mouse, keyboard) fails with "invalid handle", the virtual controller disconnects from the session and Sunshine becomes unstable / crashes. It also happens when the controller is disconnected on the client side.
Log excerpt (Italian Windows, translated):
[16:44:21.951] Info: Gamepad 0 will be Sunshine (libvirtualhid) PS5 Controller
[16:44:22.861] Warning: submit libvirtualhid gamepad state: submit Windows input report: The process hosting the driver for this device has been terminated.
[16:44:22.861] Warning: submit libvirtualhid gamepad gyroscope: submit Windows input report: Invalid handle.
[16:44:22.861] Warning: submit libvirtualhid gamepad acceleration: submit Windows input report: Invalid handle.
(~48,000 similar warnings in 6 minutes, mostly gyroscope/acceleration, then mouse/keyboard/scroll)
[16:48:54.166] Warning: create libvirtualhid gamepad: create Windows virtual HID device: Invalid handle.
[16:48:54.167] Info: Gamepad 0 will be DualShock 4 controller (fallback to ViGEmBus)
After restarting Sunshine with gamepad_driver = virtualhid, the driver is reported as "Virtual HID Driver is selected but is unavailable or unlicensed" and all gamepad types are disabled, even though the license is active. Only a reboot restores the driver. The following Sunshine start reports "nvprefs: Opened undo file from previous improper termination".
Steps to reproduce
- Windows host with libvirtualhid 2026.914.1218.10, gamepad_driver = all or virtualhid
- Connect from Moonlight (Windows 6.2.0) with a DualSense, so the DualSense type is auto-selected
- Use the controller, or disconnect it during the session
- The driver host process terminates shortly after
Attachments
sunshine.log.5 (crash at 16:44), sunshine.log.4 (driver unavailable after restart)
Expected Behavior
The virtual gamepad is created and removed without crashing the driver host. If the host does crash, the driver recovers without a reboot and is not reported as unlicensed.
Additional Context
No response
- Lenguaje dominante
- C++
- Estrellas
- 93
- Forks
- 25
- Merge medio
- 13 h 57 min
- PR fusionados (30 d)
- 33
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de LizardByte/libvirtualhid
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
LizardByte/libvirtualhid#204 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Experiencing Complete Control Loss After Close/DC of Moonlight And Reconnect with DualSensePosiblemente ocupada @ReenigneArcher la tomó hace 1 día. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
LizardByte/libvirtualhid#196 · 4 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 12/100
LizardByte/libvirtualhid#194 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Impulse trigger vibration not functioning on Moonlight 6.2.0Posiblemente ocupada @ReenigneArcher la tomó hace 8 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
LizardByte/libvirtualhid#193 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Windows: Xbox Series Share button is unavailable through Steam's VHF/XInput pathQuizá libre de nuevo @LizardByte-bot la tomó hace 57 días y no hay ningún pull request abierto. Abierto
LizardByte/libvirtualhid#106 · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de LizardByte/libvirtualhid
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
foxglove/mcap#1907 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
telegramdesktop/tdesktop#31505 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 1 día
-
ll-builder shell completions omit existing lockfile commands and --lockedPosiblemente ocupada @project-nju-learner la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 90/100
OpenAtom-Linyaps/linyaps#2291 ·
Los mantenedores suelen responder en 1 día