[WSL / D3D12, NVIDIA] GPU timeouts (TDR, DXGI_ERROR_DEVICE_HUNG) after a depth-stencil CopyResource under sustained load
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 8/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- cpp, linux, ubuntu
- Lĩnh vực
- computer-graphics, operating-systems
Hướng nghiên cứu
Start with the first comment's write-up and the attached 02-attachments.zip, especially the depthcopy/ stress program that loops the exact depth CopyResource sequence; run it under WSLg to confirm it still does not hang alone. Then compare the same workload on Windows with the same driver to isolate the WSL D3D12 passthrough path (/usr/lib/wsl/lib/libd3d12.so). Match the nvlddmkm event 153 timestamps to the WriteBufferImmediate breadcrumbs to see which barrier pair stalls. Done means a minimal reproducer that hangs under WSL and not on Windows.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Windows Version
Windows 11 25H2, build 26200.9711
WSL Version
WSL 3.0.5.0, kernel 6.18.58.1-1, WSLg 1.0.79
Are you using WSL 1, WSL 2, or WSLC?
- WSL 2
- WSL 1
- WSLC
Kernel Version
6.18.58.1-1
Distro Version
Ubuntu 24.04
Other Software
-
Windows 11 25H2 (26200.9711), WSL 3.0.5.0, kernel 6.18.58.1-1, WSLg 1.0.79
-
Direct3D (WSL) 1.611.1-81528511, DXCore 10.0.26100.1
-
NVIDIA RTX PRO 500 Blackwell Generation Laptop GPU, driver 32.0.15.9595 (also the Intel iGPU, not used)
-
The translation layer: Wine/Proton 11 with a D3D12 passthrough to the WSL runtime (patches available)
Repro Steps
There is no standalone reproduction yet; the hang happens in a game.
- WSL2 with WSLg on an NVIDIA GPU (versions above), Ubuntu 24.04.
- Steam for Linux in WSL, running Diablo IV (Steam build) through Wine/Proton 11 with a D3D12 passthrough: every D3D12 call is forwarded unchanged to /usr/lib/wsl/lib/libd3d12.so (no vkd3d, no Vulkan).
- Play normally (town, open world, dungeons) at 3440x1440 or 1920x1200.
- After 8–45 minutes the GPU times out: all displays freeze for ~2–5 s, Windows logs nvlddmkm event 153 (usually two, 3–4 s apart), and the game's device reports DXGI_ERROR_DEVICE_HUNG (0x887A0006).
Seen 16 times on 2026-11-13 and 7 times on 2026-11-14 (session table in the attached report). No GPU timeouts in the 30 days before, outside these sessions.
Where the GPU stops (our own breadcrumbs via WriteBufferImmediate; DRED returns no data on WSL), in all 7 captured hangs, on the direct queue:
DrawIndexedInstanced xN into depth A (R24G8_TYPELESS, 128x128 or 256x256)
ResourceBarrier A DEPTH_WRITE -> COPY_SOURCE, B SRV -> COPY_DEST
CopyResource(B, A) <- GPU stops here
ResourceBarrier B COPY_DEST -> SRV <- or here
A standalone program looping exactly this sequence (attached, depthcopy/)
ran >8 million iterations on WSL without a hang, so it does not reproduce alone.
Expected Behavior
The same workload runs without GPU timeouts, as it does on Windows with the
same GPU and driver.
Actual Behavior
A GPU timeout (TDR) every 8–45 minutes of play: nvlddmkm event 153, all
displays freeze for a few seconds, DXGI_ERROR_DEVICE_HUNG.
Copying the depth texture per subresource, or through a buffer
(texture -> buffer -> texture), does not prevent it.
Recovering takes 15 s to over 3 minutes, because the game has to release tens
of thousands of objects through the WSL runtime first (details in the report);
after more than about a minute the game's online session is lost.
Diagnostic Logs
Attachments: GPU timeout events (nvlddmkm 153), passthrough removal logs, and the standalone stress program (depthcopy). Full write-up in the first comment.
- Ngôn ngữ chính
- C++
- Star
- 34.4k
- Fork
- 1.9k
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 166
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của microsoft/WSL
-
feature wsl2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
microsoft/WSL#42306 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
microsoft/WSL#42114 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature kernel wsl2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
microsoft/WSL#41107 · 3 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature kernel
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
microsoft/WSL#41054 · 9 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
feature GPU
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 70/100
microsoft/WSL#13592 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của microsoft/WSL
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
HarperFast/rocksdb-js#1131 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/daemon bug good first issue platform/linux priority/p2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ToshiNamura/Deimos#5 ·
-
needs-format
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Niko1221/Strata#6251 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 5 ngày
-
[Bug]: NP 管理器文件编辑器里删除键无效Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
metasequoiaime/msime#11666 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
patrick-hudson/put.gd-desktop#1679 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày