GPU diagnostics: report slots only inside recorded heap ranges #1584

Closed
avt0m4t48 wants to merge 1 commit from upstream-pr/1585 into main
avt0m4t48 commented 2026-11-24 19:28:45 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by avt0m4t48 on 2026-11-24T19:28:45Z.


References #772.

The DRED report printed a descriptor slot for every address at or above a heap start, including addresses well past the range. That made the arithmetic slot number look like descriptor evidence in a world-load fault report.

Show a slot only inside the recorded half-open handle range. For other addresses, show the distance from the range or identify the end boundary. Recorded ranges can outlive their heaps and are diagnostic context.

The synthetic Rust regression covers below, inside, the exclusive end, far above, and overlapping recorded ranges. It failed against the old formatter and passed against the changed formatter in a standalone Rust 1.98.1 run on Linux. The Windows MSVC target (including tests and diagnostics) passed cargo check --locked --tests --target x86_64-pc-windows-msvc -p victory-gpu --features diagnostics,blake3/pure from Linux. The Windows tests and the title were not executed.

AI-assisted.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6589715464 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1585). Originally posted by [avt0m4t48](https://github.com/avt0m4t48) on 2026-11-24T19:28:45Z. --- References #772. The DRED report printed a descriptor slot for every address at or above a heap start, including addresses well past the range. That made the arithmetic slot number look like descriptor evidence in a world-load fault report. Show a slot only inside the recorded half-open handle range. For other addresses, show the distance from the range or identify the end boundary. Recorded ranges can outlive their heaps and are diagnostic context. The synthetic Rust regression covers below, inside, the exclusive end, far above, and overlapping recorded ranges. It failed against the old formatter and passed against the changed formatter in a standalone Rust 1.98.1 run on Linux. The Windows MSVC target (including tests and diagnostics) passed `cargo check --locked --tests --target x86_64-pc-windows-msvc -p victory-gpu --features diagnostics,blake3/pure` from Linux. The Windows tests and the title were not executed. AI-assisted.
upstream-sync closed this pull request 2026-11-24 23:04:45 +00:00
acetonahard-code commented 2026-11-24 23:05:54 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by acetonahard-code on 2026-11-24T22:25:13Z.


Note: #1236 changes the same near_heaps slot report in the other direction. It removes the slot estimates from fault addresses entirely. The two conflict in descriptor/host.rs, so it's worth deciding between them.

Tested on Windows 11, RTX 4070 SUPER (driver 621.14), with the repo toolchain, merged into current main (70564ae):

cargo test -p victory-gpu passed failed ignored
main 76 2 1
main + this PR 77 2 1
main, --all-features 79 2 -
main + this PR, --all-features 80 2 -
  • The new test passes.
  • No GPU test skipped for lack of a device.
  • cargo clippy --all-targets -- -D warnings, with and without --all-features: clean.
  • Two victory-gpu tests fail on current main on this NVIDIA card: dynamic_slots_are_held_until_released, lists_share_a_table_and_copies_keep_their_views. That's the 1,000,000-view heap cap, see #1744. They fail the same way with this PR, and no other test does.

I didn't test with game data.


Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7146206448 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/1585#issuecomment-7146206448). Originally posted by [acetonahard-code](https://github.com/acetonahard-code) on 2026-11-24T22:25:13Z. --- Note: #1236 changes the same `near_heaps` slot report in the other direction. It removes the slot estimates from fault addresses entirely. The two conflict in `descriptor/host.rs`, so it's worth deciding between them. Tested on Windows 11, RTX 4070 SUPER (driver 621.14), with the repo toolchain, merged into current `main` (70564ae): | `cargo test -p victory-gpu` | passed | failed | ignored | |---|---|---|---| | `main` | 76 | 2 | 1 | | `main` + this PR | 77 | 2 | 1 | | `main`, `--all-features` | 79 | 2 | - | | `main` + this PR, `--all-features` | 80 | 2 | - | - The new test passes. - No GPU test skipped for lack of a device. - `cargo clippy --all-targets -- -D warnings`, with and without `--all-features`: clean. - Two `victory-gpu` tests fail on current `main` on this NVIDIA card: `dynamic_slots_are_held_until_released`, `lists_share_a_table_and_copies_keep_their_views`. That's the 1,000,000-view heap cap, see #1744. They fail the same way with this PR, and no other test does. I didn't test with game data. --- <sub>Tested locally with an AI-assisted script (Claude Code); I checked the results before posting.</sub>

Pull request closed

Sign in to join this conversation.
No reviewers
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
Marvisak/VIctory!1584
No description provided.