Fix the start-up crash on ultrawide monitors: size the UI pool for the 16:9 UI targets the title makes #2766
No reviewers
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!2766
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2766"
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?
@mehmetraif on GitHub · 2026-11-29 17:03 UTC · original
mehmetraif:main→main· +51 −9 · 1 files · 4 commits · openFix the start-up crash on ultrawide monitors: size the UI pool for the 16:9 UI targets the title makes
Summary
Since v2026.11.29.01 the output size follows the main monitor's shape (
16576c03,8e81b84c). On a 21:9 monitor that gives a 3440x1440 output, andnative_1440p::preparesizes the UI pool for two 3440x1440 UI targets. The title still makes two 2560x1440 targets (a 16:9 UI at the output's height). That leaves0xC40000bytes of the pool unused. The title's own check allows at most0x1FFFFFleft over (0x247AF25), so it hitsint3at0x247AF2Din System Init, before frame 0. The game closes about 2 s after launch, every time.This PR sizes the pool from the UI targets the title actually makes (
ui_target_size): on an output wider than 16:9 they are 16:9 at the output's height. 16:9 outputs get the same pool as before (0x5E00000).Symptom
crashes.log: 6 crashes, all at the same place:Game State: System Init,Frame: 0.cache\images\native-3440x1440-upscaler-performance-sdr\. A working run on the previous release usesnative-1440p-upscaler-performance-sdr\and logsdisplay mode reported to the title width=2560 height=1440.Environment
VICTORY_MENU_RES=1080to1440Root cause
apps/victory/src/native_1440p.rsinprepare(), at v2026.11.29.01:width()/height()is the output size. Since16576c03that is 3440x1440 on a 21:9 main monitor. The UI targets the title makes do not follow it.Evidence
The crash site is the left-over check. The UI setup computes what is left of the pool into
rax, then runscmp rax, 0x1FFFFFat0x247AF25, ajbe, andint3at0x247AF2D. This is the check the comment inprepare()already describes.raxat the crash is0xC40000in all 6 crashes.The patched pool is the 3440-wide one. In the cached image
native-3440x1440-upscaler-performance-sdr\victory-image-b99f876b74d4a77f.dll, the UI pool'smov ecxat0x247AD4Aholds0x06A00000.The numbers match exactly. 64 KiB-tiled RGBA8 surfaces are made of 128x128 tiles:
0x1FE00000xF000000x14400000x1FE0000+ 2 x0x1440000=0x6840000, rounded up to 2 MiB =0x6A00000(matches 2).0x1FE0000+ 2 x0xF00000=0x5DC0000.0x6A00000-0x5DC0000=0xC40000. This is exactlyraxat the crash (matches 1), and more than0x1FFFFF, so the check fails.So the title makes 16:9 UI targets at the output's height (2560x1440 for 3440x1440), and the pool must be sized for those.
The fix
apps/victory/src/native_1440p.rs:ui_target_size((w, h)): the size of the title's UI targets. On an output wider than 16:9 it is(h * 16 / 9, h); otherwise(w, h)as before.ui_pool_bytes(output): two legacy surfaces plus two UI targets ofui_target_size(output), rounded up to 2 MiB.prepare()uses it.the_ui_pool_fits_the_ui_targets_the_title_makes. It pins the 16:9 pool (0x5E00000, unchanged) and the 21:9 numbers above (0x6A00000asserted,0xC40000left over). It also checks that the new 21:9 pool leaves no more than0x1FFFFFover the title's use.16:9 outputs are unchanged:
ui_target_size((2560, 1440)) == (2560, 1440)and the pool stays0x5E00000.Testing
cargo test -p victory -- native_1440p: 6 passed, 0 failed. This includes the new test and the existingthe_output_follows_the_monitor_shape.cargo build --release --locked -p victorybuilds, on toolchain 1.98.1 fromrust-toolchain.toml.829188e9) with this patch.VICTORY_NATIVE_SIZEwas not set, so the monitor's shape picked 3440x1440. The settings were the same as in the crashing runs.native-3440x1440-upscaler-performance-sdr\, the same profile that crashed before.mov ecxat0x247AD4Anow holds0x05E00000(it was0x06A00000).first frame presented ms=4808. It played into the game for about 3.5 minutes at 60–100 fps (DLSS performance, frame generation on).window closed: suspending the title…ending the title). There is no new entry incrashes.log.Workaround for the current release
Add this line to
%LOCALAPPDATA%\victory\victory-settings.txt:The F1 menu keeps every
VICTORY_*line when it saves. With this line, v2026.11.29.01 takes the 16:9 path that 16:9 monitors use.Open questions
presenting to a window width=2560 height=1440, as v2026.11.28.03 does on this monitor. So the start-up crash is fixed, but whether the 21:9 picture fills the monitor may need its own follow-up. This PR does not change it.570 host pipelines failed(all0x8007000e, mostly mesh pipelines, 16:44:25–16:46:29). The process had about 27 GB private, 44 GB committed. This PR only changes one constant in the title's UI pool, so it does not touch pipeline creation.Logs
ultrawide-crash-logs.zip
All paths have the Windows user and the game folder name redacted.
crashes.log: all 6 crashes, same site andrax.crash-run-v2026.11.29.01-3440x1440.log: a full play log of a crashing run.title-crash-context-v2026.11.29.01.log: the title's crash context (System Init, frame 0).good-run-previous-build-2560x1440-first-150-lines.log: the start of a working run on v2026.11.28.03, for comparison.fixed-build-run-3440x1440-excerpt.log: the run with this PR on the 3440x1440 monitor. It has the first 260 lines (through the first frame), every fps line and the exit lines.Credits
Reported and tested by @mehmetraif on an ASUS ROG Zephyrus G14 with a 21:9 monitor. Analysis and patch made with Claude Code.
🤖 Generated with Claude Code
View command line instructions
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.