Boot fails at System Init (0x80000003) when host memory fills below 4 GiB — port of upstream low_guards (Marvisak#1009) attached, applies to 829188e9 #2177
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA#2177
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?
@xxhh1232333 on GitHub · 2026-11-29 10:14 UTC · original
tl;dr On hosts where the free space below 4 GiB is fragmented by the time the title asks for its 185 MB 32-bit block, every boot dies at System Init. Upstream Marvisak/VIctory fixed this in Marvisak/VIctory#1009 (
xmem::low_guards); this fork does not include it yet. Attached is the port against829188e9— with it, the same machine that crashes ~20/20 launches boots and plays.Symptom
WARN victory_hle::modules::xmem: XMemVirtualAlloc refused size=193986560 kind=0x42000 flags=0x7 error=... (os error 8) ... VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x19f4f58
Crash context:
Game State: System Init,Frame: 0.Reproduced with v2026.11.28.03 (official) and
829188e9(clean build), both Series X and Series S, with and withoutsettings.xml. A crashing launch never reaches the menus.Diagnosis
ADDRESS_32BIT, soaddress_rangegives 0..4 GiB andVirtualAlloc2must find a contiguous 185 MB below 4 GiB. The host's own memory (image, driver, caches) fills that range first — the same finding as Marvisak/VIctory#790.Fix (attached)
low_guards-port.patch, applies to829188e9withgit apply -p1:crates/victory-hle/src/modules/xmem.rs— adds thelow_guardsmodule (reserve the free space below 4 GiB at startup, 256 MB slack) and wraps allocation: a refused constrained request withhighest < 4 GiBcallslow_guards::retry.apps/victory/src/run.rs—low_guards::install()under--execute, beforeConfig::load, the image read, the device and the caches.It mirrors Marvisak#1009 (merged upstream 2026-11-25). When nothing is refused it does nothing beyond the one-time reservation.
Verified here
XMemVirtualAlloc refused, the world loads and runs. Series S profile, 720p internal: ≈ 30–41 fps presented, frame ≈ 31 ms, CPU-bound (≈ 13 ms preparing incl. ~5 ms buffer copies, GPU ≈ 0.5 ms, ≈ 3 ms copy-back); drops to ~12 fps occasionally. ~44 draws/frame dropped with "no host pipeline".Environment
RX 6800 16 GB (no NVIDIA GPU), Ryzen 7 7800X3D, ~47 GiB RAM, Win10 22H2 19045, Adrenalin 24.30.31.03. Title build 1.0.2.1. Self-build: Rust 1.98.1, MSVC 14.44, Windows SDK 22621.
Separate observations (identical before/after the patch; happy to file as their own issues with logs)
VICTORY_BVH_BUILDER=0).low_guards-port-829188e9.patch
中文版(Chinese translation)
摘要:在宿主 4 GiB 以下地址空间已经碎片化的机器上,标题启动时请求的 185 MB 32 位块必被拒绝,每次启动都在 System Init 阶段断言崩溃。上游 Marvisak/VIctory 已用 Marvisak/VIctory#1009(
xmem::low_guards)修复;本 fork 尚未同步。附件是针对829188e9的移植补丁——同一台机器(约 20/20 次启动崩溃)打上后可以正常启动并游玩。症状
WARN victory_hle::modules::xmem: XMemVirtualAlloc refused size=193986560 kind=0x42000 flags=0x7 error=... (os error 8) ... VIctory: unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f.dll+0x19f4f58
(日志含义:宿主拒绝为游戏预留 185 MB 的"4 GiB 以下"地址块;标题随后在 System Init 阶段触发 0x80000003 断言崩溃。)
崩溃上下文:
Game State: System Init,Frame: 0。复现环境:官方 v2026.11.28.03 与
829188e9干净构建;Series X / Series S 档案;有/无settings.xml。崩溃的启动从未到达菜单。诊断
ADDRESS_32BIT,address_range返回 0..4 GiB,VirtualAlloc2必须在 4 GiB 以下找到连续的 185 MB。宿主自身的早期内存(镜像、驱动、缓存)先占满了该区间——与 Marvisak/VIctory#790 的结论一致。修复(附件)
low_guards-port.patch,可git apply -p1打到829188e9:crates/victory-hle/src/modules/xmem.rs:增加low_guards模块(启动时预留 4 GiB 以下空闲空间,留 256 MB 余量);被拒的约束请求且highest < 4 GiB时调用low_guards::retry。apps/victory/src/run.rs:--execute时在Config::load、镜像读取、设备与缓存之前调用install()。与上游 Marvisak/VIctory#1009(2026-11-25 已合并)一致;无拒绝发生时,除一次性预留外无行为变化。
本机验证
refused,世界加载并可游玩。Series S、720p 内部渲染:呈现约 30–41 fps,帧时间约 31 ms,CPU 瓶颈(约 13 ms 准备,含 ~5 ms 缓冲拷贝、贴图 ~1 ms;GPU 约 0.5 ms;回拷约 3 ms);偶发掉到 ~12 fps;每帧约 44 个绘制因 "no host pipeline" 被丢弃。环境
RX 6800 16 GB(无 NVIDIA 显卡)、Ryzen 7 7800X3D、约 47 GiB 内存、Win10 22H2 19045、Adrenalin 24.30.31.03。游戏版本 1.0.2.1。自编译:Rust 1.98.1、MSVC 14.44、Windows SDK 22621。
其他观察(打补丁前后一致;可另开 issue 附日志)
VICTORY_BVH_BUILDER=0时缺少间接光)。本文由 DeepSeek 生成。 / Drafted with DeepSeek.
@trustno1-coder on GitHub · 2026-11-29 15:58 UTC · original
Update: v2026.11.29.01 has a start-up crash (0x80000003 during System Init, often on non-16:9 or scaled displays) that we have fixed for the next build. The workaround until then is to run
setx VICTORY_NATIVE_SIZE 2560x1440once, open a new terminal and start again. If it still crashes, please attach the log from %LOCALAPPDATA%\VIctory\logs. If you need it playable right now, v2026.11.28.03 is the last build without these regressions.@trustno1-coder on GitHub · 2026-11-29 16:32 UTC · original
Correction to the workaround above:
setxonly reaches programs started after you sign out and back in, so it often never reaches the game. Start it with the size given directly instead:That workaround is only for the crash at System Init on a non-16:9 output size. If your log has a line
XMemVirtualAlloc refused size=6538919936, it is a different crash (Windows refused the game a 6.5 GB memory reservation); closing other programs and setting the page file to "System managed" may help there, and v2026.11.28.03 works meanwhile.@trustno1-coder on GitHub · 2026-11-29 20:36 UTC · original
This issue has the start-up crash where Windows refuses the game's 6.5 GB reservation (
XMemVirtualAlloc refused size=6538919936 ... os error 8, then+0x1e6c284). v2026.11.29.04 is a build with only one fix aimed at exactly this crash.We couldn't reproduce the real crash here, so it may not fix it for you. Please try it and tell us here whether the game now starts, and attach the play log and crashes.log either way. If the play log has a line with
no room at first in the title's window, include that line; it tells us whether this was the cause.@trustno1-coder on GitHub · 2026-11-30 16:39 UTC · original
This should be fixed in v2026.11.30.02. If it still happens on the latest version, please open a new issue with the logs from a run on that version (the play log from
%LOCALAPPDATA%\victory\logsandcrashes.log).