amd-dev 71b8e6e0 on Linux + NVIDIA: #662's crash without #684; with it, no present for 325 s, then Xid 109 #2899

Open
opened 2026-11-26 22:17:45 +00:00 by Royalflamejlh · 3 comments
Royalflamejlh commented 2026-11-26 22:17:45 +00:00 (Migrated from github.com)
Contributor

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-26T22:17:45Z.


On Linux + NVIDIA (RTX 4060 Ti 16 GB), amd-dev 71b8e6e0 crashed 15 s after the world load in XCL's CopyFromSubresource (#662): its copy_from (xg.rs:716) takes six arguments where the title passes seven, as on main and nvidia-dev; #684 fixes it. With #684 merged in, the title presented nothing for 325 s after the world load while it waited on compute pipelines, then presented slowly until the device was lost (Xid 109). 1 run of each tree.

Setup: NVIDIA 615.71.09, Wine 11.21 Staging; vkd3d-proton v3.1-90-g30b0eb9b with two local patches (#175's vtable check, #2404's command-pool release) and dxil-spirv 694cc674 with local patches; XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_ACTIVITY=1 XCL_FRAME_DUMP=10; first-run screens done once. A was pressed at the account screen from 430 s in the first run and from 153 s in the second.

tree run world load after it end
amd-dev 130005-a 474.1 s presents went on 0xc0000005 in memcpy from xg::copy_from at 489.3 s; no device loss
+ #684 e56dbc3f (conflict in xg.rs's tests: both kept) 140003-a 221.5 s no present from 223.2 to 548.2 s, then 25 to the end Xid 109 (CTX SWITCH TIMEOUT), device removed at 741.7 s
  • From 251 to 550 s the title waited on compute pipelines 24 times, 307 s in all, up to 54.5 s each; the two largest, 1.06 and 0.93 MB of DXIL, took the driver 54.4 and 44.7 s and this dxil-spirv alone 0.67 and 0.52 s (all 1,941 programs of 71b8e6e0, without #684, natively), so nearly all of the time is in the driver's compile. At 446.7 s one title thread waited in pso_async::resolve_wait_for ← bind::execute_indirect while one xcl-pso worker built a 1.06 MB compute pipeline (54.4 s) and five were idle.
  • The last frame kept (692.3 s) shows a night sky and city lights along the horizon over a black lower half. By then 10,922 draws and 8,931 dispatches had been skipped.
  • At the loss the flight recorder had four title queues, the sparse read-back and the texture uploads with work pending, none moved for about 5 s; video memory 9,076 of 15,441 MB.

Not tested: Windows; AMD; XCL_PREPARE_ALL=1, or a second run of either tree (launch preparation took only the 704 shaders earlier runs used, and no earlier run had reached the world); a warm driver cache; XCL_GPU_CULPRIT=1.

AI use: Claude Code (Claude Opus 5.5) merged the trees, made and read the runs, and wrote this.

<!-- greyfinch-sync:ivall/xcl:issue:6636002967 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2899). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-26T22:17:45Z. --- On Linux + NVIDIA (RTX 4060 Ti 16 GB), `amd-dev` `71b8e6e0` crashed 15 s after the world load in XCL's `CopyFromSubresource` (#662): its `copy_from` (`xg.rs:716`) takes six arguments where the title passes seven, as on `main` and `nvidia-dev`; #684 fixes it. With #684 merged in, the title presented nothing for 325 s after the world load while it waited on compute pipelines, then presented slowly until the device was lost (Xid 109). 1 run of each tree. **Setup:** NVIDIA 615.71.09, Wine 11.21 Staging; vkd3d-proton `v3.1-90-g30b0eb9b` with two local patches (#175's vtable check, [#2404's command-pool release](https://github.com/xcl-dev/xcl/issues/2404#issuecomment-7189698499)) and dxil-spirv `694cc674` with local patches; `XCL_DIRECT_DXIL=1 XCL_HUGE_PSO_WANTED_CONCURRENCY=6 XCL_ACTIVITY=1 XCL_FRAME_DUMP=10`; first-run screens done once. A was pressed at the account screen from 430 s in the first run and from 153 s in the second. | tree | run | world load | after it | end | |---|---|---|---|---| | `amd-dev` | `130005-a` | 474.1 s | presents went on | `0xc0000005` in `memcpy` from `xg::copy_from` at 489.3 s; no device loss | | + #684 `e56dbc3f` (conflict in `xg.rs`'s tests: both kept) | `140003-a` | 221.5 s | no present from 223.2 to 548.2 s, then 25 to the end | Xid 109 (CTX SWITCH TIMEOUT), device removed at 741.7 s | - From 251 to 550 s the title waited on compute pipelines 24 times, 307 s in all, up to 54.5 s each; the two largest, 1.06 and 0.93 MB of DXIL, took the driver 54.4 and 44.7 s and this dxil-spirv alone 0.67 and 0.52 s (all 1,941 programs of `71b8e6e0`, without #684, natively), so nearly all of the time is in the driver's compile. At 446.7 s one title thread waited in `pso_async::resolve_wait_for` ← `bind::execute_indirect` while one `xcl-pso` worker built a 1.06 MB compute pipeline (54.4 s) and five were idle. - The last frame kept (692.3 s) shows a night sky and city lights along the horizon over a black lower half. By then 10,922 draws and 8,931 dispatches had been skipped. - At the loss the flight recorder had four title queues, the sparse read-back and the texture uploads with work pending, none moved for about 5 s; video memory 9,076 of 15,441 MB. **Not tested:** Windows; AMD; `XCL_PREPARE_ALL=1`, or a second run of either tree (launch preparation took only the 704 shaders earlier runs used, and no earlier run had reached the world); a warm driver cache; `XCL_GPU_CULPRIT=1`. **AI use:** Claude Code (Claude Opus 5.5) merged the trees, made and read the runs, and wrote this.
Royalflamejlh commented 2026-11-27 00:41:22 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-27T00:41:22Z.


On bf7c82ee + #684 (1 run), title queues stopped 521 s after the world load (515 s on 71b8e6e0 + #684), but the device was not lost: one title queue never finished again, to the end at 947.6 s. Your new report fired 1 s after the first queue stopped, at 800.8 s.

Setup: as above, with bf7c82ee merged into the first tree (no conflict); the driver's cache a fresh copy of the one 140003-a started from. Preparation took the 1,720 shaders and 361 graphics pipelines earlier runs used (704 and 51), so the title started 56 s later; A was pressed from 211.5 s (153.4 s), and the world load came 75 s after the title started in both. XCL_RUN_SECONDS=750 (600: 140003-a would have ended at about 747 s).

71b8e6e0 + #684 (140003-a) bf7c82ee + #684 (170020-a)
shader preparation 147 s, 0 of 25 workers failed 203 s, 0 of 25 workers failed
world load 221.5 s 278.4 s
no present 223.2 to 548.2 s 279.7 to 586.5 s
compute pipeline waits, world load to next present (above: from 251 s) 78, 363 s, longest 54.5 s 79, 351 s, longest 55.4 s
after it, to the last present 25 presents, 82,244 draws, 56,733 dispatches in 191 s 116 presents, 407,878 draws, 311,699 dispatches in 215 s
first title queue stopped 736.6 s 799.8 s
end ten waits released on the CPU at 741.6 s; device removed 40 ms later, Xid 109 four waits released at 805.0 s; no loss; no present after 801.2 s; ended by our harness at 947.6 s
DirectStorage requests, failed 114,281, 0 154,532, 0
  • At 800.8 s the report listed four waits at 0x721, none completed (0x720): q4 (type 2) at #1869 and #1871 for q1's signals #8308 and #8312, and q1 (type 0) at #8311 and #8314 for q4's #1870 and #1872. q1 signals before it waits, so this is not a closed cycle: something before #8308 held q1, and the report does not show what. It has the shape of the cross-queue wait on #505.
  • After the release q4 finished; q1 never finished its value 7472, though at 806.0 s no title wait was unmet, and the sparse read-back stayed behind a title queue (>= 0x5c0, done 0x5bf). From 814.8 s a title submit (in its texture re-upload) and a CreatePlacedResourceX did not return: 131 s by the last profile line, at 945.9 s.

Not tested: Windows; AMD; a second run of either tree; XCL_GPU_CULPRIT=1, for what q1 was running.

AI use: Claude Code (Claude Opus 5.5) merged the trees, made and read the runs, and wrote this.

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

<!-- greyfinch-sync:ivall/xcl:comment:7206668961 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2899#issuecomment-7206668961). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-27T00:41:22Z. --- On `bf7c82ee` + #684 (1 run), title queues stopped 521 s after the world load (515 s on `71b8e6e0` + #684), but the device was not lost: one title queue never finished again, to the end at 947.6 s. Your new report fired 1 s after the first queue stopped, at 800.8 s. **Setup:** as above, with `bf7c82ee` merged into the first tree (no conflict); the driver's cache a fresh copy of the one `140003-a` started from. Preparation took the 1,720 shaders and 361 graphics pipelines earlier runs used (704 and 51), so the title started 56 s later; A was pressed from 211.5 s (153.4 s), and the world load came 75 s after the title started in both. `XCL_RUN_SECONDS=750` (600: `140003-a` would have ended at about 747 s). | | `71b8e6e0` + #684 (`140003-a`) | `bf7c82ee` + #684 (`170020-a`) | |---|---|---| | shader preparation | 147 s, 0 of 25 workers failed | 203 s, 0 of 25 workers failed | | world load | 221.5 s | 278.4 s | | no present | 223.2 to 548.2 s | 279.7 to 586.5 s | | compute pipeline waits, world load to next present (above: from 251 s) | 78, 363 s, longest 54.5 s | 79, 351 s, longest 55.4 s | | after it, to the last present | 25 presents, 82,244 draws, 56,733 dispatches in 191 s | 116 presents, 407,878 draws, 311,699 dispatches in 215 s | | first title queue stopped | 736.6 s | 799.8 s | | end | ten waits released on the CPU at 741.6 s; device removed 40 ms later, Xid 109 | four waits released at 805.0 s; no loss; no present after 801.2 s; ended by our harness at 947.6 s | | DirectStorage requests, failed | 114,281, 0 | 154,532, 0 | - At 800.8 s the report listed four waits at `0x721`, none completed (`0x720`): q4 (type 2) at #1869 and #1871 for q1's signals #8308 and #8312, and q1 (type 0) at #8311 and #8314 for q4's #1870 and #1872. q1 signals before it waits, so this is not a closed cycle: something before #8308 held q1, and the report does not show what. It has the shape of [the cross-queue wait on #505](https://github.com/xcl-dev/xcl/issues/505#issuecomment-7126025645). - After the release q4 finished; q1 never finished its value 7472, though at 806.0 s no title wait was unmet, and the sparse read-back stayed behind a title queue (`>= 0x5c0`, done `0x5bf`). From 814.8 s a title submit (in its texture re-upload) and a `CreatePlacedResourceX` did not return: 131 s by the last profile line, at 945.9 s. **Not tested:** Windows; AMD; a second run of either tree; `XCL_GPU_CULPRIT=1`, for what q1 was running. **AI use:** Claude Code (Claude Opus 5.5) merged the trees, made and read the runs, and wrote this. Posted without review by a person: the account owner was away and reads replies later.
Royalflamejlh commented 2026-11-27 02:46:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-27T02:46:02Z.


With XCL_GPU_CULPRIT=1 on the same tree (1 run), the device was lost at 352.7 s (Xid 109). The markers found no dispatch in flight at any of their four checks, 343.8 s to the loss: GPU culprit: 0 of 2449 lists have dispatches started and not done.

Setup: as in our comment above (bf7c82ee + #684), plus XCL_GPU_CULPRIT=1. The driver's cache was a copy of the one 170020-a left, so the title kept presenting after the world load. The markers change timing, so this run is not compared with that one.

  • The world load came at 219.1 s. At 340.8 s, with the title's last submit, every queue with work stopped; five moved again by 342.9 s, and from 343.1 s nothing finished.
  • At 341.8 s the direct queue (q1, 0x1a21efb0) had not reached its first pending signal (#9910). It did at 342.7 s, then stopped for good inside its next submit, 92 lists, after XCL's sparse wait (met) and before its next title wait (#9913, met by 342.9 s). No dispatch was open in them; the markers are written around dispatches and two-pass mesh draws only, not other draws or copies.
  • Your loss report puts compute queues 0x1a224300 and 0x1a221290 first, tied: both last moved at 340.8 s, when every queue stopped. Both waited on later signals of the direct queue (#9922; #9915, #9920), and after XCL released those waits at 345.8 s neither finished another value.

Not tested: Windows; AMD; what in those 92 lists the direct queue ran; whether the markers can show an open dispatch under vkd3d-proton at all (no run of ours has shown one); a run without the markers on this cache.

AI use: Claude Code (Claude Opus 5.5) made and read the run, and wrote this.

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

<!-- greyfinch-sync:ivall/xcl:comment:7208412998 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2899#issuecomment-7208412998). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-27T02:46:02Z. --- With `XCL_GPU_CULPRIT=1` on the same tree (1 run), the device was lost at 352.7 s (Xid 109). The markers found no dispatch in flight at any of their four checks, 343.8 s to the loss: `GPU culprit: 0 of 2449 lists have dispatches started and not done`. **Setup:** as in our comment above (`bf7c82ee` + #684), plus `XCL_GPU_CULPRIT=1`. The driver's cache was a copy of the one `170020-a` left, so the title kept presenting after the world load. The markers change timing, so this run is not compared with that one. - The world load came at 219.1 s. At 340.8 s, with the title's last submit, every queue with work stopped; five moved again by 342.9 s, and from 343.1 s nothing finished. - At 341.8 s the direct queue (q1, `0x1a21efb0`) had not reached its first pending signal (#9910). It did at 342.7 s, then stopped for good inside its next submit, 92 lists, after XCL's sparse wait (met) and before its next title wait (#9913, met by 342.9 s). No dispatch was open in them; the markers are written around dispatches and two-pass mesh draws only, not other draws or copies. - Your loss report puts compute queues `0x1a224300` and `0x1a221290` first, tied: both last moved at 340.8 s, when every queue stopped. Both waited on later signals of the direct queue (#9922; #9915, #9920), and after XCL released those waits at 345.8 s neither finished another value. **Not tested:** Windows; AMD; what in those 92 lists the direct queue ran; whether the markers can show an open dispatch under vkd3d-proton at all (no run of ours has shown one); a run without the markers on this cache. **AI use:** Claude Code (Claude Opus 5.5) made and read the run, and wrote this. Posted without review by a person: the account owner was away and reads replies later.
Royalflamejlh commented 2026-11-27 15:24:55 +00:00 (Migrated from github.com)
Author
Contributor

Imported from ivall/xcl. Originally posted by Royalflamejlh on 2026-11-27T15:24:55Z.


With XCL_GPU_CULPRIT=1 on amd-dev 494f08b2 + #684 (1 run), the device was lost at 594.4 s (Xid 109), but 0c4fbf90's list of the newest submits did not print at the loss. It printed at the first two reports, at 265.4 s and 467.5 s, which come after 6 s without a frame (host.rs:86), and culprit.rs:305 allows two per process, whichever reports come first.

Setup: as in this issue's body, on 494f08b2 (7c795f5e changes only the licence); each run started from a fresh copy of the same NVIDIA cache; A was pressed from 211.5 s, 174.4 s and 195.9 s, in table order.

amd-dev + #684 world load longest stretch without a present after it last present end
bf7c82ee 278.4 s 279.7–586.5 s 801.2 s no loss; ended by our harness at 947.6 s
494f08b2 217.9 s 237.6–437.5 s 775.9 s Xid 109, device removed at 790.1 s
494f08b2, XCL_GPU_CULPRIT=1 257.4 s 259.3–459.4 s 591.0 s Xid 109, device removed at 594.4 s
  • The comment above that line says "the first report and a device removal". A change that does that (not run here):
    // culprit.rs
     pub fn on_watchdog_release() {
         …
    -    report();
    +    report(false);
     }
     pub fn on_device_removed() {
         …
    -        report();
    +        report(true);
     }
    -fn report() {
    +fn report(removed: bool) {
         …
    -    if SUBMIT_REPORTS.fetch_add(1, Ordering::Relaxed) >= 2 {
    +    if SUBMIT_REPORTS.fetch_add(1, Ordering::Relaxed) >= 1 && !removed {
    
  • As in our comment above, the markers found no dispatch in flight at the loss: GPU culprit: 0 of 1524 lists have dispatches started and not done, at 592.7 s and 594.4 s.
  • Without the markers, the stop at 775.9 s had the shape of bf7c82ee's at 801 s: the title's value waits at 0x7c8 unmet, with 0x7c8 submitted and 0x7c7 completed, ten of them released by XCL after 5 s at 779.8 s, and the sparse read-back behind a title queue. This time the kernel logged Xid 109 at 780.0 s, and D3D12 reported the device removed at 790.1 s.
  • The stretch without a present was about 200 s on 494f08b2 in both runs, against 307 s on bf7c82ee. Launch preparation also took more of the shaders earlier runs used (2,074 and 2,427, against 1,720), and one of the two runs had the markers, so with 2 runs against 1 that does not measure the commits since bf7c82ee.

Not tested: Windows; AMD; a second run of bf7c82ee, or of 494f08b2 without the markers; the change above.

AI use: Claude Code (Claude Opus 5.5) made and read the runs, read culprit.rs, and wrote this.

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

<!-- greyfinch-sync:ivall/xcl:comment:7222027745 --> Imported from [ivall/xcl](https://github.com/xcl-dev/xcl/issues/2899#issuecomment-7222027745). Originally posted by [Royalflamejlh](https://github.com/Royalflamejlh) on 2026-11-27T15:24:55Z. --- With `XCL_GPU_CULPRIT=1` on `amd-dev` `494f08b2` + #684 (1 run), the device was lost at 594.4 s (Xid 109), but `0c4fbf90`'s list of the newest submits did not print at the loss. It printed at the first two reports, at 265.4 s and 467.5 s, which come after 6 s without a frame (`host.rs:86`), and `culprit.rs:305` allows two per process, whichever reports come first. **Setup:** as in this issue's body, on `494f08b2` (`7c795f5e` changes only the licence); each run started from a fresh copy of the same NVIDIA cache; A was pressed from 211.5 s, 174.4 s and 195.9 s, in table order. | `amd-dev` + #684 | world load | longest stretch without a present after it | last present | end | |---|---|---|---|---| | `bf7c82ee` | 278.4 s | 279.7–586.5 s | 801.2 s | no loss; ended by our harness at 947.6 s | | `494f08b2` | 217.9 s | 237.6–437.5 s | 775.9 s | Xid 109, device removed at 790.1 s | | `494f08b2`, `XCL_GPU_CULPRIT=1` | 257.4 s | 259.3–459.4 s | 591.0 s | Xid 109, device removed at 594.4 s | - The comment above that line says "the first report and a device removal". A change that does that (not run here): ```diff // culprit.rs pub fn on_watchdog_release() { … - report(); + report(false); } pub fn on_device_removed() { … - report(); + report(true); } -fn report() { +fn report(removed: bool) { … - if SUBMIT_REPORTS.fetch_add(1, Ordering::Relaxed) >= 2 { + if SUBMIT_REPORTS.fetch_add(1, Ordering::Relaxed) >= 1 && !removed { ``` - As in our comment above, the markers found no dispatch in flight at the loss: `GPU culprit: 0 of 1524 lists have dispatches started and not done`, at 592.7 s and 594.4 s. - Without the markers, the stop at 775.9 s had the shape of `bf7c82ee`'s at 801 s: the title's value waits at `0x7c8` unmet, with `0x7c8` submitted and `0x7c7` completed, ten of them released by XCL after 5 s at 779.8 s, and the sparse read-back behind a title queue. This time the kernel logged Xid 109 at 780.0 s, and D3D12 reported the device removed at 790.1 s. - The stretch without a present was about 200 s on `494f08b2` in both runs, against 307 s on `bf7c82ee`. Launch preparation also took more of the shaders earlier runs used (2,074 and 2,427, against 1,720), and one of the two runs had the markers, so with 2 runs against 1 that does not measure the commits since `bf7c82ee`. **Not tested:** Windows; AMD; a second run of `bf7c82ee`, or of `494f08b2` without the markers; the change above. **AI use:** Claude Code (Claude Opus 5.5) made and read the runs, read `culprit.rs`, and wrote this. Posted without review by a person: the account owner was away and reads replies later.
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
xcl-dev/xcl#2899
No description provided.