NVIDIA: Xid 109 device loss and direct-indexed compute dispatches skipped (RTX 3080 Ti, main c6ce497) #232

Closed
opened 2026-11-26 13:53:52 +00:00 by ReverendOzmund · 38 comments
ReverendOzmund commented 2026-11-26 13:53:52 +00:00 (Migrated from github.com)
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-26T13:53:52Z.


NVIDIA: Xid 109 device loss and direct-indexed compute dispatches skipped (RTX 3080 Ti, main c6ce497)

Two-hour ProjectScarlett run on an RTX 3080 Ti (driver 620.70.06, GE-Proton11-14, Bazzite), main at c6ce497 plus #225.

Device loss: after about 2h40m vkd3d-proton reported VK_ERROR_DEVICE_LOST. The kernel logged NVRM: Xid 109, name=game_scarlett_m, errorString CTX SWITCH TIMEOUT. That's a context that couldn't be preempted, rather than an Xid 13 fault like Nick's. One candidate: the translator's state-machine watchdog allows tb_guard++ < 1000000u iterations, so a translated spin wait on memory that never changes could hold the GPU far past the switch timeout. VItoriaBr caps shader loops at 4096 for this reason. I haven't confirmed which dispatch was running.

Skipped work (from #223's reason text): 19 skips, all its root indexes the resource heap directly:

6 compute, guest caller 0x248cbc1
5 compute, guest caller 0x248cd0f
3 compute, guest caller 0x2951ba
2 compute, guest caller 0x56bba
1 draw,    guest caller 0x4e33f98

0x248cbc1 and 0x2951ba match NickStallman's 5090 runs. Reading reflected_root in compute_table.rs, a compute root only gets a reflected layout with one or two leading tables (simple), or at least one table followed by constants and descriptors (extended). A bindless root with no tables (root constants plus CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED) matches neither, so it returns Unsupported, and with an arena active every dispatch is skipped. If that's the shape here, accepting zero-table direct-indexed compute roots would bring these dispatches back, since the translated programs already carry tb_heap_map. Happy to write it if that matches your understanding of the layout.

Also seen: 1,297 vkd3d_compile_shader_stage ... result -3 (up from a handful in earlier runs), one list rejected with placed texture publication failed: HRESULT(0x80004005), 3 memory waits released, 7 signaller timeouts.

<!-- greyfinch-sync:brcly/TuxBox:issue:6628143971 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-26T13:53:52Z. --- NVIDIA: Xid 109 device loss and direct-indexed compute dispatches skipped (RTX 3080 Ti, main c6ce497) Two-hour ProjectScarlett run on an RTX 3080 Ti (driver 620.70.06, GE-Proton11-14, Bazzite), main at c6ce497 plus #225. **Device loss:** after about 2h40m vkd3d-proton reported `VK_ERROR_DEVICE_LOST`. The kernel logged `NVRM: Xid 109, name=game_scarlett_m, errorString CTX SWITCH TIMEOUT`. That's a context that couldn't be preempted, rather than an Xid 13 fault like Nick's. One candidate: the translator's state-machine watchdog allows `tb_guard++ < 1000000u` iterations, so a translated spin wait on memory that never changes could hold the GPU far past the switch timeout. VItoriaBr caps shader loops at 4096 for this reason. I haven't confirmed which dispatch was running. **Skipped work (from #223's reason text):** 19 skips, all `its root indexes the resource heap directly`: 6 compute, guest caller 0x248cbc1 5 compute, guest caller 0x248cd0f 3 compute, guest caller 0x2951ba 2 compute, guest caller 0x56bba 1 draw, guest caller 0x4e33f98 0x248cbc1 and 0x2951ba match NickStallman's 5090 runs. Reading `reflected_root` in `compute_table.rs`, a compute root only gets a reflected layout with one or two leading tables (`simple`), or at least one table followed by constants and descriptors (`extended`). A bindless root with no tables (root constants plus `CBV_SRV_UAV_HEAP_DIRECTLY_INDEXED`) matches neither, so it returns `Unsupported`, and with an arena active every dispatch is skipped. If that's the shape here, accepting zero-table direct-indexed compute roots would bring these dispatches back, since the translated programs already carry `tb_heap_map`. Happy to write it if that matches your understanding of the layout. Also seen: 1,297 `vkd3d_compile_shader_stage ... result -3` (up from a handful in earlier runs), one list rejected with `placed texture publication failed: HRESULT(0x80004005)`, 3 memory waits released, 7 signaller timeouts.
NickStallman commented 2026-11-26 14:24:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-26T14:24:41Z.


Yes, that matches what I see, so please go ahead; I won't start on it. On the RTX 5090 the same two callers (0x248cbc1 and 0x2951ba) account for most of the ~1,000 skips per world frame, from before #223 existed. I can run the change on the 5090 past the story intro once it's up.

On the device loss: my second #216 run (PR head 7e0ad65 plus #217, RTX 5090, 595.99.02) also ended in Xid 109 … CTX SWITCH TIMEOUT at Prestream Metadata, about 19 min in. The first ended in Xid 13 … SKEDCHECK36_DEPENDENCE_COUNTER_UNDERFLOW. Neither had a breadcrumb dump (VKD3D_CONFIG=breadcrumbs printed nothing), so I can't confirm the tb_guard theory either, but a translated spin that outlives the preemption timeout would fit the 109.

<!-- greyfinch-sync:brcly/TuxBox:comment:7194782039 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7194782039). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-26T14:24:41Z. --- Yes, that matches what I see, so please go ahead; I won't start on it. On the RTX 5090 the same two callers (0x248cbc1 and 0x2951ba) account for most of the ~1,000 skips per world frame, from before #223 existed. I can run the change on the 5090 past the story intro once it's up. On the device loss: my second #216 run (PR head 7e0ad65 plus #217, RTX 5090, 595.99.02) also ended in `Xid 109 … CTX SWITCH TIMEOUT` at Prestream Metadata, about 19 min in. The first ended in `Xid 13 … SKEDCHECK36_DEPENDENCE_COUNTER_UNDERFLOW`. Neither had a breadcrumb dump (`VKD3D_CONFIG=breadcrumbs` printed nothing), so I can't confirm the `tb_guard` theory either, but a translated spin that outlives the preemption timeout would fit the 109.
ReverendOzmund commented 2026-11-26 14:51:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-26T14:51:31Z.


@NickStallman draft is up as #235 : table-less, heap-indexed compute roots now get a reflected layout with the index map as a root SRV, and the translator already reads it through tb_heap_index. Would be great to see whether the 0x248cbc1 / 0x2951ba skips disappear on the 5090 past the story intro. I'll add a Lanes scenario next.

<!-- greyfinch-sync:brcly/TuxBox:comment:7195436040 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7195436040). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-26T14:51:31Z. --- @NickStallman draft is up as #235 : table-less, heap-indexed compute roots now get a reflected layout with the index map as a root SRV, and the translator already reads it through tb_heap_index. Would be great to see whether the 0x248cbc1 / 0x2951ba skips disappear on the 5090 past the story intro. I'll add a Lanes scenario next.
NickStallman commented 2026-11-26 17:50:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-26T17:50:46Z.


A lead on the Xid 109, from one run on an RTX 5090 (595.99.02, GE-Proton11-14, main 3b8a220, providers redeployed and hash-checked this time):

  • Which programs: translating every recorded request with xshader before and after #216 shows 235 compute programs that only translate since #216. 206 of them are CS_RaytracingResolve; the rest are a handful each of CS_DenoiseShadowMaskPoissonDisc*, CS_VirtualTable_SortJobs and others. Most of their loops end only at the generic guard (++tb_guard < 65536u, or the dispatcher's tb_guard++ < 1000000u in hlsl/emitter/control_flow.rs).
  • The experiment: I created those 235 as no-op compute pipelines (a local env-gated patch reusing null_compute, matching by source digest; 53 of them were created in this run) and left everything else unchanged.
  • Result: no Xid. The title got further than in any earlier run: mission 0x98c85f2a set at frame 3,822, intro SRL at Prestream, 20–30 fps.
  • Before: the four earlier runs that reached the intro with those programs live all ended in Xid 109 CTX SWITCH TIMEOUT (once Xid 13).
  • How it ended this time: with the #215 label stall instead. Two GPU memory wait released after 5s (target 0x1f90a), then the watchdog.

This is one run, so it's suggestive, not proof. If the resolve kernels are the cause, the likely mechanism is a data-dependent loop running to its guard on bad inputs, which at 4K is far beyond the preemption window. I can share the hash list (source digest prefixes) or run a narrower split, for example only the 206 resolve kernels, if that helps whoever picks this up.

<!-- greyfinch-sync:brcly/TuxBox:comment:7199756136 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7199756136). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-26T17:50:46Z. --- A lead on the Xid 109, from one run on an RTX 5090 (595.99.02, GE-Proton11-14, `main` 3b8a220, providers redeployed and hash-checked this time): - **Which programs:** translating every recorded request with xshader before and after #216 shows 235 compute programs that only translate since #216. 206 of them are `CS_RaytracingResolve`; the rest are a handful each of `CS_DenoiseShadowMaskPoissonDisc*`, `CS_VirtualTable_SortJobs` and others. Most of their loops end only at the generic guard (`++tb_guard < 65536u`, or the dispatcher's `tb_guard++ < 1000000u` in `hlsl/emitter/control_flow.rs`). - **The experiment:** I created those 235 as no-op compute pipelines (a local env-gated patch reusing `null_compute`, matching by source digest; 53 of them were created in this run) and left everything else unchanged. - **Result:** no Xid. The title got further than in any earlier run: mission `0x98c85f2a` set at frame 3,822, intro SRL at `Prestream`, 20–30 fps. - **Before:** the four earlier runs that reached the intro with those programs live all ended in `Xid 109 CTX SWITCH TIMEOUT` (once `Xid 13`). - **How it ended this time:** with the #215 label stall instead. Two `GPU memory wait released after 5s` (target `0x1f90a`), then the watchdog. This is one run, so it's suggestive, not proof. If the resolve kernels are the cause, the likely mechanism is a data-dependent loop running to its guard on bad inputs, which at 4K is far beyond the preemption window. I can share the hash list (`source digest` prefixes) or run a narrower split, for example only the 206 resolve kernels, if that helps whoever picks this up.
Valdi320 commented 2026-11-26 18:53:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by Valdi320 on 2026-11-26T18:53:17Z.


@NickStallman thank you for the narrowed 235-program experiment. I found two offline replay bugs affecting .wave32 archives and corrected them in https://github.com/brcly/TuxBox/pull/261. It also adds a CPU-only guard census: python tools/audit_shader_guards.py REQUESTS --baseline OLD_XSHADER --candidate NEW_XSHADER --json guard-summary.json. Both sides use identical private digest-verified inputs and the actual variant flags. This should help separate newly admitted compute with generic guards from the rest without exposing title inputs. Static guard presence does not establish a spin or device loss. If convenient, please share the aggregate for the 235 requests or the non-sensitive digest prefixes you offered, and the narrower resolve-only result if you run it. #259 independently prevents a fence worker from waiting forever for a notification after reported device removal; it does not fix the Xid or dependency cycle. I do not have the 235 actual requests locally.

<!-- greyfinch-sync:brcly/TuxBox:comment:7200961158 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7200961158). Originally posted by [Valdi320](https://github.com/Valdi320) on 2026-11-26T18:53:17Z. --- @NickStallman thank you for the narrowed 235-program experiment. I found two offline replay bugs affecting .wave32 archives and corrected them in https://github.com/brcly/TuxBox/pull/261. It also adds a CPU-only guard census: `python tools/audit_shader_guards.py REQUESTS --baseline OLD_XSHADER --candidate NEW_XSHADER --json guard-summary.json`. Both sides use identical private digest-verified inputs and the actual variant flags. This should help separate newly admitted compute with generic guards from the rest without exposing title inputs. Static guard presence does not establish a spin or device loss. If convenient, please share the aggregate for the 235 requests or the non-sensitive digest prefixes you offered, and the narrower resolve-only result if you run it. #259 independently prevents a fence worker from waiting forever for a notification after reported device removal; it does not fix the Xid or dependency cycle. I do not have the 235 actual requests locally.
NickStallman commented 2026-11-26 22:31:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-26T22:31:22Z.


Still happening on current main on driver 620. On an RTX 5090, driver 620.70.10 (open kernel module), GE-Proton11-14, I ran main at e76ff6a plus #235 with warm translations. It reached Game Running with SRL fbk_stry000_FBK_STRY000_INTRO in state Prestream Metadata, frame 26,182, about 11 minutes in. Then it hit:

NVRM: Xid (PCI:0000:01:00): 109, pid=…, name=game_scarlett_m, channel 0x00000018, errorString CTX SWITCH TIMEOUT, Info 0x4c02d

vkd3d-proton then reported VK_ERROR_DEVICE_LOST, and the game exited with code 5.

It's the same point as before, and #235, #254, #260 and #269 didn't change it. Earlier, swapping #216's newly translatable compute programs for no-ops got past this point; that run then stalled as in #215. I'm repeating that with the no-op list on current main to see whether it still holds.

<!-- greyfinch-sync:brcly/TuxBox:comment:7204753310 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7204753310). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-26T22:31:22Z. --- Still happening on current `main` on driver 620. On an RTX 5090, driver 620.70.10 (open kernel module), GE-Proton11-14, I ran `main` at e76ff6a plus #235 with warm translations. It reached `Game Running` with SRL `fbk_stry000_FBK_STRY000_INTRO` in state `Prestream Metadata`, frame 26,182, about 11 minutes in. Then it hit: ``` NVRM: Xid (PCI:0000:01:00): 109, pid=…, name=game_scarlett_m, channel 0x00000018, errorString CTX SWITCH TIMEOUT, Info 0x4c02d ``` vkd3d-proton then reported `VK_ERROR_DEVICE_LOST`, and the game exited with code 5. It's the same point as before, and #235, #254, #260 and #269 didn't change it. Earlier, swapping #216's newly translatable compute programs for no-ops got past this point; that run then stalled as in #215. I'm repeating that with the no-op list on current main to see whether it still holds.
NickStallman commented 2026-11-27 01:31:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-27T01:31:14Z.


These are the programs skipped right before the Xid 109, from a probe run on main e76ff6a + #235 on an RTX 5090 (620.70.10). The run is named in the probe output; there was no null-CS list, and the hang came about 7 s into the intro world.

All were translated, then skipped at dispatch with pipeline has no paged descriptor layout: its root indexes the resource heap directly. Each root has the direct-indexed flag (0x400; six also have 0x800) and at least one descriptor table, so #235's table-less path doesn't cover them.

Program Dispatch Root parameters Translation reads the heap
CS_Prop_BatchCull, CS_Prop_BatchNoCull, CS_Simple_BatchCull, CS_Grass_BatchCull, CS_Slod_BatchCull, CS_Tree_BatchCull_ImposterOnly plain table, table, constants yes
CS_BatchCullBatchCSMeshlets, CS_BatchCullMeshlets, CS_BatchCullMeshlets_Prev, CS_BatchCullMeshlets_ParaboloidShadows indirect table, constants yes
CS_DistanceWindowEmissivesCulling plain table, table, constants yes
CS_SetShadowMaskIndirectArgs plain, 1 group table, table, constants no
CS_Emit_AppendClearCountBuffer plain table no
CS_EmitCounts_AddCountsFromAppend plain table, constants no
CS_FeedbackToParent4x4x4 plain table, table, constants no

Another 37 skipped pipelines were stand-ins.

What this suggests (inferred, not proven): the skipped set includes the writer of indirect dispatch arguments and the programs that clear and accumulate count buffers. The same run made 268 distinct ExecuteIndirect dispatches. An indirect dispatch that reads an argument or count buffer nobody wrote runs with whatever is in that memory, which fits a context-switch timeout. It also fits the earlier result: replacing heavy consumers such as the ShadeVerify and resolve programs with no-ops postpones the hang, but doesn't remove it.

