Series S boot hang: VirtualAlloc2 never returns for the 3977 MB reservation when no gap below 128 GiB fits it (TITLE_TOP_BITS = 37) #3234
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?
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by jhon17parizotto-byte on 2026-11-29T20:54:07Z.
Follow-up to #3023. On this machine, turning the placement write watch off did not stop the hang; raising the 128 GiB limit added in
c71e16e2did.Setup
victory run <exe> --console series-s --execute, DLSS Performance at 1080p, frame generation offv2026.11.28.03session, Windows rebooted before each testWhat was tested
All builds are local builds of
v2026.11.29.03with an XMA decoder thread priority change, mimalloc as the process allocator andwatch_placement = falseinxmem.rs.VirtualAlloc2One run each. I did not test the 40-bit limit without
watch_placement = false, or the official.29.03binary.Where it hangs (run 2)
The call:
hang probe: before VirtualAlloc2is logged for it andafter VirtualAlloc2never is. About 90 s later the calling thread had 91.6 s of kernel time and 11.2 s of user time and was still running. After the test script tried to end the process,taskliststopped responding and Windows had to be restarted.Address space just before that call (run 3)
Free gaps of 1 GiB or more, from
VirtualQuery:Below
0x2000000000(128 GiB) the largest gap is 2047 MB; the third gap starts only 64 KiB under that line. A 3977 MB reservation cannot fit under the limit. The two 16 GiB reservations made earlier were placed at0x1700000000and0x1b00000000.With the 40-bit limit the call returns at once with
0x1fffff0000. In a.28.03session this pool was logged at0x2000000000.Expected and observed
VirtualAlloc2fails (os error 8) and the title gets a refusal.Relation to
v2026.11.29.04.29.04gives its spare back and retries when the reservation is refused. On this machine there is no refusal to react to, so I expect the retry not to run. Whether reserving the spare early changes the layout enough to avoid the hang is not tested; I have not run.29.04.It may be the same condition as the
os error 8reports, showing up differently on this Windows build. That is a guess.Suggestion
Check for a large enough free gap before calling
VirtualAlloc2with the 37-bit limit, and widen the limit only when none exists. A retry after a failed call would not help where the call does not return.The comment on
TITLE_TOP_BITSsays memory above 128 GiB reads as 0 for shaders that reach it by address (#218). I do not know whether shaders read this pool that way.Result with the 40-bit limit (run 3)
The game reached the world, ran for the whole 10 minute test and closed normally. 35 log windows between 3300 and 3800 draws after the first 330 s had a median of 91.2 ms per frame.
The picture has defects in both screenshots taken in the boat scene: a large part of the water near the camera is flat black, there is no wake, and the boat and the characters are very dark. I have not established the cause. It could be the memory above 128 GiB (#218), another change in
.29.x, or one of my settings (VICTORY_WATER_LIGHT=0,VICTORY_WAVE_FOLDED=0,VICTORY_RT_SKIP_DEAD=1). I have no.29.03run with the 37-bit limit to compare against, so please do not read run 3 as showing that raising the limit is safe.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by github-actions[bot] on 2026-11-29T20:54:16Z.
Please attach both logs from the run that went wrong. Without them we can only guess. Paste
%LOCALAPPDATA%into the address bar of File Explorer to get there.%LOCALAPPDATA%\victory\logs\: the newestvictory-nvidia-play-<date>-<time>-<number>.log(fromvictory.exe) orvictory-nvidia-<date>-<time>.log(from the script launcher). The window shows its path at the start, on the lineLog: ....%LOCALAPPDATA%\VIctory\data\7952987A\crashes.log, and, if there is one from that run, the newestvictory-<date>-<time>-<number>.crash.login%LOCALAPPDATA%\VIctory\data\7952987A\temp\.Also say which GPU, Windows version (10 or 11)
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by RawTech on 2026-11-29T21:23:16Z.
Edited 30 Nov: corrected several details (local builds, the BIOS, memory speed and PCIe width at the time of the hangs, how the PC was restarted, the caches) and added a v2026.11.30.03 result.
Same hang here on local builds of the tags, and v2026.11.29.03 still hangs. Adding where v2026.11.28.03 places the same reservation on this PC, in case it helps.
Setup
scripts\play-foxhound.ps1, Series S profile, DLSS Performance, frame generation off for the hanging runsResults
All three hangs stop at the same point, a few milliseconds after the early pipeline list (29.03 shown; the 29.01 runs had
pipelines=3564):The 3977 MB line and
pipeline workersnever appear.On the first 29.01 hang, one thread of the process was busy in kernel mode, and
taskkill /F /Tcould not end it. All three times the PC had to be turned off with the power button (Kernel-Power 41,BugcheckCode=0, with a power button timestamp). There was no new crash dump, nocrashes.log, and nonvlddmkmor WHEA event.v2026.11.30.03
The search of our own from #3767 was on (
on=true), and the pool was placed below 128 GiB about 15 ms after the early pipeline list:Same Series S profile and DLSS Performance, with FSR 3 frame generation on, on BIOS 1.D0 with the memory at 5600. That is one start, with a different BIOS, memory speed and frame generation setting from the hanging runs, so it does not prove on its own that #3767 is what fixed it here.
Where 28.03 puts the 3977 MB pool here
From every Series S log on this PC that got past that point (
title memory asked for as protection 0x2004, kind 0x42000, flags 0x23: 1 times, 3977 MB, last ...):0x20000000000x20f8900000, above 128 GiB0xe000000000x5b60000000x1f000000000x1ff8900000, just under0x1b6200000So on most 28.03 starts the pool lands across the 128 GiB line that
TITLE_TOP_BITS = 37(c71e16e2) now forbids. That fits your finding that the 37-bit window has no gap large enough left, and thatVirtualAlloc2does not return instead of failing on build 26300.I have not tested the 40-bit change or the
watch_placementchange from #3023 on this PC.Logs below, with my Windows user name and the game's folder name replaced by
<user>,<game>and<games>. The two 29.01 hang logs end the same way; I can post them if useful.v2026.11.29.03 hang, whole play log (124 lines)
v2026.11.28.03 working start, same point
Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by jhon17parizotto-byte on 2026-11-29T21:35:06Z.
Thanks @RawTech, your placement table matches what I see here: on this PC
v2026.11.28.03also puts the 3977 MB pool at0x2000000000. We are both on Windows 11 build 26300, so the call that does not return may be specific to that build. I have not confirmed that.Follow-up: picture defect on the 40-bit build is not caused by the profile
With the address limit raised to 40 bits, the build boots, but the picture is wrong. The water near the camera is black, there is no wake, and the boat and the characters are dark. To rule out my profile, I ran the same profile, seed save and shader cache on my
v2026.11.28.03build.v2026.11.29.03local, 40-bit limit0x1fffff0000+0xf8900000v2026.11.28.03local0x2000000000+0xf8900000Setup for both: RTX 3060,
--console series-s, DLSS Performance, frame generation off, 600 s, screenshots at 290, 430 and 580 s.In the lower 40% of the screen, 32-45% of the pixels are near black (luminance under 20) in run A and 8-16% in run B, at the same three times. The scenes are close but not identical, because the mission script drifts. Each run was done once.
Both pools end above 128 GiB, and run B looks correct. So memory above 128 GiB does not explain the defect by itself. It more likely comes from another change between
.28.03and.29.03, or from the 40-bit limit together with one. I have not bisected it.The local builds add an XMA decoder thread priority change and mimalloc as the process allocator.
.28.03also has the DLSS range change, which is now in main. None of these touchesxmem.rsor the renderer's water path.I can attach the full play logs of both runs and the screenshots if useful. Neither run wrote a
crashes.logentry.Imported from trustno1-coder/VIctory-NVIDIA. Originally posted by rlenci99 on 2026-11-30T04:36:24Z.
On Windows 11 build 26200 too, an address-constrained
VirtualAlloc2can stay in the kernel: a 66-line C program with no game in it had six such calls still running 78 to 99 minutes after they started. On the same PC the game's own refused searches (Series X profile, widest gap smaller than the request) all returnedos error 8, so this issue's hang itself was not seen here. The Series S profile was not run.Setup: RTX 5090 (621.14), Ryzen 9 9950X3D2, 47 GB RAM, Windows 11 build 26200.9168.
The program (
vatest.c, below) reserves a range in empty space at 2 TiB, then makes one call shaped like the title's request:VirtualAlloc2with baseNULL,MEM_RESERVE | MEM_RESERVE_PLACEHOLDER,PAGE_NOACCESSandMEM_ADDRESS_REQUIREMENTSlimited to that range.Measured
os error 8and the retry was placed. For example 3,678 MB asked withlargest_free_mb=2159 free_runs=56(this issue: 3,977 MB, widest gap 2,047 MB).Not known: why the probe's ranges hang and the game's did not. The probe's 1 and 4 GiB ranges had no free run (one variant a single 1 MiB one); the game's window had 32 to 139. One PC.
Suggestion: the free-gap check proposed above only helps if it runs before every such call (
watched_reservation,upload.rsallocate_in_window), not onlyXMemVirtualAlloc. Draft PR #3293 touches theupload.rssearch.Do not run the 1 GiB cases on a PC you need: the processes stay until a restart.
vatest.c (66 lines)
AI-assisted (Claude Code).