D3D12.X: Reproducible game crash preceded by repeated texture upload GPU fence timeouts #2109

Open
opened 2026-11-26 05:19:04 +00:00 by github-bot · 4 comments
Owner

@⁠DEViANCEVxXXxM on GitHub · 2026-11-25 04:37 UTC · original

<html>

D3D12.X: repeated title-texture GPU fence timeouts before reproducible retail-title crash

Summary

A reproducible retail-title crash persists across four independently built XCL configurations. Differential log analysis reveals repeated synchronous texture-upload fence timeouts before the exception.

Environment

  • Windows x64

  • NVIDIA GeForce RTX 3090

  • Real D3D12 backend

  • Rust 1.100.0, release builds

  • Separate XCL data roots for each configuration

  • Identical game executable

Tested configurations

Configuration | Revision/tree -- | -- Main | cbc296ab Main + #1691 | 81f6397 PR head Main + #1945 | f581057 PR head Combined | 81f0dbb tree

Common pre-crash evidence

Each run contains four occurrences of:

title texture: upload failed: texture copy: GPU fence still pending after 10000 ms

The warnings recur at approximately ten-second intervals.

The timeout sequence precedes the first exception by approximately 35–47 seconds. Frame presentation also stops progressing in the logged milestones.

Common exception

  • Exception: 0xC0000005

  • Module: game_scarlett_master.exe

  • RVA: 0x258b000

  • Operation: write at address 0x0

  • RBX and RBP: 0x0

The same exception signature has been reproduced six times across two testing sessions.

Static inspection of the executable at the faulting RVA indicates an instruction with an explicitly encoded zero destination address, rather than an ordinary register-based null-pointer dereference.

This suggests a deliberate fatal path or watchdog response. Runtime instruction bytes and the actual triggering condition have not been verified.

Observations

  • Both queue and allocator lifetime fixes pass their synthetic regression checks.

  • Neither fix individually nor their combination prevents this crash.

  • Peak sampled private memory is approximately 16.55–16.58 GiB across the four configurations.

  • Peak dedicated GPU memory is approximately 7.35 GiB.

  • No clear memory reduction or growth difference attributable to either PR was established by these runs.

The repeated texture-upload fence timeout is the strongest common pre-crash signal identified so far.

Suggested investigation

  • Synchronous title-texture upload and fence completion.

  • Queue synchronization and cross-queue dependencies.

  • Whether the upload queue is blocked by outstanding title work.

  • Whether the title's fatal path is triggered by a stalled rendering or streaming thread.

Limitations

One manual run per configuration in the four-way comparison. Gameplay inputs, run order and cache state were not fully controlled.

The timeout-to-crash relationship is observational, not proof of causation. The reported stack offsets are not a verified unwind stack.

Original logs and structured reports have been retained locally. Sanitized diagnostic excerpts can be provided if needed.

No proprietary game executable or dump is attached.

AI assistance: ChatGPT (GPT-6.2) assisted with diagnostics, source review, test implementation and report preparation. All reported runs were performed on actual Windows hardware.