Two fixes follow:

  1. Programs that don't use the heap (the four marked "no") shouldn't be skipped because their root carries the flag. I'm preparing a small change and a Lanes scenario for that.
  2. The culling programs need the index map on a root that also has tables, an extension of #235. @ReverendOzmund, is that something you're already looking at?
<!-- greyfinch-sync:brcly/TuxBox:comment:7207352615 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7207352615). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-27T01:31:14Z. --- These are the programs skipped right before the Xid 109, from a probe run on `main` e76ff6a + #235 on an RTX 5090 (620.70.10). The run is named in the probe output; there was no null-CS list, and the hang came about 7 s into the intro world. All were translated, then skipped at dispatch with `pipeline has no paged descriptor layout: its root indexes the resource heap directly`. Each root has the direct-indexed flag (0x400; six also have 0x800) and **at least one descriptor table**, so #235's table-less path doesn't cover them. | Program | Dispatch | Root parameters | Translation reads the heap | |---|---|---|---| | CS_Prop_BatchCull, CS_Prop_BatchNoCull, CS_Simple_BatchCull, CS_Grass_BatchCull, CS_Slod_BatchCull, CS_Tree_BatchCull_ImposterOnly | plain | table, table, constants | yes | | CS_BatchCullBatchCSMeshlets, CS_BatchCullMeshlets, CS_BatchCullMeshlets_Prev, CS_BatchCullMeshlets_ParaboloidShadows | indirect | table, constants | yes | | CS_DistanceWindowEmissivesCulling | plain | table, table, constants | yes | | **CS_SetShadowMaskIndirectArgs** | plain, 1 group | table, table, constants | **no** | | **CS_Emit_AppendClearCountBuffer** | plain | table | **no** | | **CS_EmitCounts_AddCountsFromAppend** | plain | table, constants | **no** | | CS_FeedbackToParent4x4x4 | plain | table, table, constants | no | Another 37 skipped pipelines were stand-ins. **What this suggests (inferred, not proven):** the skipped set includes the writer of indirect dispatch arguments and the programs that clear and accumulate count buffers. The same run made 268 distinct `ExecuteIndirect` dispatches. An indirect dispatch that reads an argument or count buffer nobody wrote runs with whatever is in that memory, which fits a context-switch timeout. It also fits the earlier result: replacing heavy consumers such as the ShadeVerify and resolve programs with no-ops postpones the hang, but doesn't remove it. Two fixes follow: 1. **Programs that don't use the heap** (the four marked "no") shouldn't be skipped because their root carries the flag. I'm preparing a small change and a Lanes scenario for that. 2. **The culling programs need the index map on a root that also has tables,** an extension of #235. @ReverendOzmund, is that something you're already looking at?
NickStallman commented 2026-11-27 02:38:56 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-27T02:38:56Z.


Conclusion from a series of RTX 5090 runs (620.70.10, GE-Proton11-14, main e76ff6a + #235 and 12e4b06/d8c4327): the early Xid 109 follows a half-translated chain. The producers of the ray-tracing and irradiance-cache passes are stand-ins that write nothing, and the consumers after them run for real, through ExecuteIndirect, on data nobody wrote. Making those consumers no-ops is the only change that moved the hang.

A local probe named each compute program at dispatch, each skip, and the program behind each stand-in. The skipped programs are in my earlier comment.

Measured

Change Time in the intro world Ended by
none (3 runs) 5–7 s Xid 109
CS_Alpha_Schedule, CS_VirtualTable_SortJobs as no-ops ~7 s Xid 109
8 CS_RaytracingResolve kernels as no-ops 7 s Xid 109
three table-only programs no longer skipped 5 s Xid 109
root constants kept under an appended private root SRV same point Xid 109
global barrier before every compute ExecuteIndirect same point Xid 109
7 consumers as no-ops ~115 s title access violation
the 6 of them that are dispatched ~128 s Xid 109

The six: CS_Primary_ShadeVerify (214ec2b4), CS_IrradianceCache_ShadeVerify (0fd5a201), CS_Primary_UpdateVirtualTable (6db0122e), CS_IrradianceCache_UpdateVirtualTable (0c40c71f), CS_Primary_ConsumeProbeShadingSignal (cfd66765), CS_IrradianceCache_ConsumeProbeShadingSignal (104a3aab). The seventh, CS_ShadowRenderTiledCascadesCBPPPC, is a stand-in anyway.

31 stand-ins in the first seconds of the world, grouped:

  • Irradiance cache and primary shading (10): CS_IrradianceCache_GatherVBuffer_WithFar, _Shade, _ShadeSecondary, _ShadowTrace_WithFar, _RegisterShadowTraceRequests, _IntegrateIrradianceSH; CS_Primary_GatherVBuffer_WithFar, CS_Primary_Shade; CS_ShadeAlpha, CS_GatherAlphaVBuffer_WithFar.
  • Ray tracing (7): CS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar, CS_ScreenProbes_TraceRays_RayBinning_BVH_Mixed_ShaderBinning_WithFar, four CS_RTDistantShadowTrace*32_Tiled, CS_ComputeInfiniteRRIntensity.
  • Resolve (6): four more CS_RaytracingResolve, two CS_DummyResolve.
  • Shadows (4): CS_ShadowRenderTiledCascades*, CS_ShadowRenderTiledMiscCBPPPC.
  • Other (4): three CS_ProjDecal*, CS_Tree_BatchCull.

Why they have no translation, from the translator's recorded refusals for those requests: 23 are wave or lane semantics (14 "wave reduction … divergent control flow" and variants, 4 non-constant lane operands, 2 v_readlane in a non-uniform loop, 2 unverified EXEC election, 1 needing complete 64-lane waves), 4 are BVH traversal, 3 are other (s_setpc, an unresolved image descriptor, a swizzle in a loop), and 1 has a translation but still got a stand-in.

Indirect arguments are not the early hang. A second probe found no indirect record over the limit (largest 573 groups) and no hoisted count-buffer fetch. The last new program before the stop was CS_Primary_UpdateVirtualTable at (27,1,1).

Two real bugs turned up on the way and get their own PRs; neither cures this hang:

  • 127 programs made translatable by #216 (123 of them CS_RaytracingResolve) run with zeroed root constants when the runtime appends a private root SRV.
  • Indirect arguments can be read stale without an exact INDIRECT_ARGUMENT transition. A Lanes scenario reproduces it on this card in 48 of 48 rounds.

Inferred

  • The verify, update and consume stages spin or run away on the unwritten outputs of the stand-in shade, gather and trace stages. I have matched names and runs, not buffers.
  • Once the early hang is avoided, the runs sit in the #215 stall (a frame every 12–28 s, label waits released after 5 s) and die within minutes in different ways: Xid 109 again, Xid 13, a title access violation, or the watchdog. In the last run above no new program appeared in the final 30 s. A released label wait lets a queue run ahead of the work it waited for, which recreates "consumer on unwritten data" by other means. So those later failures may be consequences of #215. This is a guess.

What it suggests

A stand-in for a producer leaves its consumers live. Holding those consumers back, or much lower loop guards, would bound the damage until the producers translate. Most of the 31 are refused for wave and lane semantics, so that is where translating them starts.

<!-- greyfinch-sync:brcly/TuxBox:comment:7208310937 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7208310937). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-27T02:38:56Z. --- **Conclusion from a series of RTX 5090 runs** (620.70.10, GE-Proton11-14, `main` e76ff6a + #235 and 12e4b06/d8c4327): the early Xid 109 follows a half-translated chain. The producers of the ray-tracing and irradiance-cache passes are stand-ins that write nothing, and the consumers after them run for real, through `ExecuteIndirect`, on data nobody wrote. Making those consumers no-ops is the only change that moved the hang. A local probe named each compute program at dispatch, each skip, and the program behind each stand-in. The skipped programs are in my earlier comment. ## Measured | Change | Time in the intro world | Ended by | |---|---|---| | none (3 runs) | 5–7 s | Xid 109 | | `CS_Alpha_Schedule`, `CS_VirtualTable_SortJobs` as no-ops | ~7 s | Xid 109 | | 8 `CS_RaytracingResolve` kernels as no-ops | 7 s | Xid 109 | | three table-only programs no longer skipped | 5 s | Xid 109 | | root constants kept under an appended private root SRV | same point | Xid 109 | | global barrier before every compute `ExecuteIndirect` | same point | Xid 109 | | **7 consumers as no-ops** | ~115 s | title access violation | | **the 6 of them that are dispatched** | ~128 s | Xid 109 | The six: `CS_Primary_ShadeVerify` (`214ec2b4`), `CS_IrradianceCache_ShadeVerify` (`0fd5a201`), `CS_Primary_UpdateVirtualTable` (`6db0122e`), `CS_IrradianceCache_UpdateVirtualTable` (`0c40c71f`), `CS_Primary_ConsumeProbeShadingSignal` (`cfd66765`), `CS_IrradianceCache_ConsumeProbeShadingSignal` (`104a3aab`). The seventh, `CS_ShadowRenderTiledCascadesCBPPPC`, is a stand-in anyway. **31 stand-ins in the first seconds of the world**, grouped: - Irradiance cache and primary shading (10): `CS_IrradianceCache_GatherVBuffer_WithFar`, `_Shade`, `_ShadeSecondary`, `_ShadowTrace_WithFar`, `_RegisterShadowTraceRequests`, `_IntegrateIrradianceSH`; `CS_Primary_GatherVBuffer_WithFar`, `CS_Primary_Shade`; `CS_ShadeAlpha`, `CS_GatherAlphaVBuffer_WithFar`. - Ray tracing (7): `CS_RaytraceVBuffer_RayBinning_ShaderBinning_Mixed_WithFar`, `CS_ScreenProbes_TraceRays_RayBinning_BVH_Mixed_ShaderBinning_WithFar`, four `CS_RTDistantShadowTrace*32_Tiled`, `CS_ComputeInfiniteRRIntensity`. - Resolve (6): four more `CS_RaytracingResolve`, two `CS_DummyResolve`. - Shadows (4): `CS_ShadowRenderTiledCascades*`, `CS_ShadowRenderTiledMiscCBPPPC`. - Other (4): three `CS_ProjDecal*`, `CS_Tree_BatchCull`. Why they have no translation, from the translator's recorded refusals for those requests: 23 are wave or lane semantics (14 "wave reduction … divergent control flow" and variants, 4 non-constant lane operands, 2 `v_readlane` in a non-uniform loop, 2 unverified EXEC election, 1 needing complete 64-lane waves), 4 are BVH traversal, 3 are other (`s_setpc`, an unresolved image descriptor, a swizzle in a loop), and 1 has a translation but still got a stand-in. **Indirect arguments are not the early hang.** A second probe found no indirect record over the limit (largest 573 groups) and no hoisted count-buffer fetch. The last new program before the stop was `CS_Primary_UpdateVirtualTable` at (27,1,1). Two real bugs turned up on the way and get their own PRs; neither cures this hang: - 127 programs made translatable by #216 (123 of them `CS_RaytracingResolve`) run with zeroed root constants when the runtime appends a private root SRV. - Indirect arguments can be read stale without an exact `INDIRECT_ARGUMENT` transition. A Lanes scenario reproduces it on this card in 48 of 48 rounds. ## Inferred - The verify, update and consume stages spin or run away on the unwritten outputs of the stand-in shade, gather and trace stages. I have matched names and runs, not buffers. - Once the early hang is avoided, the runs sit in the #215 stall (a frame every 12–28 s, label waits released after 5 s) and die within minutes in different ways: Xid 109 again, Xid 13, a title access violation, or the watchdog. In the last run above no new program appeared in the final 30 s. A released label wait lets a queue run ahead of the work it waited for, which recreates "consumer on unwritten data" by other means. So those later failures may be consequences of #215. This is a guess. ## What it suggests A stand-in for a producer leaves its consumers live. Holding those consumers back, or much lower loop guards, would bound the damage until the producers translate. Most of the 31 are refused for wave and lane semantics, so that is where translating them starts.
NickStallman commented 2026-11-28 05:07:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-28T05:07:47Z.


Progress on the RTX 5090 hang. Measured unless marked.

Where the hang was. We built vkd3d-proton (cae8353e, the commit GE-Proton11-14 ships) with breadcrumbs enabled; the shipped build has them compiled out. One run's device-lost report put the unfinished work in 39 ExecuteIndirect mesh draws on the direct queue, with no compute in the region. Every shader hash in the region maps byte for byte to a cached translation. Four of those mesh programs vote across the group's two 64-lane guest waves inside a loop whose exit each wave decides for itself. When the trip counts differ, one wave reaches group barriers the other never does. These loops also had no iteration guard.

#372 makes such loops run as a whole group: a group vote decides the exit, finished threads skip the body but still reach every barrier, and every mesh loop is bounded.

  • With the translator change reverted, the new mesh check hangs an AMD iGPU (gfx ring timeout and reset).
  • With the change it passes on AMD and the 5090.

Game runs on a warm cache, all reaching the story load:

  • main: Xid 109 in four runs.
  • main plus #372: no Xid 109 in one run. About 14 minutes in it got an Xid 31 instead: a front-end write fault to an unmapped address (HUBCLIENT_FE … FAULT_PDE ACCESS_TYPE_VIRT_WRITE).
  • That is one run, so suggestive, not proven.

The new fault (inferred). It came 7–12 s after vkd3d-proton dropped 123 raytracing builds ("Failed to place destAccelerationStructure") and 97 postbuild-info writes ("Invalid resource"), because their title addresses map to no resource. VRAM had also just filled. The provider passes some of those title addresses to vkd3d untranslated. #320 covers that, and we are running #372 with #320 next.

Earlier leads, now set aside

  • The subgroup-minimum chain is a real NVIDIA driver hang with a standalone repro, and #347 removed it from our translations. But no shader prepared for these runs had that chain after #347, and the game still hung.
  • The 5-second forced label releases are the same in every run and come after the GPU has stopped. They are a symptom.
<!-- greyfinch-sync:brcly/TuxBox:comment:7234474876 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7234474876). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-28T05:07:47Z. --- Progress on the RTX 5090 hang. Measured unless marked. **Where the hang was.** We built vkd3d-proton (`cae8353e`, the commit GE-Proton11-14 ships) with breadcrumbs enabled; the shipped build has them compiled out. One run's device-lost report put the unfinished work in **39 `ExecuteIndirect` mesh draws** on the direct queue, with no compute in the region. Every shader hash in the region maps byte for byte to a cached translation. Four of those mesh programs vote across the group's two 64-lane guest waves *inside* a loop whose exit each wave decides for itself. When the trip counts differ, one wave reaches group barriers the other never does. These loops also had no iteration guard. **#372** makes such loops run as a whole group: a group vote decides the exit, finished threads skip the body but still reach every barrier, and every mesh loop is bounded. - With the translator change reverted, the new mesh check **hangs an AMD iGPU** (gfx ring timeout and reset). - With the change it passes on AMD and the 5090. **Game runs on a warm cache, all reaching the story load:** - `main`: Xid 109 in four runs. - `main` plus #372: no Xid 109 in one run. About 14 minutes in it got an **Xid 31** instead: a front-end write fault to an unmapped address (`HUBCLIENT_FE … FAULT_PDE ACCESS_TYPE_VIRT_WRITE`). - That is one run, so suggestive, not proven. **The new fault (inferred).** It came 7–12 s after vkd3d-proton dropped 123 raytracing builds ("Failed to place destAccelerationStructure") and 97 postbuild-info writes ("Invalid resource"), because their title addresses map to no resource. VRAM had also just filled. The provider passes some of those title addresses to vkd3d untranslated. #320 covers that, and we are running #372 with #320 next. **Earlier leads, now set aside** - The subgroup-minimum chain is a real NVIDIA driver hang with a standalone repro, and #347 removed it from our translations. But no shader prepared for these runs had that chain after #347, and the game still hung. - The 5-second forced label releases are the same in every run and come after the GPU has stopped. They are a symptom.
NickStallman commented 2026-11-28 07:00:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-28T07:00:02Z.


