main (683ad7a) on Linux/NVIDIA: the title freezes at world entry with threads in descriptor mirroring (sync_heaps / record), GPU and CPU idle #1921
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#1921
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?
@Impre-visible on GitHub · 2026-11-25 01:00 UTC · original
Summary
On today's
main(683ad7a) the title freezes for good when it enters the world on my Linux/NVIDIA machine: the log goes silent, the GPU is idle, no title thread uses CPU, and no driver error is logged. 3 runs out of 3 that reached the world. With the title's watchdog active this would show as the usual stop about 30 s later (#1323's report), so it may be hiding behind that symptom elsewhere.Setup
d3dcompiler_47in the prefix, Series X mode, diagnostics build.main683ad7a+ the two-line handle key of the closed #226 (without it the NVIDIA shader compiler crashes at world entry here) + #1583 + #1722 + #1769 + #1523 + #454, run withVICTORY_NO_WATCHDOG=1so the freeze can be observed. I have not runmainwithout these.Measured
Run 3, sampled every ~45 s for 5 minutes while silent: GPU 0 %, video memory constant at 5,700 MiB, and per-thread CPU time from
/proc: the busiest title thread uses 2 to 3 % of one core, everything else 0 to 2 %. NoNVRM: Xidin the kernel log. Before the freeze: 715 compute pipelines made, 138 refused (wave64, expected on this card), 15 compute and 3 pixel programs not translated.A
VICTORY_STACKSdump taken at the moment a run went silent (the run before; symbolised VIctory frames only, title frames omitted):queue::present→Host::present(host.rs:2141) →Host::execute(host.rs:599) →descriptor::sync_heaps(descriptor.rs:185) →HostHeap::mirror(descriptor/host.rs:659, theself.viewed.set(...)call), innermost frame not in a system module;descriptor::create_placed_srv(descriptor.rs:511) →descriptor::record(descriptor.rs:421) →descriptor::mirror(descriptor.rs:129), waiting inMutex::lock_contended, i.e. forSHADER_HEAPS, whichsync_heapsholds for its whole loop;make::work.The stack dumper itself printed nothing more after that dump.
What I can and cannot say
SHADER_HEAPSbetweensync_heaps(called underHost::execute) and a title thread recording a view at the same time, but I have only one dump and I did not find the second lock of the cycle by reading the code, so that is a lead, not a diagnosis. I do not know what the first thread is waiting for insideviewed.set.count=1245184, host limit 1,000,000 here) or Wine.mainffe310eplus open PRs, nosync_heaps), the world ran for up to 20 minutes on this machine.No game data attached. I can run a patched build or more dumps if that helps.
🤖 Generated with Claude Code
@BastienRodz on GitHub · 2026-11-25 01:05 UTC · original
A static read of current
main(42363ab) for the lock cycle behind your dump.B and C are explained:
recorddropsVIEWSbefore it waits forSHADER_HEAPS(descriptor.rs:129), and they hold nothing in A's chain. A holdssubmitted, thenSHADER_HEAPS, then the heap'smade, when it callsViewed::set. I found no path that takesViewed.innerand then waits forSHADER_HEAPS:uploadsruns aftersync_heaps, under the samesubmittedmutex;forgetandrangesdon't take that path either.So the descriptor registry doesn't close a cycle by itself.
The strongest candidate is the write-watch self-deadlock in #1849:
runtime_memorystill acceptsMEM_FREE(watch.rs:216), so a null loose shadow can guard a window holding Wine's heap pages;GUARDS(Tracked::take,writing) then faults on an allocator write;GUARDSagain (watch.rs:539);set, through the allocator or a buffer lookup inseen, and B and C behind A.Your dump lacks A's innermost frame, so this is a lead and not proof. Two things would settle it:
GUARDS.Also, plain
683ad7ahas nosync_heaps(it came with86a5ed6), so your composite build's own PDB is what will symbolize A's frame.@DesertGamer on GitHub · 2026-11-25 02:27 UTC · original
VIctory V2: community PRs, merged and tested
Open PRs sitting in the queue? V2 pulls them into one build, screens each one (binaries, build scripts, hooks, new deps) and runs tests after every batch.
Where it stands today: launches, runs the menu at 30 fps, plays the intro video, reaches the start screen and loads the world (~50 s). Entering the world is the current blocker: rendering fails with a GPU "device removed" error (tracked in issue #1).
⚠️ Entering the world on a real GPU can hang it and make Windows reset the driver. Try it at your own risk.
Not playable yet, but every batch of merged fixes moves it closer. If you have a PR that's stuck, or a GPU to test on, I'd love your help:
https://DesertGamer/VIctory-V2
Unofficial community fork of Marvisak/VIctory, GPL-3.0.
@Impre-visible on GitHub · 2026-11-25 06:50 UTC · original
@BastienRodz your lead was right: with #1849 merged the freeze is gone here.
Same machine and setup as above (Linux, Wine + vkd3d-proton, GTX 1660), same tree plus #1849,
VICTORY_NO_WATCHDOG=1:Both runs with #1849 ran their full 15 minutes in the world with no silence, no
Xidin the kernel log and 4,000 to 4,500 draws per frame at about 1.3 s per frame once the caches were warm. The final image now shows the lit scene of the first playable moment on this card (overexposed sky, lower half dark), which this tree never reached before.Correction to my report: the tree was
mainas fetched when I built it (after86a5ed6), not683ad7a; you were right that plain683ad7ahas nosync_heaps.Still on this card with that tree: 153 of 855 compute pipelines refused (wave64, no emulation in it), about 150
no dynamic slots for its tablesdrops per run (#1548 is not in it).I will keep counting to five runs and close this if it holds.
@Marvisak on GitHub · 2026-11-25 12:53 UTC · original · edited 2026-11-25 15:47 UTC
Automated triage for the maintainers.
Run report: Linux, GTX 1660 6 GB, NVIDIA 620.73.04, GE-Proton11-6 + vkd3d-proton, a
maincheckout after86a5ed6plus several open PRs. Without #1849, 3 of 3 runs froze at world entry. With #1849, 5 of 5 ran 15 minutes in the world.mainnow fixes the same cause in a different way, in280b150("GPU: change tracking guards only the runtime's memory, region by region").watch::trackused to decide from a range's first page whether the whole range was the runtime's memory. A 4 MiB loose-shadow window that started in free memory was then guarded whole, including the process heap's committed pages after it, and a thread holding the heap lock faulted into the guard handler. Nowruntime_pagesincrates/victory-gpu/src/watch.rsdecides region by region: plain committed private memory (the heap) is left out and never guarded, and a page touching it is copied whole instead. The commit message describes the same lock cycle (heap lock against the guard lock), found through hung tests. #1849'sMEM_FREEcheck is no longer needed for this.Proposed close as fixed in
main(280b150). A run of currentmain(da82e44) without #1849 on this machine would confirm it, and a freeze there would keep this open. This issue will be closed in 48 hours unless the reporter replies or a maintainer removes thetriage: proposed closelabel.Generated by Claude Code
@Impre-visible on GitHub · 2026-11-25 14:43 UTC · original
Five-run count done and posted on #1849: with that PR, 5 of 5 runs passed world entry and ran their 15 minutes (3 of 3 froze without it), no
Xid. I will close this issue once #1849 is merged, or now if you prefer to track it there.🤖 Generated with Claude Code