</html>
**@⁠DEViANCEVxXXxM** on GitHub · 2026-11-25 04:37 UTC · [original](https://github.com/xcl-dev/xcl/issues/2109) <html> <body> <!--StartFragment--><h1><span>D3D12.X: repeated title-texture GPU fence timeouts before reproducible retail-title crash</span></h1><h2><span>Summary</span></h2><p><span>A reproducible retail-title crash persists across four independently built XCL configurations. Differential log analysis reveals repeated synchronous texture-upload fence timeouts before the exception.</span></p><h2><span>Environment</span></h2><ul><li><p><span>Windows x64</span></p></li><li><p><span>NVIDIA GeForce RTX 3090</span></p></li><li><p><span>Real D3D12 backend</span></p></li><li><p><span>Rust 1.100.0, release builds</span></p></li><li><p><span>Separate XCL data roots for each configuration</span></p></li><li><p><span>Identical game executable</span></p></li></ul><h2><span>Tested configurations</span></h2> Configuration | Revision/tree -- | -- Main | cbc296ab Main + #1691 | 81f6397 PR head Main + #1945 | f581057 PR head Combined | 81f0dbb tree <h2><span>Common pre-crash evidence</span></h2><p><span>Each run contains four occurrences of:</span></p><p><code><span>title texture: upload failed: texture copy: GPU fence still pending after 10000 ms</span></code></p><p><span>The warnings recur at approximately ten-second intervals.</span></p><p><span>The timeout sequence precedes the first exception by approximately 35–47 seconds. Frame presentation also stops progressing in the logged milestones.</span></p><h2><span>Common exception</span></h2><ul><li><p><span>Exception: </span><code><span>0xC0000005</span></code></p></li><li><p><span>Module: </span><code><span>game_scarlett_master.exe</span></code></p></li><li><p><span>RVA: </span><code><span>0x258b000</span></code></p></li><li><p><span>Operation: write at address </span><code><span>0x0</span></code></p></li><li><p><span>RBX and RBP: </span><code><span>0x0</span></code></p></li></ul><p><span>The same exception signature has been reproduced six times across two testing sessions.</span></p><p><span>Static inspection of the executable at the faulting RVA indicates an instruction with an explicitly encoded zero destination address, rather than an ordinary register-based null-pointer dereference.</span></p><p><span>This suggests a deliberate fatal path or watchdog response. Runtime instruction bytes and the actual triggering condition have not been verified.</span></p><h2><span>Observations</span></h2><ul><li><p><span>Both queue and allocator lifetime fixes pass their synthetic regression checks.</span></p></li><li><p><span>Neither fix individually nor their combination prevents this crash.</span></p></li><li><p><span>Peak sampled private memory is approximately 16.55–16.58 GiB across the four configurations.</span></p></li><li><p><span>Peak dedicated GPU memory is approximately 7.35 GiB.</span></p></li><li><p><span>No clear memory reduction or growth difference attributable to either PR was established by these runs.</span></p></li></ul><p><span>The repeated texture-upload fence timeout is the strongest common pre-crash signal identified so far.</span></p><h2><span>Suggested investigation</span></h2><ul><li><p><span>Synchronous title-texture upload and fence completion.</span></p></li><li><p><span>Queue synchronization and cross-queue dependencies.</span></p></li><li><p><span>Whether the upload queue is blocked by outstanding title work.</span></p></li><li><p><span>Whether the title's fatal path is triggered by a stalled rendering or streaming thread.</span></p></li></ul><h2><span>Limitations</span></h2><p><span>One manual run per configuration in the four-way comparison. Gameplay inputs, run order and cache state were not fully controlled.</span></p><p><span>The timeout-to-crash relationship is observational, not proof of causation. The reported stack offsets are not a verified unwind stack.</span></p><p><span>Original logs and structured reports have been retained locally. Sanitized diagnostic excerpts can be provided if needed.</span></p><p><span>No proprietary game executable or dump is attached.</span></p><p><span>AI assistance: ChatGPT (GPT-6.2) assisted with diagnostics, source review, test implementation and report preparation. All reported runs were performed on actual Windows hardware.</span></p><!--EndFragment--> </body> </html>
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 05:19:04 +00:00
Author
Owner

@⁠Decodere on GitHub · 2026-11-25 06:36 UTC · original

Taking Part of #2109 in crates/xcl/src/hle/d3d12x/title_textures.rs (upload_all()).

Currently, after splitting uploads into 32 MiB / 256-item batches, when upload_queue or texture::upload_batch returns Err(e) (such as the 10 s fence timeout reported here), upload_all() warns on the first four errors and keeps looping over remaining batches — re-entering 10 s waits while holding the global REFRESH lock and allocating/leaking a fresh Uploader per batch (since texture.rs intentionally forgets timed-out uploaders to avoid device removal), while leaving e.pending cleared and LAST_CONTENT updated for unuploaded textures.

Plan:

  • Track failed devices in upload_all() via a unit-testable helper: on upload_queue or upload_batch Err(e) for a device, stop submitting remaining batches for that device (still servicing unrelated healthy devices), clear LAST_CONTENT entries for failed items, and restore e.pending / PENDING (skipping removed, gpu_written, or already-pending entries) for both failed and skipped same-device uploads so the next submit can retry them.
  • Scope note: This targets the cascading N × 10 s timeout/retry storm (Part of #2109); it does not claim to fix the underlying upstream GPU stall on RTX 3090 that triggered the initial 10 s fence timeout.
  • Verify with pure-CPU failing-first / post-fix unit tests, the full release workspace suite, and paired 60 s smoke runs on RTX 4060.

AI use: drafted with Google Antigravity (Gemini 4 Neon); implementation, tests, and smoke runs will run locally.

**@⁠Decodere** on GitHub · 2026-11-25 06:36 UTC · [original](https://github.com/xcl-dev/xcl/issues/2109#issuecomment-7154968669) Taking **`Part of #2109`** in `crates/xcl/src/hle/d3d12x/title_textures.rs` (`upload_all()`). Currently, after splitting uploads into 32 MiB / 256-item batches, when `upload_queue` or `texture::upload_batch` returns `Err(e)` (such as the 10 s fence timeout reported here), `upload_all()` warns on the first four errors and keeps looping over remaining batches — re-entering 10 s waits while holding the global `REFRESH` lock and allocating/leaking a fresh `Uploader` per batch (since `texture.rs` intentionally forgets timed-out uploaders to avoid device removal), while leaving `e.pending` cleared and `LAST_CONTENT` updated for unuploaded textures. **Plan:** - Track failed devices in `upload_all()` via a unit-testable helper: on `upload_queue` or `upload_batch` `Err(e)` for a device, stop submitting remaining batches for that device (still servicing unrelated healthy devices), clear `LAST_CONTENT` entries for failed items, and restore `e.pending` / `PENDING` (skipping removed, `gpu_written`, or already-pending entries) for both failed and skipped same-device uploads so the next submit can retry them. - **Scope note:** This targets the cascading `N × 10 s` timeout/retry storm (`Part of #2109`); it does **not** claim to fix the underlying upstream GPU stall on RTX 3090 that triggered the initial 10 s fence timeout. - Verify with pure-CPU failing-first / post-fix unit tests, the full release workspace suite, and paired 60 s smoke runs on RTX 4060. _AI use: drafted with Google Antigravity (Gemini 4 Neon); implementation, tests, and smoke runs will run locally._
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-25 07:55 UTC · original

Linux position on this one, so the thread has the other platform: on our host the run never reaches the texture-upload pattern, because it stops earlier in the D3D12.X resource path.

Setup. Linux, Wine 11.22, vkd3d-proton master, RX 7600 XT (NAVI33). XCL main at 1a67116 (post-#1395/#867), retail 1.0.2.1, x86_64-pc-windows-gnu release.

What happens: the first display target is created (display target 3840x2160 format 28), then the process asserts:

iface->lpVtbl == &d3d12_resource_vtbl   (vkd3d_private.h:1243)

That is the same stop reported earlier in #175. So there are no texture uploads and no fence timeouts to compare with your log - the run is about 0.5-1.5 s in.

If a Linux confirmation of the fence-timeout pattern is useful, the prerequisite is getting past that resource-vtable assertion first; the two are independent.

Counts only, no game data.

**@⁠YaBulochka** on GitHub · 2026-11-25 07:55 UTC · [original](https://github.com/xcl-dev/xcl/issues/2109#issuecomment-7156414437) Linux position on this one, so the thread has the other platform: on our host the run never reaches the texture-upload pattern, because it stops earlier in the D3D12.X resource path. **Setup.** Linux, Wine 11.22, vkd3d-proton master, RX 7600 XT (NAVI33). XCL `main` at `1a67116` (post-#1395/#867), retail 1.0.2.1, `x86_64-pc-windows-gnu` release. **What happens:** the first display target is created (`display target 3840x2160 format 28`), then the process asserts: ``` iface->lpVtbl == &d3d12_resource_vtbl (vkd3d_private.h:1243) ``` That is the same stop reported earlier in #175. So there are no texture uploads and no fence timeouts to compare with your log - the run is about 0.5-1.5 s in. If a Linux confirmation of the fence-timeout pattern is useful, the prerequisite is getting past that resource-vtable assertion first; the two are independent. Counts only, no game data.
Author
Owner

@⁠Royalflamejlh on GitHub · 2026-11-25 08:38 UTC · original

Linux + NVIDIA, the same line: title texture: upload failed: texture copy: GPU fence still pending after 10000 ms is in 18 of our 476 Linux title runs of 24 Nov and the first hour of 25 Nov, once or twice a run, and 6 of those 18 logged a D3D12 device removal 1.4 to 87 s after it. Of the 458 runs without the line, 8 logged one. None ended at game+0x258b000.

Setup: Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch (run 1 below: v3.1 built by #775's script with a newer, patched dxil-spirv), RTX 4060 Ti 16 GB and RTX 4070 12 GB (driver 615.71.09). Retail title 1.0.2.1, first-run screens done once, Of the 18, 4 were on main + #684 alone (where 4 of our 122 runs had the line), 11 also had other open pull requests, and 3 a change of ours as well, none in the upload code.

The 3 of our 20 runs on main aaa0936 + #684 that had the line (RTX 4070, set to 100 s):

run path, NVIDIA disk cache last present the line removal logged
1 XCL_DIRECT_DXIL=1, films skipped, cache off 46.1 s 55.6 s 76.1 s, 0x887a0005
2 HLSL, own cache folder, empty 50.0 s 59.2 s 79.4 s, 0x887a0005
3 HLSL, own cache folder 58.1 s 67.9 s 69.4 s, 0x80004005
  • Of the 18: 21 lines, 1 in 15 runs, 2 in 3 (10, 13 and 28 s apart). Presents had stopped before the first line in 11, went on 11 to 65 s past it in 4, stopped within 2 s of it in 3.
  • The removals: 0x887a0005 five times, 0x80004005 once; run 1 also has NVIDIA's Xid 31 (a copy engine's MMU fault) as the process ended. In 4 of the 6, runs 1 and 2 among them, XCL's exception handler logged it at an exception of the title's, so the device may have been lost earlier.
  • The 12 without a removal ended at the title's watchdog (game+0x23cf683, 7) or at the run's set length (5).
  • upload_all() logs only a process's first four failures, so a count of four can be that cap; ours are under it.

Not tested: Windows; AMD; Decodere's planned upload_all() change; #455, which moves these uploads onto the submitting queue without the CPU wait.

AI use: Claude Code (Claude Opus 5.5) counted the runs and wrote this comment; the runs were made by two other Claude Code sessions.

Posted without review by a person: the account owner was away and reads replies later.

**@⁠Royalflamejlh** on GitHub · 2026-11-25 08:38 UTC · [original](https://github.com/xcl-dev/xcl/issues/2109#issuecomment-7157279817) Linux + NVIDIA, the same line: `title texture: upload failed: texture copy: GPU fence still pending after 10000 ms` is in 18 of our 476 Linux title runs of 24 Nov and the first hour of 25 Nov, once or twice a run, and 6 of those 18 logged a D3D12 device removal 1.4 to 87 s after it. Of the 458 runs without the line, 8 logged one. None ended at `game+0x258b000`. **Setup:** Wine 11.21 Staging, vkd3d-proton v3.1-90-g30b0eb9b with the relaxed-vtable patch from #175 and a local dxil-spirv patch (run 1 below: v3.1 built by #775's script with a newer, patched dxil-spirv), RTX 4060 Ti 16 GB and RTX 4070 12 GB (driver 615.71.09). Retail title 1.0.2.1, first-run screens done once, Of the 18, 4 were on `main` + #684 alone (where 4 of our 122 runs had the line), 11 also had other open pull requests, and 3 a change of ours as well, none in the upload code. The 3 of our 20 runs on `main` `aaa0936` + #684 that had the line (RTX 4070, set to 100 s): | run | path, NVIDIA disk cache | last present | the line | removal logged | |---|---|---|---|---| | 1 | `XCL_DIRECT_DXIL=1`, films skipped, cache off | 46.1 s | 55.6 s | 76.1 s, `0x887a0005` | | 2 | HLSL, own cache folder, empty | 50.0 s | 59.2 s | 79.4 s, `0x887a0005` | | 3 | HLSL, own cache folder | 58.1 s | 67.9 s | 69.4 s, `0x80004005` | - Of the 18: 21 lines, 1 in 15 runs, 2 in 3 (10, 13 and 28 s apart). Presents had stopped before the first line in 11, went on 11 to 65 s past it in 4, stopped within 2 s of it in 3. - The removals: `0x887a0005` five times, `0x80004005` once; run 1 also has NVIDIA's `Xid 31` (a copy engine's MMU fault) as the process ended. In 4 of the 6, runs 1 and 2 among them, XCL's exception handler logged it at an exception of the title's, so the device may have been lost earlier. - The 12 without a removal ended at the title's watchdog (`game+0x23cf683`, 7) or at the run's set length (5). - `upload_all()` logs only a process's first four failures, so a count of four can be that cap; ours are under it. **Not tested:** Windows; AMD; Decodere's planned `upload_all()` change; #455, which moves these uploads onto the submitting queue without the CPU wait. **AI use:** Claude Code (Claude Opus 5.5) counted the runs and wrote this comment; the runs were made by two other Claude Code sessions. Posted without review by a person: the account owner was away and reads replies later.
Author
Owner

@⁠YaBulochka on GitHub · 2026-11-25 10:58 UTC · original

Update for the Linux side after the resource-vtable fix landed: the run now stops in the heap path instead, still before any texture upload.

XCL main 568e7db, Linux, Wine 11.22, vkd3d-proton master, RX 7600 XT. The old d3d12_resource_vtbl assertion no longer fires; the log reaches UMA opened, backend 'real', ID3D12Heap1 - 10 PC methods, ... +64 stubs, then ends 2.5 s in with status 0x3 and d3d12core.dll+0x59f180 on the stack.

So the fence-timeout line you quoted (texture copy: GPU fence still pending after 10000 ms) is still not reachable on RADV - the stop moved from the resource vtable to the heap vtable. Tracking that one in #175.

**@⁠YaBulochka** on GitHub · 2026-11-25 10:58 UTC · [original](https://github.com/xcl-dev/xcl/issues/2109#issuecomment-7160427172) Update for the Linux side after the resource-vtable fix landed: the run now stops in the heap path instead, still before any texture upload. XCL `main` `568e7db`, Linux, Wine 11.22, vkd3d-proton master, RX 7600 XT. The old `d3d12_resource_vtbl` assertion no longer fires; the log reaches `UMA opened`, `backend 'real'`, `ID3D12Heap1 - 10 PC methods, ... +64 stubs`, then ends 2.5 s in with status 0x3 and `d3d12core.dll+0x59f180` on the stack. So the fence-timeout line you quoted (`texture copy: GPU fence still pending after 10000 ms`) is still not reachable on RADV - the stop moved from the resource vtable to the heap vtable. Tracking that one in #175.
This discussion has been locked. Commenting is limited to contributors.
No description provided.