Update: on the RTX 5090 (620.70.10), ProjectScarlett has rendered the story's opening world scene for the first time in our runs, after the "Vice City, Two years ago" card. It's a night skyline seen past a fence and an overhang.

It ran at about 17 s per frame with the GPU at 100%, then about 6 minutes in raised a cascade of Xid 13 (SM MMU faults), followed by Xid 109 and Xid 31.

The build that got there: main (7bafe6b6) plus:

Part What it does
#372 loops that meet the group at barriers run as a group (the mesh-shader deadlock behind the original Xid 109)
#320 builds the acceleration structures titles place in their own memory
#373 keeps render heaps while their title range is committed
local stopgap builds BLAS geometry with an index format the host can't read as empty, rather than passing the raw title address. #375 now decodes format 53 properly.
local stopgap makes a TLAS instance inactive when its structure isn't known
#365 cancellation and failure reasons in DirectStorage

What each fix changed, one fault at a time (traced with vkd3d-proton breadcrumbs and VKD3D_CONFIG=fault):

  1. Xid 109: mesh shaders where the group's two guest waves leave a loop at different times, with group barriers inside the loop. Fixed by #372.
  2. Xid 31: a front-end write to an unmapped address, after vkd3d-proton dropped raytracing builds and postbuild writes. It went away once #320 was added.
  3. Xid 13, part one: BLAS builds read format-53 index buffers at raw title addresses. The faulting page held one of those index addresses in one run and sat 0x1370 bytes after one in another. The stopgap removed it.
  4. Xid 13, part two: reads in the title's streaming span where the title rehydrates cooked BLASes (RehydrateRaytracingAccelerationStructureBatched2X, at least 256 per scene). TuxBox answers that call with E_NOTIMPL, so the TLAS keeps raw addresses. Details are on #320. We're writing the rehydrate-as-build fix on top of #375 and #376.

Still open: the slow frames, and the remaining Xid 13 cascade. One more thing we measured: most DirectStorage reads into physical pages fail, because the page entries we read are 0 ("page never issued"). That's being traced.

<!-- greyfinch-sync:brcly/TuxBox:comment:7235649094 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7235649094). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-28T07:00:02Z. --- Update: on the RTX 5090 (620.70.10), ProjectScarlett has **rendered the story's opening world scene** for the first time in our runs, after the "Vice City, Two years ago" card. It's a night skyline seen past a fence and an overhang. It ran at about 17 s per frame with the GPU at 100%, then about 6 minutes in raised a cascade of Xid 13 (SM MMU faults), followed by Xid 109 and Xid 31. **The build that got there:** `main` (7bafe6b6) plus: | Part | What it does | |---|---| | #372 | loops that meet the group at barriers run as a group (the mesh-shader deadlock behind the original Xid 109) | | #320 | builds the acceleration structures titles place in their own memory | | #373 | keeps render heaps while their title range is committed | | local stopgap | builds BLAS geometry with an index format the host can't read as empty, rather than passing the raw title address. #375 now decodes format 53 properly. | | local stopgap | makes a TLAS instance inactive when its structure isn't known | | #365 | cancellation and failure reasons in DirectStorage | **What each fix changed, one fault at a time** (traced with vkd3d-proton breadcrumbs and `VKD3D_CONFIG=fault`): 1. **Xid 109:** mesh shaders where the group's two guest waves leave a loop at different times, with group barriers inside the loop. Fixed by #372. 2. **Xid 31:** a front-end write to an unmapped address, after vkd3d-proton dropped raytracing builds and postbuild writes. It went away once #320 was added. 3. **Xid 13, part one:** BLAS builds read format-53 index buffers at raw title addresses. The faulting page held one of those index addresses in one run and sat 0x1370 bytes after one in another. The stopgap removed it. 4. **Xid 13, part two:** reads in the title's streaming span where the title **rehydrates** cooked BLASes (`RehydrateRaytracingAccelerationStructureBatched2X`, at least 256 per scene). TuxBox answers that call with `E_NOTIMPL`, so the TLAS keeps raw addresses. Details are on #320. We're writing the rehydrate-as-build fix on top of #375 and #376. **Still open:** the slow frames, and the remaining Xid 13 cascade. One more thing we measured: most DirectStorage reads into physical pages fail, because the page entries we read are 0 ("page never issued"). That's being traced.
1093i3511 commented 2026-11-28 13:13:17 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by 1093i3511 on 2026-11-28T13:13:17Z.


An AMD data point for the world-entry hang. On RDNA2 it is still there after the fixes you list, and without any fault.

Setup: RX 6600 (1002:73ff, RDNA2, 8 GB), Mesa RADV 26.3.1, Linux 7.3.6, GE-Proton11-14 (stock vkd3d-proton, no breadcrumbs), Microsoft DXC 1.9.2609. ProjectScarlett 1.0.2.1, offline, 3840x2160, warm shader caches. All builds below are main b426c1a or later, so #372 is in each of them. Details of the individual runs are on #320 and #394.

Five runs, four builds, same place

Every run reaches world entry: the title sets mission 0x98c85f2a, and the run ends 4 to 6 frames later.

build dropped AS builds rehydrated kernel
main b426c1a (2 runs) 379 / 315 – gfx ring timeout
+ #320 0 0 (256 refused) 10 gfxhub page faults (TCP, PERMISSION_FAULTS: 0x3), then compute and gfx ring timeouts
#394 (contains #320, #375, #376) 0 74 gfx ring timeout
#394 + #373 0 256 gfx ring timeout

So on AMD the same sequence you found on the 5090 shows up:

  • Without #320, raytracing builds are dropped.
  • With #320 but without rehydration, there are page faults in the title's memory.
  • With rehydration, the faults are gone.

What's left is a gfx ring timeout with no page fault and no MODE1 reset (ring gfx_0.0.0 timeout ... Ring gfx_0.0.0 reset succeeded, then VK_ERROR_DEVICE_LOST). It doesn't depend on the acceleration structures: it happens with all of them dropped and with all 256 built. #373 didn't change it either; it only raised the requested VRAM from 14.5 to 15.8 GB.

In the #394 + #373 run, the title's 30 s watchdog (+0x23CF683) fired 2 s after the device loss, so its exit code was 5 instead of 3. That's the "watchdog hides a device loss" case from #215, not the old intro stall.

What I can't see

Without breadcrumbs I can't tell which work the gfx ring was running. Things that might matter:

  • The runs skip work with pipeline has no paged descriptor layout: its root indexes the resource heap directly, from two of the callers in this issue's description:
    • compute dispatches from 0x248cbc1: 11, 8, 0, 1 and 0 times, in the order of the five runs;
    • draws from 0x4e33f98: 0, 6, 1, 16 and 2 times.
  • You wrote that without #372 the mesh check hangs an AMD iGPU with exactly this symptom (gfx ring timeout and reset). That makes me wonder whether another group-barrier loop is left that #372 doesn't cover. I haven't checked that.
  • Your 5090 build also had the stopgap that makes a TLAS instance inactive when its structure isn't known. Mine has no such stopgap.
  • Memory on this card is far beyond its 8 GB: about 15 GB of VRAM requested, about 7 GB resident, about 11 GB in GTT, RAM near full. That could make the frame slow enough to hit the timeout, but I have no evidence for that.

Question

How did you build vkd3d-proton cae8353e with breadcrumbs? A meson option, a patch, or a build script? And how do you put it into GE-Proton11-14: replacing the d3d12.dll/d3d12core.dll in the Proton folder, or through PROTON_*/WINEDLLOVERRIDES? With that I can run the same trace on this card and report the unfinished region.

<!-- greyfinch-sync:brcly/TuxBox:comment:7239780286 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7239780286). Originally posted by [1093i3511](https://github.com/1093i3511) on 2026-11-28T13:13:17Z. --- An AMD data point for the world-entry hang. On RDNA2 it is still there after the fixes you list, and without any fault. **Setup:** RX 6600 (`1002:73ff`, RDNA2, 8 GB), Mesa RADV 26.3.1, Linux 7.3.6, GE-Proton11-14 (stock vkd3d-proton, no breadcrumbs), Microsoft DXC 1.9.2609. ProjectScarlett 1.0.2.1, offline, 3840x2160, warm shader caches. All builds below are `main` b426c1a or later, so #372 is in each of them. Details of the individual runs are on #320 and #394. ## Five runs, four builds, same place Every run reaches world entry: the title sets mission `0x98c85f2a`, and the run ends 4 to 6 frames later. | build | dropped AS builds | rehydrated | kernel | | --- | ---: | ---: | --- | | `main` b426c1a (2 runs) | 379 / 315 | – | gfx ring timeout | | + #320 | 0 | 0 (256 refused) | 10 gfxhub page faults (TCP, `PERMISSION_FAULTS: 0x3`), then compute and gfx ring timeouts | | #394 (contains #320, #375, #376) | 0 | 74 | gfx ring timeout | | #394 + #373 | 0 | 256 | gfx ring timeout | So on AMD the same sequence you found on the 5090 shows up: - Without #320, raytracing builds are dropped. - With #320 but without rehydration, there are page faults in the title's memory. - With rehydration, the faults are gone. What's left is a gfx ring timeout with no page fault and no MODE1 reset (`ring gfx_0.0.0 timeout ... Ring gfx_0.0.0 reset succeeded`, then `VK_ERROR_DEVICE_LOST`). It doesn't depend on the acceleration structures: it happens with all of them dropped and with all 256 built. #373 didn't change it either; it only raised the requested VRAM from 14.5 to 15.8 GB. In the #394 + #373 run, the title's 30 s watchdog (`+0x23CF683`) fired 2 s after the device loss, so its exit code was 5 instead of 3. That's the "watchdog hides a device loss" case from #215, not the old intro stall. ## What I can't see Without breadcrumbs I can't tell which work the gfx ring was running. Things that might matter: - The runs skip work with `pipeline has no paged descriptor layout: its root indexes the resource heap directly`, from two of the callers in this issue's description: - compute dispatches from `0x248cbc1`: 11, 8, 0, 1 and 0 times, in the order of the five runs; - draws from `0x4e33f98`: 0, 6, 1, 16 and 2 times. - You wrote that without #372 the mesh check hangs an AMD iGPU with exactly this symptom (gfx ring timeout and reset). That makes me wonder whether another group-barrier loop is left that #372 doesn't cover. I haven't checked that. - Your 5090 build also had the stopgap that makes a TLAS instance inactive when its structure isn't known. Mine has no such stopgap. - Memory on this card is far beyond its 8 GB: about 15 GB of VRAM requested, about 7 GB resident, about 11 GB in GTT, RAM near full. That could make the frame slow enough to hit the timeout, but I have no evidence for that. ## Question How did you build vkd3d-proton `cae8353e` with breadcrumbs? A meson option, a patch, or a build script? And how do you put it into GE-Proton11-14: replacing the `d3d12.dll`/`d3d12core.dll` in the Proton folder, or through `PROTON_*`/`WINEDLLOVERRIDES`? With that I can run the same trace on this card and report the unfinished region.
NickStallman commented 2026-11-28 13:20:09 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-28T13:20:09Z.


Third correction (29 Nov): the inference that "both vendors time out on the graphics ring at the same point" isn't supported. The AMD failures reported on this issue were page faults on raw title addresses (compute ring, TCP), which #409 removed, not the same event. Our own runs show at least two kinds of failure, shader reads of invalid memory and a hang in an acceleration-structure copy. The draw names in this comment are what was pending at the loss, not shown to be what hung.

Second correction (29 Nov): "in each of five runs the oldest unfinished command is a mesh ExecuteIndirect" and "the other two were particle-effect mesh draws" are wrong. Re-parsing the breadcrumbs with strict pipeline binding, three of those runs had vertex-pipeline draws (ptfx_VS with ptfx pixel shaders) as the oldest unfinished command. Our parser had carried stale mesh-shader hashes over. So the hang is not confined to mesh shaders. The mesh runs re-checked so far are the others. The compute dispatches of CS_Prop_BatchCull in one run are now unexplained, not a separate hang site: that run was one of the one-frame-per-second runs.

Correction (29 Nov): "about 20–140 s after the story load" mixes two groups of runs. In the ones at 132–139 s the desktop was locked, and the game presented about one frame per second; in the unlocked ones it was 23–45 s. Don't read the time as a constant. The trace counts below were also corrected in the next comment.

@1093i3511, thanks, that matches what we see on the RTX 5090 (620.70.10). There it ends as Xid 109 (context-switch timeout), also with no page fault, about 20–140 s after the story load, and in builds that have #372, #376, #394 and #386–#391.

Measured, with vkd3d-proton breadcrumbs (NV checkpoints) and a TuxBox trace of every mesh ExecuteIndirect. The trace copies each draw's argument records on the GPU and marks the draw completed afterwards.

  • Where it stops. In each of five runs, the oldest unfinished command is a mesh ExecuteIndirect with MaxCommandCount 1 and no count buffer.
    • In three runs it is the same draw kind: MS_VS_TransformD with PS_DeferredTextured. It comes right after a chain of indirect compute dispatches and reads a small dedicated 32 KiB argument buffer. The other two were particle-effect mesh draws.
    • With a full barrier inserted in front of it, every earlier command in the list completes, and then that draw never does. So the hang is inside one draw, not a missing barrier.
  • The counts are not huge. The DispatchMesh records the GPU read for the unfinished draws are small: (0,1,1), (1,1,1), (2,1,1), (29,1,1). Several have X = 0. None is over the 65,535 or 2^22 limits.
  • The shaders don't loop.
    • The hung mesh and pixel programs have no loops. Every group barrier in them is in uniform control flow, and the mesh output counts are clamped.
    • The particle pixel shaders have two small loops, each bounded to at most two passes.

Inferred, not tested: since both vendors time out on the graphics ring at the same point, the likelier cause is what TuxBox records or translates for this draw, rather than a driver quirk. One example would be a memory access inside the draw that never completes.

We're looking next at how the zero-count mesh indirects are executed, and at #390 and #396.

<!-- greyfinch-sync:brcly/TuxBox:comment:7239862449 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7239862449). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-28T13:20:09Z. --- > **Third correction (29 Nov):** the inference that "both vendors time out on the graphics ring at the same point" isn't supported. The AMD failures reported on this issue were page faults on raw title addresses (compute ring, TCP), which #409 removed, not the same event. Our own runs show at least two kinds of failure, shader reads of invalid memory and a hang in an acceleration-structure copy. The draw names in this comment are what was *pending* at the loss, not shown to be what hung. > **Second correction (29 Nov):** "in each of five runs the oldest unfinished command is a mesh `ExecuteIndirect`" and "the other two were particle-effect mesh draws" are wrong. Re-parsing the breadcrumbs with strict pipeline binding, three of those runs had **vertex-pipeline draws** (`ptfx_VS` with ptfx pixel shaders) as the oldest unfinished command. Our parser had carried stale mesh-shader hashes over. So **the hang is not confined to mesh shaders**. The mesh runs re-checked so far are the others. The compute dispatches of `CS_Prop_BatchCull` in one run are now unexplained, not a separate hang site: that run was one of the one-frame-per-second runs. > **Correction (29 Nov):** "about 20–140 s after the story load" mixes two groups of runs. In the ones at 132–139 s the desktop was locked, and the game presented about one frame per second; in the unlocked ones it was 23–45 s. Don't read the time as a constant. The trace counts below were also corrected in the next comment. @1093i3511, thanks, that matches what we see on the RTX 5090 (620.70.10). There it ends as Xid 109 (context-switch timeout), also with no page fault, about 20–140 s after the story load, and in builds that have #372, #376, #394 and #386–#391. **Measured, with vkd3d-proton breadcrumbs** (NV checkpoints) **and a TuxBox trace of every mesh `ExecuteIndirect`.** The trace copies each draw's argument records on the GPU and marks the draw completed afterwards. - **Where it stops.** In each of five runs, the oldest unfinished command is a mesh `ExecuteIndirect` with MaxCommandCount 1 and no count buffer. - In three runs it is the same draw kind: `MS_VS_TransformD` with `PS_DeferredTextured`. It comes right after a chain of indirect compute dispatches and reads a small dedicated 32 KiB argument buffer. The other two were particle-effect mesh draws. - With a full barrier inserted in front of it, every earlier command in the list completes, and then that draw never does. So the hang is inside one draw, not a missing barrier. - **The counts are not huge.** The `DispatchMesh` records the GPU read for the unfinished draws are small: (0,1,1), (1,1,1), (2,1,1), (29,1,1). Several have X = 0. None is over the 65,535 or 2^22 limits. - **The shaders don't loop.** - The hung mesh and pixel programs have no loops. Every group barrier in them is in uniform control flow, and the mesh output counts are clamped. - The particle pixel shaders have two small loops, each bounded to at most two passes. **Inferred, not tested:** since both vendors time out on the graphics ring at the same point, the likelier cause is what TuxBox records or translates for this draw, rather than a driver quirk. One example would be a memory access inside the draw that never completes. We're looking next at how the zero-count mesh indirects are executed, and at #390 and #396.
NickStallman commented 2026-11-28 13:35:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-28T13:35:26Z.


