D3D12.X: Reproducible game crash preceded by repeated texture upload GPU fence timeouts #2109
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#2109
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@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 |cbc296abMain + #1691 | 81f6397 PR head Main + #1945 | f581057 PR head Combined | 81f0dbb treeCommon pre-crash evidence
Each run contains four occurrences of:
title texture: upload failed: texture copy: GPU fence still pending after 10000 msThe 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:
0xC0000005Module:
game_scarlett_master.exeRVA:
0x258b000Operation: write at address
0x0RBX and RBP:
0x0The 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>@Decodere on GitHub · 2026-11-25 06:36 UTC · original
Taking
Part of #2109incrates/xcl/src/hle/d3d12x/title_textures.rs(upload_all()).Currently, after splitting uploads into 32 MiB / 256-item batches, when
upload_queueortexture::upload_batchreturnsErr(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 globalREFRESHlock and allocating/leaking a freshUploaderper batch (sincetexture.rsintentionally forgets timed-out uploaders to avoid device removal), while leavinge.pendingcleared andLAST_CONTENTupdated for unuploaded textures.Plan:
upload_all()via a unit-testable helper: onupload_queueorupload_batchErr(e)for a device, stop submitting remaining batches for that device (still servicing unrelated healthy devices), clearLAST_CONTENTentries for failed items, and restoree.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.N × 10 stimeout/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.AI use: drafted with Google Antigravity (Gemini 4 Neon); implementation, tests, and smoke runs will run locally.
@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
mainat1a67116(post-#1395/#867), retail 1.0.2.1,x86_64-pc-windows-gnurelease.What happens: the first display target is created (
display target 3840x2160 format 28), then the process asserts: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.
@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 msis 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 atgame+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
mainaaa0936+ #684 that had the line (RTX 4070, set to 100 s):XCL_DIRECT_DXIL=1, films skipped, cache off0x887a00050x887a00050x800040050x887a0005five times,0x80004005once; run 1 also has NVIDIA'sXid 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.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.
@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
main568e7db, Linux, Wine 11.22, vkd3d-proton master, RX 7600 XT. The oldd3d12_resource_vtblassertion no longer fires; the log reachesUMA opened,backend 'real',ID3D12Heap1 - 10 PC methods, ... +64 stubs, then ends 2.5 s in with status 0x3 andd3d12core.dll+0x59f180on 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.