Windows: driver host process crashes ~1s after DualSense virtual gamepad creation; all libvirtualhid devices become invalid until reboot
Mantenedores costumam responder em até 1 dia
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 43/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- cpp
- Domínio
- backend, operating-systems
Direção de pesquisa
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.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
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
- Linguagem predominante
- C++
- Estrelas
- 93
- Forks
- 25
- Merge médio
- 13h 57min
- PRs com merge (30d)
- 33
Preparar o ambiente
- Sem Dockerfile nem arquivo Docker Compose
- Sem modelo de pull request
- Ler o guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de LizardByte/libvirtualhid
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
LizardByte/libvirtualhid#204 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Experiencing Complete Control Loss After Close/DC of Moonlight And Reconnect with DualSenseTalvez já em andamento @ReenigneArcher assumiu há 2 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 35/100
LizardByte/libvirtualhid#196 · 4 comentários ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 12/100
LizardByte/libvirtualhid#194 · 3 comentários ·
Mantenedores costumam responder em até 1 dia
-
Impulse trigger vibration not functioning on Moonlight 6.2.0Talvez já em andamento @ReenigneArcher assumiu há 8 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 18/100
LizardByte/libvirtualhid#193 · 1 comentário ·
Mantenedores costumam responder em até 1 dia
-
Windows: Xbox Series Share button is unavailable through Steam's VHF/XInput pathTalvez livre de novo @LizardByte-bot assumiu há 58 dias e não há nenhum pull request aberto. Aberta
LizardByte/libvirtualhid#106 · 1 responsável ·
Mantenedores costumam responder em até 1 dia
Todas as issues de LizardByte/libvirtualhid
Issues semelhantes
-
[mimalloc] update to 3.6.0Abertacategory:port-update
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 66/100
Mantenedores costumam responder em até 2 dias
-
MinGW build faillureAberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 67/100
facebookresearch/faiss#5775 · 1 comentário ·
Mantenedores costumam responder em até 2 dias
-
Eval bug: minimax-m3: build_moe_ffn() drops the per-expert NVFP4 scale → garbled output (M3.1 Flash)Abertabug-unconfirmed
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
Mantenedores costumam responder em até 1 dia
-
bug triage
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
secondlife/viewer#6507 ·
Mantenedores costumam responder em até 1 dia
-
clang:frontend code-cleanup HLSL
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 74/100
llvm/llvm-project#235100 · 1 comentário ·
Mantenedores costumam responder em até 1 dia