Correction (29 Nov): the two hang sites below are not established as two. The CS_Prop_BatchCull observation came from a run throttled to one frame per second and appears in no other run we checked. Treat it as unexplained.

A correction to my comment above.

  • The counts were wrong. The "(0,1,1) / (1,1,1) / (29,1,1), several with X = 0" counts came from a bug in our trace. Its ring was smaller than the distance the GPU ran behind the CPU, so slots were refilled by older entries' late copies. Those counts belong to other draws. We have no measured counts for a hung draw yet. (X = 0 is a legal no-op in vkCmdDrawMeshTasksIndirectEXT anyway.)
  • The latest run stopped somewhere else.
    • The graphics queue was idle at a barrier.
    • Two async compute queues were still inside one dispatch of CS_Prop_BatchCull, and three other compute queues were waiting on labels a direct list never reached.
    • The three earlier runs instead stopped inside a single mesh ExecuteIndirect (MS_VS_TransformD / PS_DeferredTextured), after every earlier command had completed.
    • So there are at least two hang sites, each inside one long-running command.

Inferred, not tested: a lane of the batch-cull program may loop until its translator guard runs out. We're testing that next with an A/B run that makes that one program a no-op, and with the trace fixed.

<!-- greyfinch-sync:brcly/TuxBox:comment:7240043283 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7240043283). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-28T13:35:26Z. --- > **Correction (29 Nov):** the two hang sites below are not established as two. The `CS_Prop_BatchCull` observation came from a run throttled to one frame per second and appears in no other run we checked. Treat it as unexplained. A correction to my comment above. - **The counts were wrong.** The "(0,1,1) / (1,1,1) / (29,1,1), several with X = 0" counts came from a bug in our trace. Its ring was smaller than the distance the GPU ran behind the CPU, so slots were refilled by older entries' late copies. Those counts belong to other draws. We have no measured counts for a hung draw yet. (X = 0 is a legal no-op in `vkCmdDrawMeshTasksIndirectEXT` anyway.) - **The latest run stopped somewhere else.** - The graphics queue was idle at a barrier. - Two async compute queues were still inside one dispatch of `CS_Prop_BatchCull`, and three other compute queues were waiting on labels a direct list never reached. - The three earlier runs instead stopped inside a single mesh `ExecuteIndirect` (`MS_VS_TransformD` / `PS_DeferredTextured`), after every earlier command had completed. - So there are at least two hang sites, each inside one long-running command. **Inferred, not tested:** a lane of the batch-cull program may loop until its translator guard runs out. We're testing that next with an A/B run that makes that one program a no-op, and with the trace fixed.
1093i3511 commented 2026-11-28 18:24:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by 1093i3511 on 2026-11-28T18:24:29Z.


An update to my AMD data point above. On current main the page faults are back on RDNA2, and now they end in a full GPU reset. Memory numbers for the same runs are on #292.

Setup: RX 6600 (1002:73ff, RDNA2, 8 GB), Mesa RADV 26.3.1, Linux 7.3.6, GE-Proton11-14, Microsoft DXC 1.9.2609. main 2af42c9 (contains #394 and #396, not #390), D3D12 provider sha256 e9a5f358…, XboxBvhBuilder.dll f9d957b9…. Full prepare, TUXBOX_TRACE_GPU_FAULT=1, otherwise default settings.

Two runs, the same ending

run length rehydrated kernel
1, cold Mesa cache 35 min 476, 0 skipped 3 gfxhub page fault reports, comp_1.1.1 ring reset failed, MODE1 reset
2, warm 7.4 min 487, 0 skipped 1 gfxhub page fault, comp_1.3.0 ring reset failed, MODE1 reset

Run 2's kernel log:

amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:5 pasid:708)
         in page starting at address 0x0000000177fdf000 from client 0x1b (UTCL2)
         Faulty UTCL2 client ID: TCP (0x8)  PERMISSION_FAULTS: 0x3
amdgpu: ring comp_1.3.0 timeout, signaled seq=47499, emitted seq=47500
amdgpu: Ring comp_1.3.0 reset failed
amdgpu: GPU reset begin!. Source:  1
amdgpu: MODE1 reset
amdgpu: VRAM is lost due to GPU reset!

Run 1 faulted at 0x17561f000, then at 0x0. These are the same client and status as with #320 alone (TCP, PERMISSION_FAULTS: 0x3). This time the compute ring reset fails, so the kernel resets the whole GPU and VRAM is lost. That took down my Wayland compositor both times. Before, the ring resets succeeded and the desktop stayed up.

On this card the pr-394 head (928abca) had no faults, and pr-394 + #373 had none either. So something merged into main since then brings them back here. I haven't isolated what.

What comes before the fault

In both runs, the 10–20 s before the fault have lines like these. There were 7 in run 1 and 8 in run 2:

TuxBox d3d12_xs: AS source 0x179dac100 was given new storage after a list recorded it (#6): the list keeps 0xffff8007485f0000, the address now resolves to 0x179dac100
TuxBox d3d12_xs: AS source 0x179d77600 was given new storage after a list recorded it (#7): the list keeps 0xffff800748610000, the address now resolves to 0xffff800724180000

There is also one line from vkd3d-proton per run:

vkd3d_va_map_place_acceleration_structure: Attempted to place TLAS on VA #ffff80076bc50000 previously used by non-TLAS, marking mutated.

In the first line of each pair, the address "now resolves to" itself (0x179dac100), not to host storage. The faulting pages (0x175…, 0x177…) lie just below these AS sources (0x179…–0x17a…). That's only proximity; I can't tie a fault to one of them.

The GPU fault trace can't report here

GPU fault trace: marking every draw and dispatch appears, but no report follows. On this host:

  • the fault, the failed ring reset and the MODE1 reset come within about 2 s;
  • the reset kills the compositor and Xwayland, and the game process ends 0.38 s after vkd3d's first VK_ERROR_DEVICE_LOST.

The watcher in gpu_trace.rs checks GetDeviceRemovedReason once per second, and its "no marker changed" report waits 8 s. So it never runs before the process is gone. If the report ran right when a submission or wait first returns device lost, or the marker ring were checked more often, it might get out in time. I haven't tried either.

Not established

  • Which merged change brings the faults back on this card. Candidates would be e380da1 (lists whose structure source got new storage) and textures placed in system memory (ce8a7c8), but that's a guess.
  • Whether these runs reached world entry. The reset ended the game before it wrote a crash report, so there's no mission name this time.
  • Which draw or dispatch faulted.

If useful, I can run main with TUXBOX_VRAM_RESERVE_MIB=off to see whether the faults follow textures in system memory.

<!-- greyfinch-sync:brcly/TuxBox:comment:7243766847 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7243766847). Originally posted by [1093i3511](https://github.com/1093i3511) on 2026-11-28T18:24:29Z. --- An update to my AMD data point above. On current `main` the page faults are back on RDNA2, and now they end in a full GPU reset. Memory numbers for the same runs are on #292. **Setup:** RX 6600 (`1002:73ff`, RDNA2, 8 GB), Mesa RADV 26.3.1, Linux 7.3.6, GE-Proton11-14, Microsoft DXC 1.9.2609. `main` 2af42c9 (contains #394 and #396, not #390), D3D12 provider sha256 `e9a5f358…`, `XboxBvhBuilder.dll` `f9d957b9…`. Full prepare, `TUXBOX_TRACE_GPU_FAULT=1`, otherwise default settings. ## Two runs, the same ending | run | length | rehydrated | kernel | | --- | ---: | ---: | --- | | 1, cold Mesa cache | 35 min | 476, 0 skipped | 3 gfxhub page fault reports, `comp_1.1.1` ring reset failed, MODE1 reset | | 2, warm | 7.4 min | 487, 0 skipped | 1 gfxhub page fault, `comp_1.3.0` ring reset failed, MODE1 reset | Run 2's kernel log: ```text amdgpu: [gfxhub] page fault (src_id:0 ring:24 vmid:5 pasid:708) in page starting at address 0x0000000177fdf000 from client 0x1b (UTCL2) Faulty UTCL2 client ID: TCP (0x8) PERMISSION_FAULTS: 0x3 amdgpu: ring comp_1.3.0 timeout, signaled seq=47499, emitted seq=47500 amdgpu: Ring comp_1.3.0 reset failed amdgpu: GPU reset begin!. Source: 1 amdgpu: MODE1 reset amdgpu: VRAM is lost due to GPU reset! ``` Run 1 faulted at `0x17561f000`, then at `0x0`. These are the same client and status as with #320 alone (TCP, `PERMISSION_FAULTS: 0x3`). This time the compute ring reset fails, so the kernel resets the whole GPU and VRAM is lost. That took down my Wayland compositor both times. Before, the ring resets succeeded and the desktop stayed up. On this card the `pr-394` head (928abca) had **no** faults, and `pr-394` + #373 had none either. So something merged into `main` since then brings them back here. I haven't isolated what. ## What comes before the fault In both runs, the 10–20 s before the fault have lines like these. There were 7 in run 1 and 8 in run 2: ```text TuxBox d3d12_xs: AS source 0x179dac100 was given new storage after a list recorded it (#6): the list keeps 0xffff8007485f0000, the address now resolves to 0x179dac100 TuxBox d3d12_xs: AS source 0x179d77600 was given new storage after a list recorded it (#7): the list keeps 0xffff800748610000, the address now resolves to 0xffff800724180000 ``` There is also one line from vkd3d-proton per run: ```text vkd3d_va_map_place_acceleration_structure: Attempted to place TLAS on VA #ffff80076bc50000 previously used by non-TLAS, marking mutated. ``` In the first line of each pair, the address "now resolves to" itself (`0x179dac100`), not to host storage. The faulting pages (`0x175…`, `0x177…`) lie just below these AS sources (`0x179…`–`0x17a…`). That's only proximity; I can't tie a fault to one of them. ## The GPU fault trace can't report here `GPU fault trace: marking every draw and dispatch` appears, but no report follows. On this host: - the fault, the failed ring reset and the MODE1 reset come within about 2 s; - the reset kills the compositor and Xwayland, and the game process ends 0.38 s after vkd3d's first `VK_ERROR_DEVICE_LOST`. The watcher in `gpu_trace.rs` checks `GetDeviceRemovedReason` once per second, and its "no marker changed" report waits 8 s. So it never runs before the process is gone. If the report ran right when a submission or wait first returns device lost, or the marker ring were checked more often, it might get out in time. I haven't tried either. ## Not established - Which merged change brings the faults back on this card. Candidates would be e380da1 (lists whose structure source got new storage) and textures placed in system memory (ce8a7c8), but that's a guess. - Whether these runs reached world entry. The reset ended the game before it wrote a crash report, so there's no mission name this time. - Which draw or dispatch faulted. If useful, I can run `main` with `TUXBOX_VRAM_RESERVE_MIB=off` to see whether the faults follow textures in system memory.
NickStallman commented 2026-11-28 19:49:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-28T19:49:06Z.


@1093i3511, thanks: the "given new storage" lines you quoted pointed straight at it. The fix is #409.

Cause. A structure built in title memory gets its storage when its build is recorded, not submitted.

  • When a later recording built over a structure, it dropped the older structure's address straight away.
  • A list recorded before that build, but submitted after it, then resolved the older structure to one of two wrong addresses: its raw title address, or the new storage that wasn't built yet.
  • Before e380da1 such a list was refused, so its queue just stopped. Since e380da1 it runs. Its copy or size query uses the storage it recorded, but a scene it builds over the structure, and later lists, read through the bad address.

Your faulting pages (0x175…, 0x177…, 0x0) are title-range addresses, which fits. That last link is inferred: I haven't tied your fault to this exact path.

Repro without the game. Lanes ray-tracing-guest-memory now also builds a scene over the structure in the earlier list, and traces a ray through it.

  • On main it hangs an RTX 5090 (Xid 109) and the self-test never completes.
  • With #409 it passes on an RTX 5090 and on an RDNA2 iGPU (RADV).
  • I haven't run the unfixed case on AMD.

Fix (#409). The list that writes over a structure keeps the older storage alive, and withdraws the older address only when it's submitted. A list whose source got new storage after it was recorded keeps using the storage it recorded. The full check passes on both GPUs.

If you can, a run of #409 on your RX 6600 under the same conditions would confirm it.

<!-- greyfinch-sync:brcly/TuxBox:comment:7244827107 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7244827107). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-28T19:49:06Z. --- @1093i3511, thanks: the "given new storage" lines you quoted pointed straight at it. The fix is #409. **Cause.** A structure built in title memory gets its storage when its build is *recorded*, not submitted. - When a later recording built over a structure, it dropped the older structure's address straight away. - A list recorded before that build, but submitted after it, then resolved the older structure to one of two wrong addresses: its raw title address, or the new storage that wasn't built yet. - Before e380da1 such a list was refused, so its queue just stopped. Since e380da1 it runs. Its copy or size query uses the storage it recorded, but a scene it builds over the structure, and later lists, read through the bad address. Your faulting pages (0x175…, 0x177…, 0x0) are title-range addresses, which fits. That last link is inferred: I haven't tied your fault to this exact path. **Repro without the game.** Lanes `ray-tracing-guest-memory` now also builds a scene over the structure in the earlier list, and traces a ray through it. - On `main` it hangs an RTX 5090 (Xid 109) and the self-test never completes. - With #409 it passes on an RTX 5090 and on an RDNA2 iGPU (RADV). - I haven't run the unfixed case on AMD. **Fix (#409).** The list that writes over a structure keeps the older storage alive, and withdraws the older address only when it's submitted. A list whose source got new storage after it was recorded keeps using the storage it recorded. The full check passes on both GPUs. If you can, a run of #409 on your RX 6600 under the same conditions would confirm it.
ReverendOzmund commented 2026-11-29 11:44:24 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-29T11:44:24Z.


Caught an Xid 109 with TUXBOX_TRACE_GPU_FAULT on an RTX 3080 Ti (620.73.04, GE-Proton11-14, main at 28717263 plus #450), this time with TuxBox's XboxBvhBuilder.dll in place. About 4 minutes in, at Game Running with the intro prestreaming:

GPU fault trace: no marker changed for 8s; 1 commands started and not finished, of 81027 recorded
GPU fault trace: #74310 list 0x7aad61a0 copy_as mode=1 guest_src=0x175d20300 native_src=0x175d20300 guest_dst=0x177206f00 native_dst=0x177206f00

The only unfinished command is a compacting acceleration-structure copy, and its native addresses equal the guest ones, so it took the branch in raytracing.rs::record where neither end resolved to a registered structure. Just before it, two GPU memory waits were held past 5 s for a write still to run (target 0x187e, value 0x187d), and the title's crash report lists an unsignaled cross-queue barrier. The kernel logged Xid 109 at the same time.

For comparison, a run on the same build with the package's own XboxBvhBuilder.dll ran 1 h 58 min to the same scene with no Xid. I'll repeat with TUXBOX_TRACE_RAYTRACING=1 to see where that source structure came from.

<!-- greyfinch-sync:brcly/TuxBox:comment:7255317171 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7255317171). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-29T11:44:24Z. --- Caught an Xid 109 with TUXBOX_TRACE_GPU_FAULT on an RTX 3080 Ti (620.73.04, GE-Proton11-14, main at 28717263 plus #450), this time with TuxBox's XboxBvhBuilder.dll in place. About 4 minutes in, at `Game Running` with the intro prestreaming: GPU fault trace: no marker changed for 8s; 1 commands started and not finished, of 81027 recorded GPU fault trace: #74310 list 0x7aad61a0 copy_as mode=1 guest_src=0x175d20300 native_src=0x175d20300 guest_dst=0x177206f00 native_dst=0x177206f00 The only unfinished command is a compacting acceleration-structure copy, and its native addresses equal the guest ones, so it took the branch in `raytracing.rs::record` where neither end resolved to a registered structure. Just before it, two GPU memory waits were held past 5 s for a write still to run (target 0x187e, value 0x187d), and the title's crash report lists an unsignaled cross-queue barrier. The kernel logged Xid 109 at the same time. For comparison, a run on the same build with the package's own XboxBvhBuilder.dll ran 1 h 58 min to the same scene with no Xid. I'll repeat with TUXBOX_TRACE_RAYTRACING=1 to see where that source structure came from.
NickStallman commented 2026-11-29 11:49:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-29T11:49:36Z.


That matches something merged since your build: #436 (in main from 62373772), which your 28717263 + #450 doesn't have. In title memory that never held a structure of ours, it no longer gives such a copy to the host: it's skipped, and the destination is withdrawn so a later scene finds nothing there. Before it, on an RTX 5090, I had runs where such copies (neither address registered) were given to the host and the device was lost later; I have no controlled comparison that ties them to Xid 109.

I can't tell from the marker that yours is the same one, so a run on today's main would show it. #461 (open) closes a related gap: a build that was refused keeps its storage, so a copy of it still reached the host.

Your 1 h 58 min run with the package's own builder is a useful comparison. If you still see Xid 109 on main with TUXBOX_TRACE_RAYTRACING=1, the line for the copy's source would say what the title thought was there.

<!-- greyfinch-sync:brcly/TuxBox:comment:7255376619 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7255376619). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-29T11:49:36Z. --- That matches something merged since your build: **#436** (in `main` from `62373772`), which your `28717263` + #450 doesn't have. In title memory that never held a structure of ours, it no longer gives such a copy to the host: it's skipped, and the destination is withdrawn so a later scene finds nothing there. Before it, on an RTX 5090, I had runs where such copies (neither address registered) were given to the host and the device was lost later; I have no controlled comparison that ties them to Xid 109. I can't tell from the marker that yours is the same one, so a run on today's `main` would show it. #461 (open) closes a related gap: a build that was refused keeps its storage, so a copy of it still reached the host. Your 1 h 58 min run with the package's own builder is a useful comparison. If you still see Xid 109 on `main` with `TUXBOX_TRACE_RAYTRACING=1`, the line for the copy's source would say what the title thought was there.
ReverendOzmund commented 2026-11-29 11:53:23 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-29T11:53:23Z.


Follow-up with TUXBOX_TRACE_RAYTRACING=1. This run drew the opening scene and the first title card, then hit Xid 109 again. Unfinished: CS 2a84fca5 (w32) and copy_as mode=1 guest_src=0x1760dcd00.

History of that source in the log, in order:

  • AS storage 0x466140000..0x466150000 placed 0x1760dcd00
  • AS storage 0x466140000..0x466150000 taken from 0x1760dcd00
  • vkd3d-proton: Copy placing unknown AS at #1760dcd00
  • the compacting copy from 0x1760dcd00 that never finished

About twenty addresses follow the same placed, taken, then copied-into pattern within the same second. After the storage is withdrawn, a copy into that address resolves neither end and seems to take the (source, destination, None) branch, so the GPU later compacts from title memory that isn't a structure. I can test a patch.

<!-- greyfinch-sync:brcly/TuxBox:comment:7255418532 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7255418532). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-29T11:53:23Z. --- Follow-up with TUXBOX_TRACE_RAYTRACING=1. This run drew the opening scene and the first title card, then hit Xid 109 again. Unfinished: CS 2a84fca5 (w32) and `copy_as mode=1 guest_src=0x1760dcd00`. History of that source in the log, in order: - `AS storage 0x466140000..0x466150000 placed 0x1760dcd00` - `AS storage 0x466140000..0x466150000 taken from 0x1760dcd00` - vkd3d-proton: `Copy placing unknown AS at #1760dcd00` - the compacting copy from 0x1760dcd00 that never finished About twenty addresses follow the same placed, taken, then copied-into pattern within the same second. After the storage is withdrawn, a copy into that address resolves neither end and seems to take the `(source, destination, None)` branch, so the GPU later compacts from title memory that isn't a structure. I can test a patch.
ReverendOzmund commented 2026-11-29 11:53:41 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-29T11:53:41Z.


Thanks, that fits. That run was on 28717263 + #450, so before #436. I'll rerun on today's main with TUXBOX_TRACE_RAYTRACING=1 and TUXBOX_TRACE_GPU_FAULT=1 and post whether Xid 109 still happens, and if it does, the copy source's history. For the record, this run on the older build drew the opening scene and the first title card before the hang.

<!-- greyfinch-sync:brcly/TuxBox:comment:7255422044 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7255422044). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-29T11:53:41Z. --- Thanks, that fits. That run was on 28717263 + #450, so before #436. I'll rerun on today's main with TUXBOX_TRACE_RAYTRACING=1 and TUXBOX_TRACE_GPU_FAULT=1 and post whether Xid 109 still happens, and if it does, the copy source's history. For the record, this run on the older build drew the opening scene and the first title card before the hang.
ReverendOzmund commented 2026-11-29 12:26:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-29T12:26:31Z.


