DRED "stopped at command N (op X)" names the last completed command, not the one that hung #22
Labels
No labels
accessibility
already-solved
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
merged
needs-decision
needs-game-run
needs-rebase
not-merged
nvidia
obsolete
question
security
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/avatarmanz--VIctory-7900XTX#22
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@itsonewi on GitHub · 2026-11-25 23:42 UTC · original
The DRED stop location printed in a device-removal line names the last command that completed, not the one that hung, and one report already reads the wrong command from it.
Where
crates/victory-gpu/src/host.rs:5900-5906:pLastBreadcrumbValueis documented as the value of the last breadcrumb that was reached/completed before the device removal, sohistory[done]is the last command that finished. The command the GPU was executing when it died isdone + 1. Whendone == 0the line names command 0, which by construction did complete.Why it matters now
#16 has nine lines of the form
Every one is
0 of Nand every one prints the sameop 46. Ifop 46were the hung command it would have to be the same opcode in nine lists of wildly different length and at index 0 in a 498-command list, which is the signature of "this is command 0, not the interesting one". As reported, the output tells the reader "op 46 is the command" when it means "only the first command of each of these lists completed", and the actual stop location ishistory[1](or, when nothing ran, none of them).Suggestion
stopped after command {done} (op {}); the next is {done+1} (op {}), withdone + 1 < BreadcrumbCountchecked.done == 0 && BreadcrumbCount > 1, sayno command beyond the first completedinstead of naming an opcode, so the line cannot be misread as naming the hung command.breadcrumbs (done/count, list)summary a few lines above is the more useful datum; when the extended output is available it would be worth printing the first list withdone > 0(or saying that there is none), since that is the only list whose stop location is meaningful.Not checked
Source reading only, at
0a43566. I have no DRED-capable machine here and did not reproduce #16; the documentation reading ofpLastBreadcrumbValueabove is the part worth double-checking before changing the message.AI use
AI-assisted review (source reading). No build, no hardware run, no game files.
@avatarmanz on GitHub · 2026-11-26 08:18 UTC · original
Fixed by #39, now in main (
0ce46d5a).