native_1440p: size UI pool for fixed 2560x1440 targets on non-16:9 monitors #2060
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!2060
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2060"
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?
@steven-seagull27 on GitHub · 2026-11-29 08:52 UTC · original
steven-seagull27:fix/2055-ultrawide-ui-pool→main· +46 −10 · 1 files · 1 commits · closed without mergingFixes #2055.
Root cause
#1808(16576c03) updatedUI_POOLinapps/victory/src/native_1440p.rsfromui_surface_bytes(WIDTH, HEIGHT)(2560x1440) toui_surface_bytes(width(), height())(the monitor's aspect-matched output size).However,
SDR_MODEis intentionally left at stock3840x2160(0c0d4662), so the UI setup at0x247AD10always allocates:3840x2160legacy UI surfaces =0x3FC0000bytes2560x1440UI targets =0x1E00000bytes0x5DC0000bytes (93.75 MiB)It then asserts at
0x247AF25that no more than0x1FFFFFbytes remain unused in the pool.When
width() x height()differs from2560x1440:3440x1440):UI_POOLwas sized to0x6A00000(106 MiB), leaving0x6A00000 - 0x5DC0000 = 0xC40000unused (> 0x1FFFFF), triggering theint3at+0x247af2dwithrax = 0x0000000000c40000reported in #2055.2304x1440):UI_POOLwas sized to0x5C00000(92 MiB)< 0x5DC0000, under-allocating the pool and triggering the allocator'sint3at+0x56a2afd.Fix
ui_pool_size()inapps/victory/src/native_1440p.rsusingDEFAULT.0 x DEFAULT.1(2560x1440) alongsideLEGACY_UI_WIDTH x LEGACY_UI_HEIGHT(3840x2160), keepingUI_POOLat0x5E00000(94 MiB; leftover0x40000 <= 0x1FFFFF) across all monitor aspect ratios while keeping the non-16:9SETTINGS_COPYoutput width/height from#1808.ui_pool_size_matches_legacy_and_default_targetsverifying the exact surface math, pool bound (<= 0x1FFFFF), and the 21:9 over-allocation (0xC40000) / 16:10 under-allocation regressions.Verification
cargo test --locked -p victory --bin victory -- native_1440p --nocapture(allnative_1440punit tests pass, includingui_pool_size_matches_legacy_and_default_targets).cargo clippy --locked -p victory --bins --tests(zero warnings innative_1440p.rs).git diff --checkclean.@rgroenewoudt on GitHub · 2026-11-29 10:22 UTC · original
Tested: this fixes the start crash for me.
Setup: AMD Radeon RX 9070 16 GB, Windows 11 build 26300 (native), Series X, release build. Started with
scripts\play-foxhound.ps1(VICTORY_NATIVE_1440P=1). The monitor is 2752x1152, so it's wider than 16:9 and lower than 1440, a third case beside the two in the description. The output size became 2752x1152 (images/native-2752x1152-sdr).Before (
829188e9, 3/3 starts):unhandled exception 0x80000003 at victory-image-b99f876b74d4a77f-p2f9ea84c.dll+0x56a2afd, called throughXMemAllocfromcreate_committed. The UI pool was asked as one 90 MB block (kind 0x203000, flags 0x3: 1 times, 90 MB, last 0xe1c800000+0x5a00000), so0x5A00000 < 0x5DC0000: the under-allocation case. The title's crash context saysGame State: System Init,TileHeap: total (0Mb), so it isn't #2081.After (
829188e9+fefa2be7): 2/2 starts reach the game.cargo test -p victory --bin victory -- native_1440p: 6 passed.Remaining: at 2752x1152 the game shows many visual artifacts. With
-More VICTORY_NATIVE_SIZE=2560x1440it starts and looks fine. So the crash is fixed here, but the non-16:9 output size from #1808 still doesn't render cleanly on this monitor.Tested locally with AI assistance (Claude Code); I checked the results before posting.
@Halfect on GitHub · 2026-11-29 11:06 UTC · original · approved these changes
LGTM. I independently reproduced #2055 on a 3440x1440 display: the crash at
+0x247af2dhadrax = 0xC40000, exactly matching the unused-pool calculation in this PR. The fixed pool size preserves the required legacy/default surfaces and the0x40000slack without undoing the aspect-matched output behavior.Local verification at
fefa2be793f4e397a0e48989cdd1cda4e1a95813:native_1440ptests: 6 passed, 0 failed, including the new UI-pool regression test.cargo clippy --locked -p victory --bins --tests: completed successfully; only unrelated existing warnings elsewhere in the workspace.cargo test --locked -p victory --bin victory: 79 passed, 0 failed.git diff --check origin/main..HEAD: clean.This review covers source inspection and the test suites above; I did not claim an end-to-end game run from a fresh build of this PR. The release-build workaround was tested separately.
@Halfect on GitHub · 2026-11-29 11:39 UTC · original
Additional hardware validation on
fefa2be793f4e397a0e48989cdd1cda4e1a95813:Setup: Ryzen 7 9800X3D, RTX 5080 (driver 621.24), 3440x1440 21:9 display, Windows, Series X,
cargo build --release --locked -p victory. Launched throughscripts\play-foxhound.ps1with DLSS Quality and frame generation off.VICTORY_NATIVE_SIZEwas explicitly unset for the test child process, so this did not use the 2560x1440 override as a workaround; mouse/keyboard input was enabled separately to operate the title.The log confirms the
native-3440x1440-upscaler-quality-sdrimage anddisplay 3440x1440 SDR. After confirming the current profile with Enter, the run passed the Rockstar logo and reached the real-time 3D prison prologue with subtitles. It ran for about 10 minutes without the previous+0x247af2d/rax=0xC40000System Init crash. Shutdown was a normal window-close path with exit code 0; the final pipeline summary reported 0 host pipeline failures and 0 untranslated shaders.So the startup fix also works on this RTX 5080 / 3440x1440 configuration beyond the first screen. The prologue still showed variable performance and strong overexposure, but those are separate rendering/performance issues from the UI-pool sizing fix validated here.
@AsteroidusTv on GitHub · 2026-11-29 11:42 UTC · original · edited 2026-11-29 11:56 UTC
Update: temporary workaround confirmed working on this PC
The PC owner has now tested the published v2026.11.29.01 release with the same game files and confirms that the following command resolves the startup crash on this RTX 4090 / 3440x1440 setup:
This is user-confirmed validation of the 2560x1440 workaround, not a test of a build containing this PR or a claim of long-term stability. The earlier statement below that the workaround had not been executed on this PC is now superseded by this user test.
Original static investigation (before the user test)
Independent static confirmation of #2055 on an RTX 4090 / 3440x1440 machine, using the published v2026.11.29.01 executable. This matches the precise UI-pool regression addressed here, rather than just sharing STATUS_BREAKPOINT.
Scope of validation: read-only inspection of the existing executable, generated PE images and three saved crash reports, plus an isolated arithmetic reproduction. I did not launch the release binary, build/run this PR, or validate the fix in-game. The owner reports that a release downloaded on November 27 worked with the same game files; the exact November 27 release suffix is not established. The November 27 play log independently shows more than 13 minutes of rendering activity.
Environment and provenance
Local evidence
Three saved starts on November 29 at 12:29:06, 12:29:17 and 12:29:35 UTC all have:
Their title-side stack offsets are identical:
0x247af2d -> 0x2479430 -> 0x19f4f54 -> 0x580437e ->
0x43a4911 -> 0x224070b -> 0x23cf00a -> 0x2215eca.
The current play log reports the 106 MiB allocation immediately before the crash:
Read-only PE section/RVA parsing confirms the following in the actual generated image under cache/images/native-3440x1440-upscaler-quality-sdr:
The retained November 27 cache (native-1440p-upscaler-quality-sdr) instead has a 2560x1440 SDR mode and UI_POOL=0x1E00000 (30 MiB). This predates the later UI-layout changes: it should not be described as having the proposed 94 MiB pool already. The old log also reports 2560x1440 to the title.
Isolated reproduction and review of the proposed fix
For these one-mip, single-sample RGBA8 surfaces, the tagged texture layout uses 128x128 tiles. Reproducing its alignment arithmetic independently gives:
The 2304x1440 negative case also reproduces: the old formula gives 0x5C00000, below the required 0x5DC0000. All local static/model checks passed. The reviewed patch is head
fefa2be793on release base829188e969. Rust/Cargo tests were not run locally because the toolchain is not available.This supports the interaction between #1808 (monitor-dependent pool sizing) and the stock-SDR/legacy-layout changes in
0c0d4662. It provides a direct explanation for this machine's frame-zero assertion. The 1 ms setting was already present in the working November 27 log, so changing the FPS cap is not needed to explain this particular failure.Workaround and limits
Forcing VICTORY_NATIVE_SIZE=2560x1440 through play's --set option is a relevant reversible workaround, corroborated by #2073 and other reports under #2055. It was not executed on this PC. Changing only --res 1440 does not force 16:9 in this release, since that profile now follows the monitor's aspect ratio.
This confirmation concerns the 3440x1440 +0x247AF2D / RAX=0xC40000 case. It does not establish a fix for unrelated XMem reservation failures (#2217/#2081), or the wider-than-stock 5120x1440 case handled separately by #2210.
No game files, memory dumps, account identifiers, or personal filesystem paths are included in this report. No security settings were changed and no crash upload was enabled.
Prepared with Codex assistance from the local static checks described above.
@AsteroidusTv on GitHub · 2026-11-29 12:01 UTC · original
CI integration follow-up for this PR (reviewed at
fefa2be793):GitHub currently reports mergeable=true / mergeable_state=unstable. There is no merge conflict; the red check is the shared-main CI failure, outside native_1440p.rs.
I traced the existing dependency chain:
This PR's Windows job fails at Clippy on
victory-loader/src/crash.rs:804:unwind_copyis unused without diagnostics. The tests never run.Job: https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46244680016/job/141289018096
#2019 addresses that first error, but its Windows job then reaches GPU warnings promoted to errors. Applying only that first fix is insufficient.
Job: https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46248076888/job/141299694865
The current #2048 head
1fb7cad508ded7eadc897a7f731f4da51f2b1625already includes the loader/shader fixes and GPU/HLE cleanup. Its actual Windows job passes both Clippy configurations, including all features. It then fails only at the three BCPack oracle-parity tests in victory-formats (80 passed, 3 failed, 7 ignored). This is observed CI output, not a local test claim.Job: https://github.com/trustno1-coder/VIctory-NVIDIA/actions/runs/46258040018/job/141331086043
#2236, head
18eaf9476cdeb19a47a8ec9c43cfbeb8446a8fe6, fixes the stale scalar BC7 test oracle responsible for those three failures. It removes the skipped u16 and reads all 32 dictionary-index slots, matching the existing production parser. Its author reports 83/83 format tests passing. This is test-only; the production decoder is unchanged.Concrete integration check performed here: in an isolated local checkout at this PR's exact head, I applied the full base-to-head diff of #2048, then #2236. Both
git apply --checkoperations andgit diff --checkpassed with no conflicts. The result adds 25 files / 68 insertions / 48 deletions over #2060.apps/victory/src/native_1440p.rs,Cargo.lock, and the CI workflow remain byte-identical to #2060, so its UI fix and the existing CI gates are preserved. No checks or failing tests were disabled by this integration work.Suggested maintainer path: integrate #2048 and #2236, update/rebase this PR onto that base, and rerun the three normal workspace gates. Alternatively the same existing commits can be brought onto this branch, retaining their authorship. I cannot update someone else's PR branch from this account.
Limits: no Rust toolchain is installed on the inspected PC, so I did not run the combined Windows build/test suite. #2048's job stops at victory-formats; later suites have not been demonstrated green for the combined tree. This addresses the observed blocker chain and gives a clean integration candidate, not a claim that the final combined CI is already green.
Separately, the PC owner has now confirmed the release workaround
victory.exe play --set VICTORY_NATIVE_SIZE=2560x1440works on this RTX 4090 / 3440x1440 setup; that result is recorded in the update to my earlier comment.Prepared with Codex assistance.
@Creaa on GitHub · 2026-11-29 12:03 UTC · original · edited 2026-11-29 12:12 UTC
Test report on a 32:9 monitor (5120x1440): this fixes 21:9 here, but a 32:9 main monitor still crashes at start, at a different place.
Setup: RTX 4070 12 GB (driver 617.14), i7-13700F, 32 GB, Windows 11 26300; main monitor 5120x1440 (32:9). Release build (
cargo build --release --locked -p victory),scripts\play-foxhound.ps1 -FrameGen, Series X. Each run: start, 45 s.829188e9829188e9VICTORY_NATIVE_SIZE=2560x1440829188e9VICTORY_NATIVE_SIZE=3440x1440+0x247af2d(the one this PR fixes)fefa2be72b1fe7862b1fe786VICTORY_NATIVE_SIZE=3440x1440The 5120x1440 crash, the same on main and both PRs:
r12holdsE_INVALIDARG, so a call into our layer seems to refuse something at this size and the title traps on the result (a guess from the registers; I could not name the frames). A bisect over main (first-parent, then inside the waves) gave16576c03(#1808) as the first commit with this crash;8e81b84cjust before it runs.Update: also tried
VICTORY_NATIVE_SIZE=3840x1080(32:9, under the 3840 width of the UI surfaces) on #23092b1fe786: the same crash at+0x56a2afd, so it follows the 32:9 shape, not the width.Not tested: other 32:9 sizes, whether 5120 is over a limit of the title's (for example its 3840-wide UI surfaces), FG off.
AI use: Claude Code (Claude Opus 5.5) ran the bisect and the test runs and wrote this report.
@steven-seagull27 on GitHub · 2026-11-29 20:35 UTC · original
Closing this PR as superseded — the fixed
2560x1440UI pool sizing fix for #2055 landed onmainin33e9fed2(v2026.11.29.02).Thanks @Halfect, @AsteroidusTv, and @Creaa for the thorough reviews, arithmetic checks, and monitor testing!
Pull request closed