Ran today's main (6e2c5da, with #436 and #455) on the RTX 3080 Ti with TUXBOX_TRACE_GPU_FAULT=1 and TUXBOX_TRACE_RAYTRACING=1. The world scene was on screen for several minutes at 12–20 s per frame, and Xid 109 came 942 s after launch instead of about 240 s. No acceleration structure copy was left unfinished this time, so #436/#455 look to have fixed the one I caught.

This time the trace left 37 draws unfinished, all in list 0x7431f980 and all mesh-shader draws:

no marker changed for 8s; 37 commands started and not finished, of 292944 recorded
earliest: #284455 draw PS 9aa10000 MS b919add5
by pair: 16× PS d1333f3f + MS af7d9fb0/73ad4107, 9× PS c01a576e + MS 5d1cc513, 6× PS e31822fd + MS 16b4f5f5, 2× PS 9aa10000 + MS b919add5, 1 each of four others

The memory ledger had the card at 7592 of a 7613 MiB budget at that point. The title's crash report again shows Game Running in the intro with an unsignaled cross-queue barrier.

<!-- greyfinch-sync:brcly/TuxBox:comment:7255814575 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7255814575). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-29T12:26:31Z. --- Ran today's main (6e2c5da, with #436 and #455) on the RTX 3080 Ti with TUXBOX_TRACE_GPU_FAULT=1 and TUXBOX_TRACE_RAYTRACING=1. The world scene was on screen for several minutes at 12–20 s per frame, and Xid 109 came 942 s after launch instead of about 240 s. No acceleration structure copy was left unfinished this time, so #436/#455 look to have fixed the one I caught. This time the trace left 37 draws unfinished, all in list 0x7431f980 and all mesh-shader draws: no marker changed for 8s; 37 commands started and not finished, of 292944 recorded earliest: #284455 draw PS 9aa10000 MS b919add5 by pair: 16× PS d1333f3f + MS af7d9fb0/73ad4107, 9× PS c01a576e + MS 5d1cc513, 6× PS e31822fd + MS 16b4f5f5, 2× PS 9aa10000 + MS b919add5, 1 each of four others The memory ledger had the card at 7592 of a 7613 MiB budget at that point. The title's crash report again shows Game Running in the intro with an unsignaled cross-queue barrier.
NickStallman commented 2026-11-29 12:49:32 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-29T12:49:32Z.


That's a good result, and very useful that the copy is gone. The rest looks like a different thing.

What you have left is all mesh draws, and your card is the same vendor as mine. I've been chasing a wrong-result fault in translated mesh programs on NVIDIA (#458): with 128 lanes, the first 32 get a wrong register value, right on AMD and right on 32 to 127 threads. I can't say yours is it: none of your MS digests is among the recorded mesh requests I have by that name, so they may be named differently, and a hang isn't a wrong value.

A cheap way to check on your side: #470 (yours) can leave out draws by shader. Leaving out those PS/MS pairs one or two at a time would say which draw it needs.

On mine, the same build family (main d2eb99ed plus #462, #455, #463) ended the latest traced run (Xid 109) with a use-after-free: the GPU read a 128 KiB region that had been freed 6.9 s earlier. The pending list there was mesh draws too, all ExecuteIndirect. I'm running it again with import tracing (TUXBOX_TRACE_IMPORTS, not upstream). Your card's memory ledger at the limit (7592 of 7613 MiB) may be a separate matter, as 1093i3511 reports on 8 GB.

<!-- greyfinch-sync:brcly/TuxBox:comment:7256089885 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7256089885). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-29T12:49:32Z. --- That's a good result, and very useful that the copy is gone. The rest looks like a different thing. **What you have left is all mesh draws,** and your card is the same vendor as mine. I've been chasing a wrong-result fault in translated mesh programs on NVIDIA (#458): with 128 lanes, the first 32 get a wrong register value, right on AMD and right on 32 to 127 threads. I can't say yours is it: none of your MS digests is among the recorded mesh requests I have by that name, so they may be named differently, and a hang isn't a wrong value. A cheap way to check on your side: #470 (yours) can leave out draws by shader. Leaving out those PS/MS pairs one or two at a time would say which draw it needs. On mine, the same build family (`main` d2eb99ed plus #462, #455, #463) ended the latest traced run (Xid 109) with a use-after-free: the GPU read a 128 KiB region that had been freed 6.9 s earlier. The pending list there was mesh draws too, all `ExecuteIndirect`. I'm running it again with import tracing (`TUXBOX_TRACE_IMPORTS`, not upstream). Your card's memory ledger at the limit (7592 of 7613 MiB) may be a separate matter, as 1093i3511 reports on 8 GB.
ReverendOzmund commented 2026-11-29 13:01:14 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-29T13:01:14Z.


Already on it: this run is on #470 with TUXBOX_SKIP_SHADERS=b919add5, the mesh shader of the earliest unfinished draw from the last trace (PS 9aa10000 MS b919add5). The log confirms it took: "PS 9aa10000 MS b919add5: draws left out, b919add5 named in TUXBOX_SKIP_SHADERS".

It is now about 20 minutes in, past the 942 s where the previous run hit Xid 109, and still going: the intro has moved on through several camera angles, the HUD drew a contact card, and the opening credits are rolling. Frames are still 10–20 s each, the exposure takes a while to settle at that rate, and there is a fixed vertical seam just left of centre where the two halves of the picture are exposed differently.

I'll post the trace and timings when it ends. If it gets through without Xid 109 I'll also try the other pairs one at a time, as you suggest, to see whether b919add5 alone is enough.

<!-- greyfinch-sync:brcly/TuxBox:comment:7256228803 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7256228803). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-29T13:01:14Z. --- Already on it: this run is on #470 with TUXBOX_SKIP_SHADERS=b919add5, the mesh shader of the earliest unfinished draw from the last trace (PS 9aa10000 MS b919add5). The log confirms it took: "PS 9aa10000 MS b919add5: draws left out, b919add5 named in TUXBOX_SKIP_SHADERS". It is now about 20 minutes in, past the 942 s where the previous run hit Xid 109, and still going: the intro has moved on through several camera angles, the HUD drew a contact card, and the opening credits are rolling. Frames are still 10–20 s each, the exposure takes a while to settle at that rate, and there is a fixed vertical seam just left of centre where the two halves of the picture are exposed differently. I'll post the trace and timings when it ends. If it gets through without Xid 109 I'll also try the other pairs one at a time, as you suggest, to see whether b919add5 alone is enough.
ReverendOzmund commented 2026-11-29 13:08:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-29T13:08:10Z.


Result with #470 and TUXBOX_SKIP_SHADERS=b919add5: the skip took (the log names the pipeline), and the run got further than ever on this card, through the opening credits into daytime scenes, but Xid 109 still came at 1409 s (previous run 942 s).

This time 12 draws were left unfinished, earliest #362994 PS 479dd951 MS 07906255, so b919add5 alone wasn't it. Four pairs were unfinished in both runs: c01a576e/5d1cc513, e31822fd/16b4f5f5, 0dd415ad/9e6ae248, 90d975f7/9aae03a2.

What both runs share is the card being full at the moment of the hang. The memory ledger climbs steadily through the run and was at 7428/7450 MiB when this one hung (99.7%); the previous one was at 7592/7613 MiB. That fits your use-after-free better than any single shader. Next I'll run the same build with TUXBOX_VRAM_RESERVE_MIB=4096 to keep headroom on the card and see if the hang moves or goes.

<!-- greyfinch-sync:brcly/TuxBox:comment:7256314692 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7256314692). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-29T13:08:10Z. --- Result with #470 and TUXBOX_SKIP_SHADERS=b919add5: the skip took (the log names the pipeline), and the run got further than ever on this card, through the opening credits into daytime scenes, but Xid 109 still came at 1409 s (previous run 942 s). This time 12 draws were left unfinished, earliest #362994 PS 479dd951 MS 07906255, so b919add5 alone wasn't it. Four pairs were unfinished in both runs: c01a576e/5d1cc513, e31822fd/16b4f5f5, 0dd415ad/9e6ae248, 90d975f7/9aae03a2. What both runs share is the card being full at the moment of the hang. The memory ledger climbs steadily through the run and was at 7428/7450 MiB when this one hung (99.7%); the previous one was at 7592/7613 MiB. That fits your use-after-free better than any single shader. Next I'll run the same build with TUXBOX_VRAM_RESERVE_MIB=4096 to keep headroom on the card and see if the hang moves or goes.
ReverendOzmund commented 2026-11-29 13:33:03 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-29T13:33:03Z.


Two more runs on the RTX 3080 Ti, and both rule something out:

  1. TUXBOX_VRAM_RESERVE_MIB=3072 kept the card at 6549/7919 MiB (82%), and Xid 109 still came at 741 s. So the card being full at the earlier hangs was a coincidence, not the cause.

  2. Right after that Xid 109 the kernel logged Xid 31: "MMU Fault: ENGINE GRAPHICS GPC2 GPCCLIENT_T1_9 faulted @ 0x4_9b509000. Fault is of type FAULT_PTE ACCESS_TYPE_VIRT_READ", a GPU read of an unmapped page. That fits your use-after-free.

Also measured, with a local experiment that left render and depth targets out of publication: in-world frames stayed at 13–21 s each. The long publication windows were 4.5 s for 2.8 MiB and 5.4 s for 2.2 MiB, so they're waiting, not copying. On this card the frame time isn't publication volume.

For the record: the game's audio played during the intro on this run, ahead of the picture as you'd expect at these frame times.

<!-- greyfinch-sync:brcly/TuxBox:comment:7256622407 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7256622407). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-29T13:33:03Z. --- Two more runs on the RTX 3080 Ti, and both rule something out: 1. TUXBOX_VRAM_RESERVE_MIB=3072 kept the card at 6549/7919 MiB (82%), and Xid 109 still came at 741 s. So the card being full at the earlier hangs was a coincidence, not the cause. 2. Right after that Xid 109 the kernel logged Xid 31: "MMU Fault: ENGINE GRAPHICS GPC2 GPCCLIENT_T1_9 faulted @ 0x4_9b509000. Fault is of type FAULT_PTE ACCESS_TYPE_VIRT_READ", a GPU read of an unmapped page. That fits your use-after-free. Also measured, with a local experiment that left render and depth targets out of publication: in-world frames stayed at 13–21 s each. The long publication windows were 4.5 s for 2.8 MiB and 5.4 s for 2.2 MiB, so they're waiting, not copying. On this card the frame time isn't publication volume. For the record: the game's audio played during the intro on this run, ahead of the picture as you'd expect at these frame times.
NickStallman commented 2026-11-29 13:49:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-29T13:49:22Z.


Thank you, and that changes my reading for the better. Your runs have none of my experiment (#459, now closed, computed wrong values in some mesh programs on NVIDIA; it was in all the game runs I reported from the 5090 in the last hours), and you still get the unmapped-page read after Xid 109. So that fault is in main, not mine alone, and it isn't only the card being full.

What I know, from two traced 5090 runs that did carry it, so please take it as a lead: the page read was inside an import of title memory that had been released, 6.9 s before in one, and about 15 s after a clean release (all submitted batches finished) in the other, with the same low byte of the fault program counter both times. So I read it as something still naming a released import, such as a descriptor, rather than memory freed too early. I'm running the same trace again without the experiment, with a recorder for which descriptor slot names each released import, and I'll post what it shows. If it shows something, I can push that branch so you or @1093i3511 can run it on your cards.

Your publication numbers (4.5 s for 2.8 MiB) fit waiting, as you say. On #472, DrArroway sees 12–24 s per frame with #464's section-backed pages against 3.4 with private views on a 6900 XT, which is the same size as your 13–21 s.

<!-- greyfinch-sync:brcly/TuxBox:comment:7256827028 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7256827028). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-29T13:49:22Z. --- Thank you, and that changes my reading for the better. Your runs have none of my experiment (#459, now closed, computed wrong values in some mesh programs on NVIDIA; it was in all the game runs I reported from the 5090 in the last hours), and you still get the unmapped-page read after Xid 109. So that fault is in `main`, not mine alone, and it isn't only the card being full. What I know, from two traced 5090 runs that did carry it, so please take it as a lead: the page read was inside an import of title memory that had been released, 6.9 s before in one, and about 15 s after a *clean* release (all submitted batches finished) in the other, with the same low byte of the fault program counter both times. So I read it as something still naming a released import, such as a descriptor, rather than memory freed too early. I'm running the same trace again without the experiment, with a recorder for which descriptor slot names each released import, and I'll post what it shows. If it shows something, I can push that branch so you or @1093i3511 can run it on your cards. Your publication numbers (4.5 s for 2.8 MiB) fit waiting, as you say. On #472, DrArroway sees 12–24 s per frame with #464's section-backed pages against 3.4 with private views on a 6900 XT, which is the same size as your 13–21 s.
ReverendOzmund commented 2026-11-29 15:41:21 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-29T15:41:21Z.


Thanks. I'll run your recorder branch on the 3080 Ti as soon as you push it.

One more data point in the meantime: with every translated loop capped per stage (1,024 pixel, 4,096 other raster stages, compute unchanged at 65,536, a local build on top of #470), a run on this card went through the intro for 15–20 minutes and ended on Xid 13 at VS 281b4977 PS 96e8aaaa, the distant-lights draws in the setup guide, rather than Xid 109. One run only, so not a result yet, but it's the first time this card has reached the same fault as the AMD world run instead of the hang.

<!-- greyfinch-sync:brcly/TuxBox:comment:7258287573 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7258287573). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-29T15:41:21Z. --- Thanks. I'll run your recorder branch on the 3080 Ti as soon as you push it. One more data point in the meantime: with every translated loop capped per stage (1,024 pixel, 4,096 other raster stages, compute unchanged at 65,536, a local build on top of #470), a run on this card went through the intro for 15–20 minutes and ended on Xid 13 at VS 281b4977 PS 96e8aaaa, the distant-lights draws in the setup guide, rather than Xid 109. One run only, so not a result yet, but it's the first time this card has reached the same fault as the AMD world run instead of the hang.
NickStallman commented 2026-11-29 22:04:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-29T22:04:49Z.


@ReverendOzmund sorry for the wait: here is the recorder I promised, branch diag/lost-gpu-recorder, on current main (97f21fad). It only records and waits; nothing in it is on unless you set it. It doesn't have the descriptor-slot recorder: that experiment didn't hold up and I withdrew it.

TUXBOX_LOG=1 TUXBOX_HOLD_LOST=40 TUXBOX_TRACE_IMPORTS=1 VKD3D_CONFIG=breadcrumbs,fault \
  python tuxbox.py run --log-file game.log <your usual arguments>
  • TUXBOX_HOLD_LOST=40 keeps the game alive for up to 40 s after the GPU is lost, so that vkd3d-proton can print its report before the game's crash handler ends the process. The game looks frozen; let it be.
  • TUXBOX_TRACE_IMPORTS=1 keeps a list of title-memory imports and prints it at the loss. It needs TUXBOX_LOG, and signals a fence per batch, so it costs some speed.
  • VKD3D_CONFIG=fault prints the address and instruction the driver blames. breadcrumbs names the unfinished draws, but stock GE-Proton11-14 is built without that report: you will get fault only, unless you use a trace build of vkd3d-proton.

After a loss, please send the output of python tools/classify_loss.py game.log, and these lines (not the whole log: it holds paths and user names):

grep -aE "is lost \(reason|holding the title|the hold is over|poll_device_faults|address_binding_tracker|import ring:" game.log
journalctl -k | grep -E "NVRM: Xid"

If classify_loss.py names an import near the fault, add the import ring released and import ring live lines it matches. They hold memory addresses, not contents. Please look through what you paste.

Limits: on our RTX 5090 (620.70.10) the hold has worked in several runs, but the driver doesn't always report an address. It gave none in our last loss (an instruction address only), and the kernel log was then the only other source. No report means it wasn't printed, not that nothing faulted. If an earlier loss ended in Xid 109 without a fault, this may show nothing. The branch has unit tests and check --no-gpu; I haven't run this exact branch in the game, though its parts come from builds we have run.

Your Xid 13 at VS 281b4977 PS 96e8aaaa is interesting next to our own late losses in mesh draws (Xid 13, no address); if this names an import or an address, I'd like to compare.

<!-- greyfinch-sync:brcly/TuxBox:comment:7263384911 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7263384911). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-29T22:04:49Z. --- @ReverendOzmund sorry for the wait: here is the recorder I promised, branch [`diag/lost-gpu-recorder`](https://github.com/NickStallman/TuxBox/tree/diag/lost-gpu-recorder), on current `main` (97f21fad). It only records and waits; nothing in it is on unless you set it. It doesn't have the descriptor-slot recorder: that experiment didn't hold up and I withdrew it. ```sh TUXBOX_LOG=1 TUXBOX_HOLD_LOST=40 TUXBOX_TRACE_IMPORTS=1 VKD3D_CONFIG=breadcrumbs,fault \ python tuxbox.py run --log-file game.log <your usual arguments> ``` - `TUXBOX_HOLD_LOST=40` keeps the game alive for up to 40 s after the GPU is lost, so that vkd3d-proton can print its report before the game's crash handler ends the process. The game looks frozen; let it be. - `TUXBOX_TRACE_IMPORTS=1` keeps a list of title-memory imports and prints it at the loss. It needs `TUXBOX_LOG`, and signals a fence per batch, so it costs some speed. - `VKD3D_CONFIG=fault` prints the address and instruction the driver blames. `breadcrumbs` names the unfinished draws, but stock GE-Proton11-14 is built without that report: you will get `fault` only, unless you use a trace build of vkd3d-proton. After a loss, please send the output of `python tools/classify_loss.py game.log`, and these lines (not the whole log: it holds paths and user names): ```sh grep -aE "is lost \(reason|holding the title|the hold is over|poll_device_faults|address_binding_tracker|import ring:" game.log journalctl -k | grep -E "NVRM: Xid" ``` If classify_loss.py names an import near the fault, add the `import ring released` and `import ring live` lines it matches. They hold memory addresses, not contents. Please look through what you paste. Limits: on our RTX 5090 (620.70.10) the hold has worked in several runs, but the driver doesn't always report an address. It gave none in our last loss (an instruction address only), and the kernel log was then the only other source. No report means it wasn't printed, not that nothing faulted. If an earlier loss ended in Xid 109 without a fault, this may show nothing. The branch has unit tests and `check --no-gpu`; **I haven't run this exact branch in the game**, though its parts come from builds we have run. Your Xid 13 at `VS 281b4977 PS 96e8aaaa` is interesting next to our own late losses in mesh draws (Xid 13, no address); if this names an import or an address, I'd like to compare.
ReverendOzmund commented 2026-11-30 02:18:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-30T02:18:50Z.


Thanks Nick. I'm folding the recorder into my next run: main + #557 + #501 private views, with TUXBOX_HOLD_LOST=40 and VKD3D_CONFIG=fault. I'm leaving TUXBOX_TRACE_IMPORTS off this time because the run is also measuring #501's frame times on NVIDIA. If it loses the device without an address, the next run turns the import trace on. I'll post classify_loss.py's output and the Xid lines.

<!-- greyfinch-sync:brcly/TuxBox:comment:7266895799 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7266895799). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-30T02:18:50Z. --- Thanks Nick. I'm folding the recorder into my next run: main + #557 + #501 private views, with TUXBOX_HOLD_LOST=40 and VKD3D_CONFIG=fault. I'm leaving TUXBOX_TRACE_IMPORTS off this time because the run is also measuring #501's frame times on NVIDIA. If it loses the device without an address, the next run turns the import trace on. I'll post classify_loss.py's output and the Xid lines.
NickStallman commented 2026-11-30 03:58:06 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-30T03:58:06Z.


@ReverendOzmund, a result from our RTX 5090 (10de:2b85, 620.70.10, GE-Proton11-14) that may help with yours. One run, 19 minutes into the world (the GPU was lost at 1790 s, Xid 13, MMU fault in a shader, about the same class as in your report but not the same Xid). The first with a fault address: ReadInvalid 0xdcf6068000. vkd3d-proton's binding log says the address was in an image's range of 0xb0000 bytes (BIND, UNBIND, BIND, then the last UNBIND 846 s before the fault), "very likely use-after-free". 34 mesh ExecuteIndirects were unfinished.

That doesn't name the texture or the descriptor. The likely kind is a reserved placed texture (guess). I've filed two log-only diagnostics as drafts, #567 (which ended images descriptors still name, when the device is lost) and #568 (what the indirect mesh records hold), both off by default and neither run on a GPU yet. If your next run has room for TUXBOX_CHECK_STALE_IMAGES=1 or TUXBOX_TRACE_MESH_RECORDS=cpu, either would help; keep TUXBOX_HOLD_LOST set. I'm running both now.

<!-- greyfinch-sync:brcly/TuxBox:comment:7268353246 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7268353246). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-30T03:58:06Z. --- @ReverendOzmund, a result from our RTX 5090 (`10de:2b85`, 620.70.10, GE-Proton11-14) that may help with yours. One run, 19 minutes into the world (the GPU was lost at 1790 s, Xid 13, MMU fault in a shader, about the same class as in your report but not the same Xid). The first with a fault address: `ReadInvalid 0xdcf6068000`. vkd3d-proton's binding log says the address was in an image's range of 0xb0000 bytes (BIND, UNBIND, BIND, then the last UNBIND **846 s before** the fault), "very likely use-after-free". 34 mesh ExecuteIndirects were unfinished. That doesn't name the texture or the descriptor. The likely kind is a reserved placed texture (guess). I've filed two log-only diagnostics as drafts, #567 (which ended images descriptors still name, when the device is lost) and #568 (what the indirect mesh records hold), both off by default and neither run on a GPU yet. If your next run has room for `TUXBOX_CHECK_STALE_IMAGES=1` or `TUXBOX_TRACE_MESH_RECORDS=cpu`, either would help; keep `TUXBOX_HOLD_LOST` set. I'm running both now.
NickStallman commented 2026-11-30 04:55:31 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-30T04:55:31Z.


An update to my comments here, with two corrections.

In a second traced loss on the RTX 5090 (84b, 11 minutes into the world, Xid 13) with both #567 and #568 on:

  • No followed descriptor named an image that had ended (160,785 descriptors, 28,244 live images, 32,768 ended ones kept; older ones aren't). That refutes a stale descriptor the diagnostic follows, for this loss only. It says nothing about the first loss (83a), which ran without the diagnostic, so the freed-texture reading there is neither confirmed nor refuted. (I said earlier to read it as a coincidence; that went too far.)
  • The indirect mesh records aren't it: 393,498 of them, none out of range, including those in flight.
  • This time the fault page was 0x1030b5000; vkd3d says it's in no allocation. Correction: I said the address was in the title's own address space. It isn't: it's a GPU address. No import or placement we logged lies between 4 GiB and about 0x123e70000, and it's in that gap; 27 of the 65 invalid-access pages in our older logs are in the same band, three of them the same page in different runs.
  • In flight were 34 mesh draws, 13 of them one mesh/pixel pair (de01af6fdee17682 / 566c096c9479b982), also in flight in 83a. None of the programs we disassembled dereferences a 64-bit pointer. The pair does index the resource heap with values from title data (27 bits, unbounded in the map lookup).
  • No root descriptor in the crash region held a title address as if it were host, so #389's window doesn't explain it here.

Best remaining family, inferred: a resource-heap descriptor read through a wrong or unmapped slot. About 1.04 million index-map entries without a slot hold records; today such an index reads whatever visible slot 0 holds. I have a small fix for that (a null view instead) and will run the game with it next; a clean run or two wouldn't prove anything, so I'll repeat it.

Third traced loss (86a, with the null view of #572 active, 9 minutes into the world): the GPU was still lost. So a missing index-map slot's view isn't it. The fault page was 0xdb21d75000, inside a range vkd3d had bound to an image and unbound 288 s before. Both freed-image faults (83a and 86a) are in the last 64 KiB tile of the image (offset 0xa8000 of 0xb0000; 0x155000 of 0x160000), which is usually the packed mips. Again no followed descriptor named an ended image (#567), so if that is a stale texture, our diagnostic misses a path. 67 of the unfinished draws used MS b91b86fc, one of @Jerkin42's programs. Looking at the paths now.

<!-- greyfinch-sync:brcly/TuxBox:comment:7269200114 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7269200114). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-30T04:55:31Z. --- An update to my comments here, with two corrections. In a second traced loss on the RTX 5090 (84b, 11 minutes into the world, Xid 13) with both #567 and #568 on: - **No followed descriptor named an image that had ended** (160,785 descriptors, 28,244 live images, 32,768 ended ones kept; older ones aren't). That refutes a stale descriptor the diagnostic follows, for this loss only. It says nothing about the first loss (83a), which ran without the diagnostic, so the freed-texture reading there is neither confirmed nor refuted. (I said earlier to read it as a coincidence; that went too far.) - **The indirect mesh records aren't it:** 393,498 of them, none out of range, including those in flight. - This time the fault page was `0x1030b5000`; vkd3d says it's in no allocation. **Correction:** I said the address was in the title's own address space. It isn't: it's a GPU address. No import or placement we logged lies between 4 GiB and about 0x123e70000, and it's in that gap; 27 of the 65 invalid-access pages in our older logs are in the same band, three of them the same page in different runs. - In flight were 34 mesh draws, 13 of them one mesh/pixel pair (`de01af6fdee17682` / `566c096c9479b982`), also in flight in 83a. None of the programs we disassembled dereferences a 64-bit pointer. The pair does index the resource heap with values from title data (27 bits, unbounded in the map lookup). - No root descriptor in the crash region held a title address as if it were host, so #389's window doesn't explain it here. **Best remaining family, inferred:** a resource-heap descriptor read through a wrong or unmapped slot. About 1.04 million index-map entries without a slot hold records; today such an index reads whatever visible slot 0 holds. I have a small fix for that (a null view instead) and will run the game with it next; a clean run or two wouldn't prove anything, so I'll repeat it. **Third traced loss (86a, with the null view of #572 active, 9 minutes into the world): the GPU was still lost.** So a missing index-map slot's view isn't it. The fault page was `0xdb21d75000`, inside a range vkd3d had bound to an image and unbound 288 s before. Both freed-image faults (83a and 86a) are in the **last 64 KiB tile** of the image (offset 0xa8000 of 0xb0000; 0x155000 of 0x160000), which is usually the packed mips. Again no followed descriptor named an ended image (#567), so if that is a stale texture, our diagnostic misses a path. 67 of the unfinished draws used `MS b91b86fc`, one of @Jerkin42's programs. Looking at the paths now.
ReverendOzmund commented 2026-11-30 07:10:57 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by ReverendOzmund on 2026-11-30T07:10:57Z.


Run with #567 (TUXBOX_CHECK_STALE_IMAGES=1), plus #572, #566, #563, #564 and #501 private views, RTX 3080 Ti, 620.73.04. Lost at 3214 s:

  • Stale images at the loss: 34529 live, 9665 ended kept, 0 of those named by any descriptor; 135841 descriptors name an image. Unmapped indices read slot 0: no image.
  • 8 unfinished commands, all draws VS 281b4977 PS 96e8aaaa (the known distant-lights fault): Xid 13 MMU faults on every GPC, then Xid 109, then Xid 31 at 0x0_0004112b.
  • The card was at 7474/7620 MiB with 1090 failed 16 MiB device-local allocations just before.

So no stale descriptor behind this one.

On your comment to Jerkin42: across eight losses here, MS 4db9a403 / PS 9b9409d0 never appears among the unfinished draws. My mesh losses were MS af7d9fb0, 5d1cc513, 16b4f5f5, fdd6bb48, b5f8d653, e8f8c6c0, 5082fbe3, 93e1ef9a and 89c17cf9. My one earlier Xid 31 was at 0x4_9b509000, not in the 4 GiB gap. Happy to test #390 once it's rebased onto main.

<!-- greyfinch-sync:brcly/TuxBox:comment:7271445735 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7271445735). Originally posted by [ReverendOzmund](https://github.com/ReverendOzmund) on 2026-11-30T07:10:57Z. --- Run with #567 (TUXBOX_CHECK_STALE_IMAGES=1), plus #572, #566, #563, #564 and #501 private views, RTX 3080 Ti, 620.73.04. Lost at 3214 s: - Stale images at the loss: 34529 live, 9665 ended kept, 0 of those named by any descriptor; 135841 descriptors name an image. Unmapped indices read slot 0: no image. - 8 unfinished commands, all draws VS 281b4977 PS 96e8aaaa (the known distant-lights fault): Xid 13 MMU faults on every GPC, then Xid 109, then Xid 31 at 0x0_0004112b. - The card was at 7474/7620 MiB with 1090 failed 16 MiB device-local allocations just before. So no stale descriptor behind this one. On your comment to Jerkin42: across eight losses here, MS 4db9a403 / PS 9b9409d0 never appears among the unfinished draws. My mesh losses were MS af7d9fb0, 5d1cc513, 16b4f5f5, fdd6bb48, b5f8d653, e8f8c6c0, 5082fbe3, 93e1ef9a and 89c17cf9. My one earlier Xid 31 was at 0x4_9b509000, not in the 4 GiB gap. Happy to test #390 once it's rebased onto main.
NickStallman commented 2026-11-30 07:19:18 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-30T07:19:18Z.


@ReverendOzmund thank you, that's a clean negative on a second card, and the list of draws is worth as much as the stale-image result: MS 4db9a403 / PS 9b9409d0 not in any of your eight losses (it's in ours and @Jerkin42's AMD one), and yours near the memory limit (7,474 of 7,620 MiB, 1,090 failed allocations). So there look to be several different faults under the same Xid, and I won't treat that pair as common to all of NVIDIA. Our own default-mode runs have also been lost well below the card's limit (a 32 GB card), so memory isn't behind ours.

#390 is rebased onto main's reformat: d3d12/mesh-index-map-bitmap, f172e332 on e5d2e913 (MathiewMay's commit plus two tests of ours). @Jerkin42's AMD run with it got past the faults it had in the PROLOGUE draws; our NVIDIA builds always had it. If you can run it, the interesting question is whether your distant-lights fault (VS 281b4977 / PS 96e8aaaa) changes; I don't expect it to.

<!-- greyfinch-sync:brcly/TuxBox:comment:7271601469 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7271601469). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-30T07:19:18Z. --- @ReverendOzmund thank you, that's a clean negative on a second card, and the list of draws is worth as much as the stale-image result: `MS 4db9a403` / `PS 9b9409d0` not in any of your eight losses (it's in ours and @Jerkin42's AMD one), and yours near the memory limit (7,474 of 7,620 MiB, 1,090 failed allocations). So there look to be several different faults under the same Xid, and I won't treat that pair as common to all of NVIDIA. Our own default-mode runs have also been lost well below the card's limit (a 32 GB card), so memory isn't behind ours. #390 is rebased onto main's reformat: [`d3d12/mesh-index-map-bitmap`](https://github.com/NickStallman/TuxBox/tree/d3d12/mesh-index-map-bitmap), f172e332 on e5d2e913 (MathiewMay's commit plus two tests of ours). @Jerkin42's AMD run with it got past the faults it had in the PROLOGUE draws; our NVIDIA builds always had it. If you can run it, the interesting question is whether your distant-lights fault (`VS 281b4977` / `PS 96e8aaaa`) changes; I don't expect it to.
NickStallman commented 2026-11-30 09:35:47 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by NickStallman on 2026-11-30T09:35:47Z.


A traced loss from tonight, RTX 5090 (10de:2b85, 620.70.10, GE-Proton11-14), about 3.5 minutes into the world, Xid 13. One run, with VK_NV_raw_access_chains disabled, #572's null view on, #390 in, and #567/#568 on (f482572a plus our PRs, not current main):

  • ReadInvalid 0x108ddf000, in the empty gap just above 4 GiB that two earlier traced losses here were in. vkd3d-proton's binding log: "Found no candidate VA entries. Page fault was likely caused by accessing never used memory or out of bounds access."
  • MS 4db9a403 is among the unfinished draws again (9 of them; 40 are MS 84798173). That mesh shader is in all three gap losses we've traced. It isn't in @ReverendOzmund's.
  • #567 at the loss: 29,579 images live, 32,768 ended ones kept, none named by any descriptor (178,904 descriptors name an image). It can't see an index outside the heap, so that doesn't argue against #472's finding.
  • So the extension isn't what makes these faults, in this run. We hadn't reached the world with it off before.

@Jerkin42's unbounded heap index (#472) is the lead we'll test next: the padding diagnostic against a control run without it on the same build.

<!-- greyfinch-sync:brcly/TuxBox:comment:7274424065 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7274424065). Originally posted by [NickStallman](https://github.com/NickStallman) on 2026-11-30T09:35:47Z. --- A traced loss from tonight, RTX 5090 (`10de:2b85`, 620.70.10, GE-Proton11-14), about 3.5 minutes into the world, Xid 13. One run, with `VK_NV_raw_access_chains` disabled, #572's null view on, #390 in, and #567/#568 on (f482572a plus our PRs, not current main): - **`ReadInvalid 0x108ddf000`**, in the empty gap just above 4 GiB that two earlier traced losses here were in. vkd3d-proton's binding log: "Found no candidate VA entries. Page fault was likely caused by accessing never used memory or out of bounds access." - `MS 4db9a403` is among the unfinished draws again (9 of them; 40 are `MS 84798173`). That mesh shader is in all three gap losses we've traced. It isn't in @ReverendOzmund's. - #567 at the loss: 29,579 images live, 32,768 ended ones kept, none named by any descriptor (178,904 descriptors name an image). It can't see an index outside the heap, so that doesn't argue against #472's finding. - **So the extension isn't what makes these faults**, in this run. We hadn't reached the world with it off before. @Jerkin42's unbounded heap index (#472) is the lead we'll test next: the padding diagnostic against a control run without it on the same build.
TheLore64 commented 2026-11-30 15:03:27 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by TheLore64 on 2026-11-30T15:03:27Z.


Confirming that @ReverendOzmund's VRAM-pressure distant-lights fault (VS 281b4977 / PS 96e8aaaa) also reproduces identically on AMD RDNA 4 (Radeon RX 9070, Mesa 26.0.8 RADV GFX1201, GE-Proton11-14) on main (f7afdd16):

  • GPU / Host profile: adapter=1002:7550 wave=32-64 section-import=substituted descriptor-bytes=32/16 mesh=yes rays=yes
  • Reached: Full 1440p opening world night scene (token=6049, 1069.5s), with 0 pending shaders (61 empty stand-ins).
  • Fault trigger (matches the 3080 Ti memory-limit behavior): Once device-local VRAM reached 13,734 / 14,040 MiB (vkd3d_allocate_device_memory: Memory allocation failed, falling back to system memory, placed texture #8192 put in system memory), RADV lost the context on a TCP GPUVM read fault:
    • radv: GPUVM fault detected at address 0x8002a3a44000
    • GCVM_L2_PROTECTION_FAULT_STATUS: 0x40113b (CLIENT_ID: TCP 0x8, WALKER_ERROR: 5, PERMISSION_FAULTS: 3, MAPPING_ERROR: 1)
  • TUXBOX_TRACE_GPU_FAULT=1 result:
    • GPU fault trace: fence signaled UINT64_MAX (device lost); 1 commands started and not finished, of 188137 recorded
    • GPU fault trace: #185931 list 0x765c1b80 draw VS 281b4977 PS 96e8aaaa

So VS 281b4977 / PS 96e8aaaa appears to be cross-vendor whenever device-local VRAM fills up and vkd3d-proton spills textures into system memory.

<!-- greyfinch-sync:brcly/TuxBox:comment:7282359560 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7282359560). Originally posted by [TheLore64](https://github.com/TheLore64) on 2026-11-30T15:03:27Z. --- Confirming that @ReverendOzmund's VRAM-pressure distant-lights fault (`VS 281b4977` / `PS 96e8aaaa`) also reproduces identically on **AMD RDNA 4 (Radeon RX 9070, Mesa 26.0.8 RADV GFX1201, GE-Proton11-14)** on `main` (`f7afdd16`): * **GPU / Host profile:** `adapter=1002:7550 wave=32-64 section-import=substituted descriptor-bytes=32/16 mesh=yes rays=yes` * **Reached:** Full 1440p opening world night scene (`token=6049`, `1069.5s`), with `0` pending shaders (`61` empty stand-ins). * **Fault trigger (matches the 3080 Ti memory-limit behavior):** Once device-local VRAM reached `13,734 / 14,040 MiB` (`vkd3d_allocate_device_memory: Memory allocation failed, falling back to system memory`, `placed texture #8192 put in system memory`), RADV lost the context on a `TCP` GPUVM read fault: * `radv: GPUVM fault detected at address 0x8002a3a44000` * `GCVM_L2_PROTECTION_FAULT_STATUS: 0x40113b` (`CLIENT_ID: TCP 0x8`, `WALKER_ERROR: 5`, `PERMISSION_FAULTS: 3`, `MAPPING_ERROR: 1`) * **`TUXBOX_TRACE_GPU_FAULT=1` result:** * `GPU fault trace: fence signaled UINT64_MAX (device lost); 1 commands started and not finished, of 188137 recorded` * `GPU fault trace: #185931 list 0x765c1b80 draw VS 281b4977 PS 96e8aaaa` So `VS 281b4977` / `PS 96e8aaaa` appears to be cross-vendor whenever device-local VRAM fills up and `vkd3d-proton` spills textures into system memory.
DrArroway commented 2026-12-01 00:27:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-12-01T00:27:49Z.


Here is a TUXBOX_TRACE_GPU_FAULT=1 capture from the intermittent TCP PERMISSION_FAULTS: 3 RADV GPUVM fault on AMD Radeon RX 6900 XT (1002:73bf):

  • Environment: AMD Radeon RX 6900 XT (1002:73bf), Mesa 26.3.1-arch3.5 (RADV NAVI21), GE-Proton11-14, TUXBOX_XMEM_PRIVATE_VIEWS=1, TUXBOX_TRACE_GPU_FAULT=1
  • Host profile: adapter=1002:73bf wave=32-64 section-import=substituted descriptor-bytes=64/16 mesh=yes rays=yes
  • Build note: d3d12_xs.dll and xshader on main 40a69c3f (post-#389 / #594), xmem.dll with #600 plus an in-progress xmem held-alias fix (the same TCP PERMISSION_FAULTS: 3 0x800... GPUVM fault family has also reproduced intermittently on stock main 40a69c3f)
  • State right before device loss (324.5s, token=8267, 0 device-local allocation failures; 53 type-5/10 fallback warnings earlier in the run):
    • memory ledger: card 14616/15709 MiB, adapter system memory 5140/31597 MiB, upload staging 0 MiB, title pages 7131 MiB, process commit 17224 MiB
    • texture ledger: unbacked 442 (112 MiB), card 21971 (6432 MiB) (title ranges 6514 MiB, 5334 MiB distinct), system 6389 (1442 MiB), committed 3209 (3 MiB)
radv: GPUVM fault detected at address 0x8006723a5000.
GCVM_L2_PROTECTION_FAULT_STATUS: 0x601031
	 CLIENT_ID: (TCP) 0x8
	 MORE_FAULTS: 1
	 WALKER_ERROR: 0
	 PERMISSION_FAULTS: 3
	 MAPPING_ERROR: 0
	 RW: 0
GPU fault trace: fence signaled UINT64_MAX (device lost); 4 commands started and not finished, of 267379 recorded
GPU fault trace: #264407 list 0x763a2350 draw VS 72817cd3 PS 9bcac3ef
GPU fault trace: #264409 list 0x763a2350 draw VS 72817cd3 PS 9bcac3ef
GPU fault trace: #264412 list 0x763a2350 draw VS 72817cd3 PS 9bcac3ef
GPU fault trace: #264416 list 0x763a2350 draw VS 72817cd3 PS 9bcac3ef

Unlike the VS 281b4977 / PS 96e8aaaa distant-lights VRAM-exhaustion fault reported above, all four unfinished commands here are draw VS 72817cd3 PS 9bcac3ef with ~1.1 GiB VRAM headroom and zero device-local allocation failures.

<!-- greyfinch-sync:brcly/TuxBox:comment:7296362711 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7296362711). Originally posted by [DrArroway](https://github.com/DrArroway) on 2026-12-01T00:27:49Z. --- Here is a `TUXBOX_TRACE_GPU_FAULT=1` capture from the intermittent `TCP` `PERMISSION_FAULTS: 3` RADV GPUVM fault on **AMD Radeon RX 6900 XT (1002:73bf)**: - **Environment:** AMD Radeon RX 6900 XT (`1002:73bf`), Mesa `26.3.1-arch3.5` (RADV NAVI21), `GE-Proton11-14`, `TUXBOX_XMEM_PRIVATE_VIEWS=1`, `TUXBOX_TRACE_GPU_FAULT=1` - **Host profile:** `adapter=1002:73bf wave=32-64 section-import=substituted descriptor-bytes=64/16 mesh=yes rays=yes` - **Build note:** `d3d12_xs.dll` and `xshader` on `main` `40a69c3f` (post-`#389` / `#594`), `xmem.dll` with `#600` plus an in-progress `xmem` held-alias fix (the same `TCP` `PERMISSION_FAULTS: 3` `0x800...` GPUVM fault family has also reproduced intermittently on stock `main` `40a69c3f`) - **State right before device loss** (`324.5s`, `token=8267`, `0` device-local allocation failures; `53` type-5/10 fallback warnings earlier in the run): - `memory ledger: card 14616/15709 MiB, adapter system memory 5140/31597 MiB, upload staging 0 MiB, title pages 7131 MiB, process commit 17224 MiB` - `texture ledger: unbacked 442 (112 MiB), card 21971 (6432 MiB) (title ranges 6514 MiB, 5334 MiB distinct), system 6389 (1442 MiB), committed 3209 (3 MiB)` ```text radv: GPUVM fault detected at address 0x8006723a5000. GCVM_L2_PROTECTION_FAULT_STATUS: 0x601031 CLIENT_ID: (TCP) 0x8 MORE_FAULTS: 1 WALKER_ERROR: 0 PERMISSION_FAULTS: 3 MAPPING_ERROR: 0 RW: 0 ``` ```text GPU fault trace: fence signaled UINT64_MAX (device lost); 4 commands started and not finished, of 267379 recorded GPU fault trace: #264407 list 0x763a2350 draw VS 72817cd3 PS 9bcac3ef GPU fault trace: #264409 list 0x763a2350 draw VS 72817cd3 PS 9bcac3ef GPU fault trace: #264412 list 0x763a2350 draw VS 72817cd3 PS 9bcac3ef GPU fault trace: #264416 list 0x763a2350 draw VS 72817cd3 PS 9bcac3ef ``` Unlike the `VS 281b4977` / `PS 96e8aaaa` distant-lights VRAM-exhaustion fault reported above, all four unfinished commands here are `draw VS 72817cd3 PS 9bcac3ef` with ~1.1 GiB VRAM headroom and zero device-local allocation failures.
DrArroway commented 2026-12-01 00:47:46 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-12-01T00:47:46Z.


Follow-up TUXBOX_TRACE_GPU_FAULT=1 capture on the same setup (AMD Radeon RX 6900 XT (1002:73bf), Mesa 26.3.1-arch3.5 RADV NAVI21, GE-Proton11-14, TUXBOX_XMEM_PRIVATE_VIEWS=1), hitting the exact same TCP PERMISSION_FAULTS: 3 (RW: 0) 0x800... GPUVM fault signature — this time on a compute dispatch (CS 482ad7dc) instead of VS 72817cd3 / PS 9bcac3ef:

  • State right before device loss (427.8s, token=8298, 0 device-local allocation failures; 102 type-5/10 fallback warnings earlier in the run):
    • memory ledger: card 14373/15482 MiB, adapter system memory 5587/31593 MiB, upload staging 0 MiB, title pages 7131 MiB, process commit 16553 MiB
    • texture ledger: unbacked 319 (44 MiB), card 16187 (5135 MiB) (title ranges 4748 MiB, 4273 MiB distinct), system 6615 (1459 MiB), committed 2073 (1 MiB)
radv: GPUVM fault detected at address 0x80037b324000.
GCVM_L2_PROTECTION_FAULT_STATUS: 0x701031
	 CLIENT_ID: (TCP) 0x8
	 MORE_FAULTS: 1
	 WALKER_ERROR: 0
	 PERMISSION_FAULTS: 3
	 MAPPING_ERROR: 0
	 RW: 0
GPU fault trace: queue submit failed (0x80004005, reason 0x887a0005); 6 commands started and not finished, of 418083 recorded
GPU fault trace: #415808 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248
GPU fault trace: #415809 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248
GPU fault trace: #415810 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248
GPU fault trace: #415811 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248
GPU fault trace: #415812 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248
GPU fault trace: #415813 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248

Catching a completely different shader (CS 482ad7dc here vs VS 72817cd3 / PS 9bcac3ef previously) under the same TCP PERMISSION_FAULTS: 3 (RW: 0) signature at ~14.4–14.6 / 15.5–15.7 GiB card usage and zero device-local allocation failures points away from a single-shader bug and toward a shared resource/descriptor/page-table-lifetime cause.

<!-- greyfinch-sync:brcly/TuxBox:comment:7296747897 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7296747897). Originally posted by [DrArroway](https://github.com/DrArroway) on 2026-12-01T00:47:46Z. --- Follow-up `TUXBOX_TRACE_GPU_FAULT=1` capture on the same setup (**AMD Radeon RX 6900 XT (`1002:73bf`)**, Mesa `26.3.1-arch3.5` RADV NAVI21, `GE-Proton11-14`, `TUXBOX_XMEM_PRIVATE_VIEWS=1`), hitting the exact same `TCP` `PERMISSION_FAULTS: 3` (`RW: 0`) `0x800...` GPUVM fault signature — this time on a **compute dispatch (`CS 482ad7dc`)** instead of `VS 72817cd3 / PS 9bcac3ef`: - **State right before device loss** (`427.8s`, `token=8298`, `0` device-local allocation failures; `102` type-5/10 fallback warnings earlier in the run): - `memory ledger: card 14373/15482 MiB, adapter system memory 5587/31593 MiB, upload staging 0 MiB, title pages 7131 MiB, process commit 16553 MiB` - `texture ledger: unbacked 319 (44 MiB), card 16187 (5135 MiB) (title ranges 4748 MiB, 4273 MiB distinct), system 6615 (1459 MiB), committed 2073 (1 MiB)` ```text radv: GPUVM fault detected at address 0x80037b324000. GCVM_L2_PROTECTION_FAULT_STATUS: 0x701031 CLIENT_ID: (TCP) 0x8 MORE_FAULTS: 1 WALKER_ERROR: 0 PERMISSION_FAULTS: 3 MAPPING_ERROR: 0 RW: 0 ``` ```text GPU fault trace: queue submit failed (0x80004005, reason 0x887a0005); 6 commands started and not finished, of 418083 recorded GPU fault trace: #415808 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248 GPU fault trace: #415809 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248 GPU fault trace: #415810 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248 GPU fault trace: #415811 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248 GPU fault trace: #415812 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248 GPU fault trace: #415813 list 0x767b6cf0 dispatch CS 482ad7dc request=8ee6a0dcdc6a239dc52d0769a38a237ec6be4094d189d5834113ae5d3f117b32 bytes=7248 ``` Catching a completely different shader (`CS 482ad7dc` here vs `VS 72817cd3 / PS 9bcac3ef` previously) under the same `TCP` `PERMISSION_FAULTS: 3` (`RW: 0`) signature at ~14.4–14.6 / 15.5–15.7 GiB card usage and zero device-local allocation failures points away from a single-shader bug and toward a shared resource/descriptor/page-table-lifetime cause.
brcly commented 2026-12-01 03:24:49 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-12-01T03:24:49Z.


A possible link, for those chasing the Xid 109 and late GPU losses: at least at the story intro, tonight's runs on a 16 GB card stall when video memory fills and placed textures spill to system memory. The Xid 109 we saw came during that spill. Details and timeline are in #533.

<!-- greyfinch-sync:brcly/TuxBox:comment:7299679045 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7299679045). Originally posted by [brcly](https://github.com/brcly) on 2026-12-01T03:24:49Z. --- A possible link, for those chasing the Xid 109 and late GPU losses: at least at the story intro, tonight's runs on a 16 GB card stall when video memory fills and placed textures spill to system memory. The Xid 109 we saw came during that spill. Details and timeline are in #533.
brcly commented 2026-12-01 15:14:26 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by brcly on 2026-12-01T15:14:26Z.


Update for anyone testing this: main changed today in ways that affect long runs. Read residency, lazy publication and once-per-frame checks are now defaults, descriptor table eviction no longer holds the arena lock for most of a frame, and index map lookups are bounded. The summary is on #533. Please say whether a result is before or after e40d8052. @DrArroway your two RX 6900 XT captures were on 40a69c3f with private views; a repeat on current main would show whether the PERMISSION_FAULTS: 3 reads still come.

<!-- greyfinch-sync:brcly/TuxBox:comment:7315579383 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7315579383). Originally posted by [brcly](https://github.com/brcly) on 2026-12-01T15:14:26Z. --- Update for anyone testing this: main changed today in ways that affect long runs. Read residency, lazy publication and once-per-frame checks are now defaults, descriptor table eviction no longer holds the arena lock for most of a frame, and index map lookups are bounded. The summary is on #533. Please say whether a result is before or after e40d8052. @DrArroway your two RX 6900 XT captures were on 40a69c3f with private views; a repeat on current main would show whether the `PERMISSION_FAULTS: 3` reads still come.
DrArroway commented 2026-12-01 18:26:29 +00:00 (Migrated from github.com)
Author
Contributor

Imported from brcly/TuxBox. Originally posted by DrArroway on 2026-12-01T18:26:29Z.


@brcly Tested current main (post-e40d8052) on AMD Radeon RX 6900 XT (1002:73bf) (Mesa 26.3.1-arch3.5 RADV NAVI21, GE-Proton11-14):

  • Build & flags: main 93324a2b (so TUXBOX_READ_RESIDENCY=1, TUXBOX_CHECK_ONCE_PER_FRAME=1, and 56627188 index clamp active) + PR #630 (e242a160, required to get past the #519 slot 133 768x768x6 R16_TYPELESS E_NOTIMPL assert at startup) + TUXBOX_XMEM_PRIVATE_VIEWS=1 + TUXBOX_TRACE_GPU_FAULT=1 + TUXBOX_LAZY_PUBLICATION=0 (required on RADV here because default lazy publication currently triggers a -1 (-EPERM) AMDGPU CS rejection before the intro, filed in #634).

Result

The TCP (0x8) PERMISSION_FAULTS: 3 (RW: 0) 0x800... GPUVM read fault still reproduces in the world at 413.9s (token=8396, 0 xmem errors, indices past the heaps 0) — and notably this time with zero VRAM spill:

  • memory ledger: card 9463/15532 MiB, adapter system memory 3543/31603 MiB, upload staging 0 MiB, title pages 7131 MiB, process commit 15654 MiB
  • texture ledger: unbacked 28392 (7909 MiB), card 1903 (2788 MiB) (title ranges 2841 MiB, 2675 MiB distinct), system 0 (0 MiB), committed 3591 (3 MiB)
  • read residency 5.1s: kept 144753 views (166729.5 MiB), left out 3086553 (2855709.5 MiB), textures read 2406, indices past the heaps 0

RADV + TUXBOX_TRACE_GPU_FAULT=1 output:

radv/amdgpu: The CS has been cancelled because the context is lost. This context is guilty of a hard recovery.
radv: GPUVM fault detected at address 0x800521292000.
GCVM_L2_PROTECTION_FAULT_STATUS: 0x501031
	 CLIENT_ID: (TCP) 0x8
	 MORE_FAULTS: 1
	 WALKER_ERROR: 0
	 PERMISSION_FAULTS: 3
	 MAPPING_ERROR: 0
	 RW: 0

(Kernel journalctl -k also showed [gfxhub] PERMISSION_FAULTS: 0x3 on 0x800516964000 and 0x800516965000 alongside 0x800521292000, followed by ring gfx_0.0.0 timeout and a MODE1 GPU reset.)

GPU fault trace: fence signaled UINT64_MAX (device lost); 31 commands started and not finished, of 146142 recorded
GPU fault trace: #142971 list 0x76b7e2d0 draw PS 89f6b548 MS 5f6ec27e
...
GPU fault trace: #143001 list 0x76b7e2d0 draw PS 89f6b548 MS 5f6ec27e

(Compiled pixel shader hash: 89f6b548aa89de1d9dcd86516820e216e6a2cc4a66dede702ba18f51472c955a.)

So read residency cleanly kept VRAM usage around ~9.5 / 15.5 GiB with 0 MiB system textures, ruling out VRAM spill here, and the trace caught a third distinct shader pair (MS 5f6ec27e / PS 89f6b548, alongside the earlier VS 72817cd3 / PS 9bcac3ef and CS 482ad7dc captures), which fits @Kayotic1337 and @1093i3511's use-after-destroy findings in #603. Happy to follow up with a RADV_DEBUG=hang capture on this setup if that helps pin down the faulting binding.

<!-- greyfinch-sync:brcly/TuxBox:comment:7320951415 --> Imported from [brcly/TuxBox](https://github.com/brcly/TuxBox/issues/232#issuecomment-7320951415). Originally posted by [DrArroway](https://github.com/DrArroway) on 2026-12-01T18:26:29Z. --- @brcly Tested current `main` (post-`e40d8052`) on **AMD Radeon RX 6900 XT (1002:73bf)** (Mesa `26.3.1-arch3.5` RADV NAVI21, `GE-Proton11-14`): - **Build & flags:** `main` `93324a2b` (so `TUXBOX_READ_RESIDENCY=1`, `TUXBOX_CHECK_ONCE_PER_FRAME=1`, and `56627188` index clamp active) + PR `#630` (`e242a160`, required to get past the `#519` slot 133 `768x768x6 R16_TYPELESS` `E_NOTIMPL` assert at startup) + `TUXBOX_XMEM_PRIVATE_VIEWS=1` + `TUXBOX_TRACE_GPU_FAULT=1` + `TUXBOX_LAZY_PUBLICATION=0` (required on RADV here because default lazy publication currently triggers a `-1` (`-EPERM`) AMDGPU CS rejection before the intro, filed in `#634`). ### Result The `TCP (0x8)` `PERMISSION_FAULTS: 3` (`RW: 0`) `0x800...` GPUVM read fault **still reproduces** in the world at `413.9s` (`token=8396`, `0` `xmem` errors, `indices past the heaps 0`) — and notably this time with **zero VRAM spill**: - `memory ledger: card 9463/15532 MiB, adapter system memory 3543/31603 MiB, upload staging 0 MiB, title pages 7131 MiB, process commit 15654 MiB` - `texture ledger: unbacked 28392 (7909 MiB), card 1903 (2788 MiB) (title ranges 2841 MiB, 2675 MiB distinct), system 0 (0 MiB), committed 3591 (3 MiB)` - `read residency 5.1s: kept 144753 views (166729.5 MiB), left out 3086553 (2855709.5 MiB), textures read 2406, indices past the heaps 0` RADV + `TUXBOX_TRACE_GPU_FAULT=1` output: ```text radv/amdgpu: The CS has been cancelled because the context is lost. This context is guilty of a hard recovery. radv: GPUVM fault detected at address 0x800521292000. GCVM_L2_PROTECTION_FAULT_STATUS: 0x501031 CLIENT_ID: (TCP) 0x8 MORE_FAULTS: 1 WALKER_ERROR: 0 PERMISSION_FAULTS: 3 MAPPING_ERROR: 0 RW: 0 ``` *(Kernel `journalctl -k` also showed `[gfxhub]` `PERMISSION_FAULTS: 0x3` on `0x800516964000` and `0x800516965000` alongside `0x800521292000`, followed by `ring gfx_0.0.0 timeout` and a `MODE1` GPU reset.)* ```text GPU fault trace: fence signaled UINT64_MAX (device lost); 31 commands started and not finished, of 146142 recorded GPU fault trace: #142971 list 0x76b7e2d0 draw PS 89f6b548 MS 5f6ec27e ... GPU fault trace: #143001 list 0x76b7e2d0 draw PS 89f6b548 MS 5f6ec27e ``` (Compiled pixel shader hash: `89f6b548aa89de1d9dcd86516820e216e6a2cc4a66dede702ba18f51472c955a`.) So read residency cleanly kept VRAM usage around ~9.5 / 15.5 GiB with `0 MiB` system textures, ruling out VRAM spill here, and the trace caught a third distinct shader pair (`MS 5f6ec27e / PS 89f6b548`, alongside the earlier `VS 72817cd3 / PS 9bcac3ef` and `CS 482ad7dc` captures), which fits `@Kayotic1337` and `@1093i3511`'s use-after-destroy findings in `#603`. Happy to follow up with a `RADV_DEBUG=hang` capture on this setup if that helps pin down the faulting binding.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
brcly/TuxBox#232
No description provided.