My fixes. From crash to black screen to working game. 16 GB RAM and 7900XT, Nobara #196
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/lobomfz--VIctory-xmem#196
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?
@Finalizator on GitHub · 2026-12-02 14:35 UTC · original
Part 1
./run.sh play: black window, the whole desktop at ~0.1 fps, then the title's own fatalStatus (read this first)
Solved, on 2026-12-02, on a 16 GiB / RX 7900 XT machine.
./run.sh play CONSOLE=series-sreaches the 3D world and runs there: 4,096+ frames, 4.8 M draws, no host GPU failure, no
exception (Update 16). Four separate causes were behind the three symptoms, and each is
fixed in the tree:
run.sh's flatKEEP_FREE=8192and a silent 2048 MiB floorttm.pages_limit× 4 KiB) refused a command submission at ~130 MBMemAvailable→0x887A0005amdgpu.gttsize=12288 ttm.pages_limit=3145728(Update 15), plus a modest kernel reserveint3on Series S (+0x2219650)VICTORY_OUTPUT=1920x1080VICTORY_UPSCALER=6(the title's own)Still open, and not blockers: Series X still dies at
+0x2215c35(its 2199 MB pool,untouched by any of the above), the shader containers that do not translate are harmless,
and the run needs a click at the menu (
AUTO_PRESS=1, Update 15).Four more commits of the same story, each in the report:
setup.shneedinglibdrmandfriends on a fresh machine (
BUGREPORT.md), the shader containers that do not translate(harmless), the instrumentation all of this was measured with, and the memory findings on
your machine (
NOTES-memory-zram.md).The rest of this file is the investigation in the order it happened, including the
directions that turned out to be wrong (Update 12 is withdrawn at its heading and corrected
by Update 14) and every measurement that ruled them out.
Summary
./run.sh playopens a black window and makes the entire desktop unusableuntil the process dies. Three separate things are visible in one run, and only
the first is ours:
run.shsqueezed the run into a 2 GiB cgroup. On a 16 GiB machine with abrowser open,
MemAvailableis around 9 GiB; the flatKEEP_FREE=8192reserve left ~800 MiB, and
playthen raised the cap to a 2048 MiB floorwithout a word. Every page the title touched forced reclaim, so the whole
machine swapped and the compositor stalled — that is the 0.1 fps.
the tile heap) does not fit a 16 GiB machine that is already running a
desktop, whichever cap is used. It ends in the title's deliberate
null-write trap (
mov dword ptr [0], 0+int3), which Victory onlyreports, right after the kernel says
amdgpu 0000:2b:00.0: [drm] *ERROR* amdgpu_vm_validate() failed.195 do not translate) are unrelated andharmless: those containers hold hull/domain/geometry programs only, and no
pipeline the title creates needs them.
Environment
setup.sh), vkd3d-proton 3.2.0What the run looked like
While that was happening, the desktop logged this every couple of seconds:
and the cgroup told the rest of the story:
Root cause 1: the memory cap (ours, fixed)
run.shbefore the fix:KEEP_FREE=8192is right for a 32 GiB machine (what the README describes:32 GB, RX 9070 XT). On this 16 GiB machine
MemAvailablewas ~9 GiB, so thecomputed cap was ~800 MiB;
playthen took the 2048 MiB floor silently. A runthat commits ~12 GiB inside 2 GiB does not fail fast — it swaps on every page,
which is exactly the "whole system at 0.1 fps".
./run.sh shaderswas not evenallowed to start:
not enough free memory: 9495 MiB available.The same arithmetic also hid the real problem from the user: nothing said that
the title was given 2 GiB while it needed 12.
Root cause 2: the title aborts (the title's, not ours)
...dll+0x2215c35isc7 04 25 00 00 00 00 00 00 00 00—mov dword ptr [0], 0— followed by
int3. It sits at the end of a routine thatQueryPerformanceCounterthrough the import at0x146793550,0x146844a20, 0x48 bytes apart),0x146159e20),calls the "fatal" callback the title installed earlier (a bare
retatimage+0x380, registered through
0x1422161f0), then writes to address 0.In other words, this is the title's own "I cannot continue" path — the same
shape as
__debugbreak/__fastfailin any Xbox title. Victory's crash handlerreports it correctly; nothing in Victory raises it.
What the machine looked like at the same moment (kernel log):
and, minutes later, a global OOM (
constraint=CONSTRAINT_NONE,global_oom)whose
Mem-Infoshows where the memory went:6.7 GiB of shared memory — the 6236 MiB tile heap — on a 16 GiB machine that
already had ~6 GiB of desktop. The title's own crash context agrees:
TileHeap: used (0Mb) - total (6236Mb),memory.load_percent: 82,system.memory.free: 2841948.So the abort is the title giving up because its memory is not there, on a
machine that cannot provide it. Reproduced with a 13 GiB cap as well
(
KEEP_FREE=0), so it is a capacity problem, not only the 2 GiB cgroup.The Series S profile fails differently (tracked separately)
./run.sh play CONSOLE=series-s(an 8 GiB console) does not reach the tileheap; it stops earlier with a breakpoint instead:
r15 = 0x80070057isE_INVALIDARG,rdi = 0xf00000a 15 MiB request, andrsi = 0x30808000the attribute wordresource_attributesbuilds (allocator128, 2 MiB pages, 64 KiB alignment, memory type 1). The title's own allocator —
__XMemAllocationHooks__[0]— asserts on that request.resource_attributesis marked in the source as a guess ("the console runtime's own choice of page
size and memory type is not known; this is the plausible one"), so this is
where to look next; it is now logged with the exact size and attributes handed
to the title's allocator (debug level, which a plain release build caps at
info:
PROFILE=diag ./build.shthen./run.sh play CONSOLE=series-s VICTORY_LOG=victory_gpu::resource=debug).Root cause 3: the shader "errors" (cosmetic, message improved)
./run.sh shadersended withAll 195 are one thing: containers whose programs are hull, domain or geometry
ones. The play run confirms they are not needed —
2743 of 2743 native pipelines on disk (0 skipped as bad/hung, 0 refused by the host)and2743 made in 296 s (0 have no host pipeline, ...). They are unrelated to theblack window.
The message now names the reason, and the summary says what the number means:
Fix
run.shnowkeeps a quarter of the machine, at most 8 GiB for the desktop
(
KEEP_FREEoverrides), instead of a flat 8 GiB, so a 16 GiB machine is notleft with 800 MiB;
prints the cap every time, with the numbers behind it:
for
play, when the cap is below the ~12 GiB the title commits, says so andraises the swap allowance to 16 GiB (
MEM_SWAP_MAXoverrides) instead ofpretending the run fits:
no longer refuses
shaders/warmbecause of a reserve it cannot meet on asmall machine (that check now matches the 2048 MiB it actually enforces).
Other changes:
crates/victory-shader/src/emit/mod.rs: the "no program" message now tellsapart a container with no program at all from one whose programs are all
hull/domain/geometry, which is what the 195 actually are.
apps/victory/src/translate.rs: the precompile summary says what the skippedcontainers mean (they are not needed; a run reports it otherwise).
crates/victory-gpu/src/resource.rs: the request handed to the title'sallocator is logged (debug level, so a diagnostics build shows it), which is
what the Series S assert needs.
README.md: the memory the title commits, and the two knobs.What to do on a 16 GiB machine
before its first frame, on top of whatever the session holds.
memory:linesrun.shprints. They now say whether the run fits.CONSOLE=series-sis the smaller profile, but currently stops in the title'sallocator assert described above — that one is a real bug to fix, not a
memory problem.
Verification
./run.sh shadersused to refuse to start on this machine ("not enough freememory: 9495 MiB available") and now runs.
The title still reaches the same abort at the tile heap (that is point 2 above,
not the cap), but the machine no longer goes down with it: the kernel log has
no
Out of memoryand noamdgpu_vm_validate() failedfor this run, and thecompositor's "main thread was hanging temporarily" lines — continuous for the
whole earlier run — are limited to the ~20 s around the 6236 MiB commit.
Update, same day: what actually stops the launch
Everything below is measured on the same machine, with the pipeline cache
warm (54958 pipelines on disk), 11 GiB of RAM free and the desktop using
2.1 GiB — so none of it is a memory-capacity problem.
A. A real bug found and fixed: the title's 2 MiB-page arena
CONSOLE=series-snever reached the tile heap; it died 4 s in with0x80000003is a breakpoint: the title's own allocator asserted. Its page-sizedispatch is at
title+0x56a2a60:From the registers at the
int3: the block was0x1266d0000..0x126a10000(3.25 MiB) and the request was
0xf00000(15 MiB) — for a 15 MiBcommitted resource we asked for 2 MiB pages, and the title's 2 MiB arena cannot
serve that.
resource_attributes(resource.rs) chose 2 MiB pages for any size ≥ 2 MiB.Fixed: 2 MiB pages only for memory that is whole 2 MiB pages and asks for
2 MiB alignment; everything else takes 64 KiB pages (the other branch of the
same dispatch). With that fix Series S gets all the way past the tile heap into
pipeline creation — the next assert it hits is a different one, see C.
B.
VICTORY_HANG_WATCHDOG(new, opt-in): the title's stall deadlinetitle+0x2215c35— the trap that ends every Series X run — is reached fromtitle+0x2215a60, a thread that samplesQueryPerformanceCounterin 64 tablesand, for a sample older than the deadline, calls the fatal handler the title
registered (
title+0x1422161f0) and then executesmov dword [0], 0+int3:The new loader module
crates/victory-loader/src/hang_watchdog.rscan replacethat constant (
VICTORY_HANG_WATCHDOG=<units>,title= leave it alone; thedefault is the title's own). It is not a fix for the crash: the same trap
still fires with the deadline raised — the trigger is not simply "a step took
long".
C. The trigger: page migration (
VICTORY_PAGES)Two runs with page migration off passed the trap:
So the fatal is tied to moving 64 KiB pages of title memory between the PC's
memory and the card (
um::pages_move/residency), not to the memory cap andnot to the tile-heap commit itself.
Off, the next failure is the host GPU:
0x887A0005isDXGI_ERROR_DEVICE_REMOVED,-4isVK_ERROR_DEVICE_LOST:the card's context dies on the first submission when the 6 GiB of title memory
is not migrated. That is the next thing to fix, and it is in the opposite
direction from the first one — the two need to be looked at together (what the
patched RADV maps when a page has never moved, versus what the title's
watchdog sees when it does).
D. What is not the problem
7314 MiB and the cgroup never hit it.
containers,
0 have no host pipelinein the run.run.sh's cap arithmetic: fixed (quarter of the machine kept, not a flat8 GiB, and it now prints what it sets), but it was masking, not causing.
Update 2: Series S — the game boots, renders, then one assert stops it
Measured with the fixes of section A (2 MiB-page gating), release build,
./run.sh play CONSOLE=series-s, 11 GiB free.It runs
The title presents frames (~4 s worth, 256+ frames, real draws and
dispatches) and then stops itself at
title+0x2219650with0x80000003(breakpoint — a title assert, not a fault of ours):What the assert is (disassembly)
title+0x4fac3c0is a small guard run for one resource operation:So: the title asked an object (
*(rbx), a title-side vtable) for something ofsize
0x200000(2 MiB, alignment0x10000), got nothing back, and treatedthat as fatal. The report arguments are exactly the size/alignment of a 2 MiB
heap, which is the block the title's own allocator hands out and then checks
(it is the same "the title places its back buffers in a block of its own and
checks they fill it" path
use_allocatordocuments).Ruled out by experiment:
Memory::for_resourcegets a null back from the title's allocator(
resource.rs, "the title's allocator gave nothing back"); Series S reachesthe assert with zero such lines, so the memory we asked for was granted.
6346 MB in RAM, 1501 MB in VRAM in 24 pools ... on the card 23 (0 refused), with 11 GiB free.LoadLibraryofamd_fidelityfx_upscaler_xbox.dllis aGetModuleHandleprobe and isrefused (correctly), then the title loads it and we map it:
title dll amd_fidelityfx_upscaler_xbox.dll at 0x6ffff17f0000 (loaded by the title),bound ...: 7 hle, 79 host, 0 title, 0 missing.CreateHeapmemory through thetitle's allocator instead of ours was tried and changed nothing (reverted).
What is left, and where to look next: the object's vtable method 0 returning
null for a 2 MiB request. It is a title-side allocator interface, so either the
title's own pool for these blocks is smaller than the console's (a Series S
budget it computes from what it thinks it has), or an interface we hand it as
that object answers "no room". The next step is to log the object's vtable
pointer and compare it against the ones the title installs at startup, and to
log every
CreateHeap/CreateCommittedResourcesize in the last second beforethe assert.
Diagnostics added while digging (kept)
resource.rs: a warning when the title's allocator returns null, with thesize, alignment and attribute word.
victory-loader/src/windows.rs: a debug line for every title DLL the loaderdoes not map, with the path and whether the file exists
(
VICTORY_LOG=info,victory_loader::windows=debug).VICTORY_HANG_WATCHDOG(loader module) — see section B; not a fix.Series X, after the same fixes
Unchanged:
0x2215c35right after the 6236 MiB pool with page migration on;with
VICTORY_PAGES=0it passes that trap and then loses the GPU(
VK_ERROR_DEVICE_LOST,DXGI_ERROR_DEVICE_REMOVED 0x887A0005) on the firstsubmission. Series S does not hit either: its pools (3977 MiB) stay under
whatever the migration path trips on, which is more evidence that the Series X
trap is in the migration path and not in the memory size.
Update 3: the Series S assert, identified further
The crash report now names the object that answered "no" (
victory-loader/src/crash.rs,printed for every
int3):So:
+0x71c2808, i.e. an image address,not one of ours) whose vtable is at
+0x61883a0.+0x18is1, which is what makes the failed lookup fatal(
4fac3f1: movb 0x18(%rbx),%cl→and al,1→ fatal only when set).0x882000and0x10000(64 KiB). Read as a size,
0x10000is a plausible 64 KiB; as an address it isVirtualQuery's "reserved, never committed", which is nonsense. It is the sameshape as the earlier run's
0x200000+0x10000.0x882000is mapped, read-only — a page of title memory, inside the title'sfirst span (
0x400000...), currently lazily mapped read-only as our design doesuntil the page is touched.
Different workloads give different addresses, same size (
0x10000): withVICTORY_UPSCALER=6(the title's own upscaler instead of the Xbox FidelityFX one)the request was
0x882000+0x10000; with FidelityFX it was0x200000+0x10000.So the object is asked to confirm a 64 KiB page of title memory it has no
record of, and it is a
must existobject.The upscaler is not the cause
./run.sh play CONSOLE=series-s VICTORY_UPSCALER=6(title's own upscaler) reachesthe same
+0x2219650assert, with a different address. And the Xbox upscaler doesload and bind:
The first
refused dll="amd_fidelityfx_upscaler_xbox.dll"line is aGetModuleHandleprobe before the load, which correctly returns null.Note on FSR 4 and RDNA 3: the Series S profile does not use FSR 4 at all — the
title's own FidelityFX upscaler comes from the game (
amd_fidelityfx_upscaler_xbox.dll).FSR 4 is only the PC path (
VICTORY_FSR_4K,./setup.sh fsr4,amdxcffx64.dllfrom the driver andamd_fidelityfx_upscaler_dx12.dllfrom theSDK), and FSR 4's FP8 path is RDNA 4 hardware; on RDNA 3 (RX 7900 XT) it is the
community FP16/INT8 fallback and is a separate, unrelated experiment.
Next step, concretely
The object's vtable is at
title+0x61883a0; the lookup is its first virtualmethod
(this, address) -> record or null. Two things to do next:0x61883a0into an object to name it(a scan of
.textfor the immediate/lea of that vtable finds its class), thenread the method to see what a "record" is keyed by (address range? physical
page? pool?).
victory_gpu::um::lazy's view of0x882000: whether that pagewas ever
BOUND, and by which of the title's calls. The gap between "the titlethinks it has a 64 KiB page there" and "the page has no record" is the bug.
Until that is known, everything else about Series S is in place: it boots,
translates shaders, presents frames, and reports
unified memory: 6346 MB in RAM, 1501 MB in VRAM in 24 pools ... on the card 23 (0 refused).Update 4: the guard is a real failure, not cosmetic
VICTORY_PAGE_CHECK=off(new,crates/victory-loader/src/page_check.rs) makes theguard at
title+0x4fac403jump to its own "not found is fine" path(one byte,
74 e2→eb e2; the two paths already exist in the title's code).Result, same call chain one frame later:
+0x16473efis anotherint3(assert) reached withrbx = 0— the caller usedthe record the guard would have refused to go without. So:
fixed at the source: the title has to find the 64 KiB page it asks about.
The switch is kept as a diagnostic (default: guard as the title has it) because it
names the dependency in one run; it is not a fix and must not be made the default.
Where that leaves Series S
0 have no host pipeline)0 refused+0x2219650, a static title object (+0x71c2808, vtable+0x61283a0, flag+0x18=1) has no record of the 64 KiB page at0x882000Concrete next probe: log
XMemVirtualAlloc/XMemMapPhysicalPages/XMemFreePhysicalPagesat info for a run, and check whether0x882000was evermapped, freed, or never named by the title at all. If the title never named it,
the address comes from a structure we filled (a page-number table or a placed
resource's address) and that is where the wrong value is born.
Update 5: what the object is — and the clue from upstream #71
The object is a pool descriptor with a lookup table
VICTORY_UPSCALER=6run, crash diagnostics:+0x20and+0x30are a base and a size:0x98C000000 + 0x4FD00000= 1.28 GiB, and theresources the title creates just before the assert sit inside it
(
resource at an address address=0x9dbb50000,=0x9dbc70000).The method the guard calls is
+0x221a620:So the guard asks a pool "which block of yours is at
0x882000,0x10000?" and the poolanswers "none".
0x882000is outside that pool (0x98C000000..0x9DBD00000), so the answer is"correct" — the caller is asking the wrong pool, or with the wrong key.
Two readings, both testable:
+0x18flag("ask again / must exist") turns the miss into a fatal instead of trying the next pool.
0x882000is not an address there but an offset/page number that belongs to another pool.Note the argument shape is identical across runs —
(<address>, 0x10000)— and0x10000isexactly 64 KiB, the console's page size, in every run so far.
Vtables are encrypted at rest
+0x61483a0(and the neighbouring+0x61283a0) read as high-entropy bytes in the image on disk,while
+0x6159e20(the300.0watchdog deadline) reads fine: the title keeps some pointer tablesencrypted until it maps them. That is why the vtable had to be captured at run time; the crash
report now prints
vtable <addr> methods: [0] ... [3] ...for every breakpoint, which is how thelist above was obtained.
The upstream clue (lobomfz/VIctory-xmem#71)
That issue is an RDNA3 performance report (RX 7800 XT, 28.6 fps median), not a boot bug, but it
says two things that matter here:
VICTORY_UM_VRAM_MBexists upstream — a knob for how much of the card's memory title memorymay take. This fork had it hardcoded:
CARD_KEPT_FOR_HOST = 12 GiB, so a 20 GiB card gave thetitle only
8176 MB(card_mb_for_title=8176in every log). Now implemented here(
crates/victory-gpu/src/um.rs):VICTORY_UM_VRAM_MB=<MiB>caps the room, loggingunified memory: VICTORY_UM_VRAM_MB sets the room for title memory asked_mb=... granted_mb=....Worth a run at
VICTORY_UM_VRAM_MB=15000on this machine (20 GiB card, 1.5 GiB in use by thedesktop).
22212 uploaded from memory that read all zeros,24315 waiting— memory that has no resident page reads as zeros; the page the Series Sguard asks about is exactly such a page (mapped read-only, never written).
Their
LATE_MOST256→512 andCARD_KEPT_FOR_HOST12→10 GiB experiments are performance-only(no fps change, or "the room is never the limit, because only write-combined title memory goes to
the card").
Where this leaves the Series S bug
The failing lookup is
pool.find(address, 64 KiB)on a pool that does not contain the address.Next: at the assert, also print every pool descriptor the title knows (walk
+0x28/+0x38links)with its base/size, so the report says which pool does contain
0x882000— that names the ownerand closes the loop.
Tested: the VRAM budget is not the trigger
Same assert, same arguments (
0x200000+0x10000), same frame count. So the failing pool lookupdoes not depend on how much of the card the title may use; the default stays as it is, and the knob
is there for the performance experiments #71 describes.
Update 6: searched, and three more hypotheses closed
The GDK API behind the object (internet, official and emulator sources)
Searching for the console API that has "mappings of 64 KiB pages" turned up two
professional references:
microsoft/XBOX-Game-Development-Documentation,xgmemory_NR/interfaces/XGMemoryLayout): anXGMemoryLayoutis a set ofmappings of GPU pages,
XGMemoryLayout::CreateMapping(name, alignment, size),MapFromPattern,GetPageSizeBytes— "this size is typically 64 KB, which can beverified via
GetPageSizeBytes", alignment defaults toXG_GPU_PAGE_SIZE_BYTES.That is exactly the shape of the object we captured: a base (
+0x20), a size(
+0x30), and a hash map (+0x38) from a page/address key to a block offset.ScikuVRC/xboxrecompdocs (original-Xbox emulator): console virtualaddresses are mapped into the host process at their exact addresses because
"Xbox games use hardcoded absolute addresses for all global variables", and
VirtualAlloc-at-address fails for mirrored memory — the same class of problemthe unified-memory layer solves here for the Series X|S address space.
The title does not import any
XGMemoryLayout*symbol (checked the import table),so this object is its own implementation of that model, filled by its own
XMem*calls — which is why nothing on our side gets to "register" a mapping in it.Closed: the address is not one of our page numbers
XMemAllocatePhysicalPagesnow logs the page numbers it hands out(debug level):
The whole page-number space used in a Series S run is roughly
0x33500 .. 0x130400. The guard asks about0x200000/0x882000, both faroutside it, and
VirtualQuery(0x882000)says the page is mapped read-only —so it is a virtual address of title memory, not a page number. Page numbering
is not the bug.
Closed: page migration
./run.sh play CONSOLE=series-s VICTORY_PAGES=0→ the same assert at the sameplace (
0x200000+ 64 KiB, after 9 presented frames). Series S is not affected bythe migration path that kills Series X.
Summary of what is ruled out for the Series S assert
VICTORY_UPSCALER=6VICTORY_UM_VRAM_MB=15000(was 8176)VICTORY_PAGES=00 refusedpoolsfirst_page/countloggedVICTORY_PAGE_CHECK=offWhat remains: a virtual address the title presents to a pool that does not own it
(
0x882000/0x200000, pool base0x98C000000+ 1277 MiB). The helper that asks(
+0x4fac3c0) has ~180 call sites in the title — it is the generic "record for thisaddress" lookup used all over the resource code — so the wrong address is born in
whatever produced it, not in the lookup.
Note on the controller (from the reporter of this machine)
The "controller disconnected" screen is explained by the pad itself: it is
wireless and drops on inactivity.
VICTORY_ONE_PAD=1is still worth setting inrun.conf(it is the fix for the title withdrawing the keyboard/mouse stand-in padwhen a real one appears), but an idle wireless pad disappearing is the pad's
behaviour, not the emulator's.
Update 7: the guard is an allocation failure, and it is not ours
Disassembling the guard's caller chain changes the reading of the whole crash:
So the title asks its current memory layout for a block, and the layout answers "none".
0x200000/0x882000are not a foreign address — they are the size of a block(2 MiB, 8.5 MiB) and
0x10000the 64 KiB alignment. The+0x18flag makes thatfailure fatal ("this allocation must not fail"), and it is fatal on Series S only
because that profile runs out of that layout, not because the lookup is wrong.
Which layout, and how full
That is the layout: 1277 MiB at
0x98BC00000, whose usable base is the object's+0x20=0x98C000000(a 4 MiB header). The resources the title places sit insideit (
0x9dbb50000,0x9dbc70000), so it is the graphics pool.Not a leak on our side
Allocations that go through us (
Memory::for_resource, i.e. the title's__XMemAllocationHooks__[0]) are now counted:16–31 blocks, 94 MB held, at the moment of the assert — with every block returned
on drop. The layout is 1277 MiB; we are not filling it. The title's own allocations
fill the rest, and its allocator then fails on the 2 MiB request.
Ruled out so far (all by experiment, one run each)
VICTORY_UPSCALER=6VICTORY_UM_VRAM_MB=15000VICTORY_PAGES=0first_pagecounts:0x33500..0x130400VICTORY_PAGE_CHECK=offNext step
Watch the layout while it fills: read the object at
current_layout()(title+0x4FC99C0), print its words every second, and see which field climbs to the1277 MiB —
+0x30is the extent seen at the crash. If the layout's high-water markis its size, the question becomes what the title frees and we do not, and the same
readout says whether the free path is reached at all.
@Finalizator on GitHub · 2026-12-02 14:36 UTC · original
Part 2
16–31 blocks, 94 MB held, at the moment of the assert — with every block returned
on drop. The layout is 1277 MiB; we are not filling it. The title's own allocations
fill the rest, and its allocator then fails on the 2 MiB request.
Ruled out so far (all by experiment, one run each)
VICTORY_UPSCALER=6VICTORY_UM_VRAM_MB=15000VICTORY_PAGES=0first_pagecounts:0x33500..0x130400VICTORY_PAGE_CHECK=offNext step
Watch the layout while it fills: read the object at
current_layout()(title+0x4FC99C0), print its words every second, and see which field climbs to the1277 MiB —
+0x30is the extent seen at the crash. If the layout's high-water markis its size, the question becomes what the title frees and we do not, and the same
readout says whether the free path is reached at all.
Update 8: watching the layout, and what its vtable really is
VICTORY_LAYOUT_WATCH=1(new,apps/victory/src/run.rs) reads the title's layoutobject (static at
title+0x71c2808) once a second and logs its words. Series S:So the object is re-configured in place:
w10(+0x10) flips from a heap pointerto a value in the unified space (
0x960dc6550) in the second before the fatal, and atthe crash
+0x20reads0x98c000000(4 MiB above the0x98bc00000seen whilewatching) while
+0x30stays0x4fd00000. It is one global "current layout" that ispointed at a different region as the title's pools come and go — which is why the
fatal's numbers differ from run to run and from upscaler to upscaler.
The vtable is an interface, not one method
The entries captured at the crash are thunks into a bigger table:
So the layout is an object with at least 0x50 bytes of methods; the allocation the
guard wanted is the one initiated from the caller (
+0x2474690), which reaches[0]with (size, alignment). The next step is to read the runtime table atvtable+0x48(the same way the[0]entry was read) and disassemble that method —that is the "allocate" half, and it will say which field of the object it compares
against (base + extent, or a separate high-water mark).
Instrumentation now in the tree (all opt-in, all documented here)
VICTORY_LAYOUT_WATCH=1VICTORY_PAGE_CHECK=offVICTORY_HANG_WATCHDOG=<units>VICTORY_UM_VRAM_MB=<MiB>VICTORY_UPSCALER=6VICTORY_CONSOLE_MB=<MiB>XMem), over the console's figureVICTORY_AUTO_PRESS=<seconds>VICTORY_ALLOC_ID/_MEMORY/_PAGESVICTORY_MEMORY_REPORT=titleVICTORY_NATIVE_COMPUTE,VICTORY_NATIVE_GRAPHICSVICTORY_CAPTURE=<folder>VICTORY_PAGES=0Crash reports now print, for any
int3: the object atrbx(vtable, flag byte), thewords of the object, the vtable's first four methods, and what
rdx/r8point at.Update 9: the pool is 99.96% full — measured
The first crash log with placement logging (
VICTORY_LOG=info,victory_gpu::resource=debug)holds enough to measure the title's own pool directly:
0x9DBC70000base + extent)0x9DBD00000So the allocation the guard makes is not a bookkeeping accident: the pool really is
full. Its high-water mark only ever grows (3291 monotonic steps, 5.6 % reuse), which
is what a streaming title looks like before it starts recycling.
The pool is the one the title itself asks for:
XMemVirtualAllocof 1277 MB at0x98BC00000(title memory asked for as protection 0x2404, kind 0x203000, flags 0x283), Series S. On Series X the same line says 2199 MB. Both scale with theconsole's memory budget (1277/2199 ≈ 8 GB/13.5 GB), so the sizing is the title's own
and follows the profile — it is not something we hand it.
Additional facts from this round
XMemMapPhysicalPagesScatter(8 calls:n=6720 first=0x143000000,n=4136 first=0x163000000, ...), so physical-page machinery is not the missing piece.XMemMapPhysicalPagesitself is never called — that is normal, the scatter formcovers the same ground.
XMemGetWorkingSetStatisticsis not called at all in a Series S run (0 lines), so the figures we report there
(
title_limit7.59 GiB for Series S,used= the process's commit) do not shapeits budget.
VICTORY_MEMORY_REPORT=titlewas added anyway (reports the commitless the unified memory) but it cannot be the fix for this.
VICTORY_ALLOC_ID=0behaves exactlylike the default 128 (all ids resolve to the same node in the title's registry).
VICTORY_ALLOC_MEMORY/VICTORY_ALLOC_PAGESare now there to test the memorytype and page-size bits the same way, without a rebuild:
resources: attributes for the title's allocator overridden id=… memory=… pages=….Where the remaining question is
The pool fills with the title's own placements, and it does so on a profile-sized
budget. Two candidate explanations, and how to tell them apart:
the placements' lifetimes: pair each
resource at an addresswith the release thatfollows it (our object's
Releasereaching zero), and see whether the addressesthe title hands back ever reappear as placement sites. 214 of 3578 do; on a run
that survives they should be far more.
reserves (
0x143000000,0x163000000,0x183000000) rather than the smalllayout. That would be decided by the resource's memory class, i.e. by
resource_attributes(our guess) or by a flag in the desc that we ignore.The cheapest next probe for (2): run with
VICTORY_ALLOC_MEMORYat each value 0–3 andcompare the pool's high-water mark at the crash (the placement log gives it directly).
If one value stops the layout from filling, that is the missing attribute, and the
fix is one constant.
Tested: memory type 2
VICTORY_ALLOC_MEMORY=2gives a byte-for-byte identical run: 3788 placements, samehighest address
0x9DBC70000. Together withVICTORY_ALLOC_ID=0doing nothing, thissays the 3788 placements are the title's own decisions (
resource at an address=memory the title mapped itself and handed to
CreateCommittedResource), not somethingour attribute word steers. So (2) above — "the placements should go elsewhere" — cannot
be reached by changing what we ask the allocator for; the choice happens inside the
title, from data we don't supply.
That leaves (1): the pool is filled by the title's own streaming at a pace that, on
this emulation, outruns its reuse. The measurement to make next is the one that decides
it — for each of the 3788 placements, does the title ever release it (does our
object's
Releasereach zero and does the address come back as a placement)? 214 of3578 addresses do come back; if a surviving run reuses far more, the difference is
what to chase next.
Update 10 — the Series S assert was a budget, not a bug: the output size decides it
It runs.
./run.sh play CONSOLE=series-swithVICTORY_OUTPUT=1920x1080reachedframe 12094 (5.6 minutes, ~36 fps average on the presented frames), zero exceptions,
busy_percent=99.97throughout, and the log still advancing when it was stopped by hand.The same binary, same cache, same profile at the default
2560x1440had died attitle+0x2219650within thirty seconds on every one of four attempts.What changed between the two runs
Only the output size. Everything else — profile, budgets, allocator attributes, page
sizes, migration — was identical, and the runs previous to this one had already ruled
out each of those individually (
VICTORY_UPSCALER,VICTORY_UM_VRAM_MB,VICTORY_PAGES,VICTORY_ALLOC_ID,VICTORY_ALLOC_MEMORY). So the assert is not a bug in our HLE; it isthe title reacting, correctly and fatally, to a memory budget that its own streaming
plan does not fit into at 1440p.
Why the size changes the title's appetite
The Series S profile reports 7,776 MB, and the title takes 16 % of whatever it is told
for its own GPU layout object (the pool measured in Updates 6–9):
+0x2215c35int3At 2560x1440 the title streams 1,129 MB of placements into that 1,277 MB pool before it
has presented its first frames; the 3,789th placement gets
0xFFFFFFFFback from its ownlookup (
+0x221a620, map at+0x38) and the flag atlayout+0x18turns that intoint3. At 1920x1080 the same streaming settles at 1,043 MB and then reuses addressesthe title releases — total placed bytes climbed past 3,082 MB while the high-water mark
stayed inside the pool, because releases finally outpace new placements once the
first-load burst is smaller than the pool instead of almost exactly equal to it.
That asymmetry is the whole story: the pool is sized for the console's own 1440p output,
and we were asking for 1440p plus a PC-sized first-load burst (larger because nothing
was pre-warmed, so the title could not stream patiently).
The fix
apps/victory/src/run.rs,output_default(): when--console series-sis used andVICTORY_OUTPUTis not set, the output defaults to1920x1080instead of 2560x1440, andthe run says so:
An explicit
VICTORY_OUTPUTstill wins — nothing is taken away from a user who wants totry 1440p on a machine with more headroom, or who wants the crash for a report.
What this means for Series X
Series X dies from the same class of problem one step earlier, at
+0x2215c35, in thetile heap rather than this layout, and its pool is 2,199 MB instead of 1,277 MB. The
output-size lever should be tried there too (a 1440p render with a 1080p output is
VICTORY_OUTPUT=1920x1080 VICTORY_RENDER_SCALE=0.75), and the same measurement (poolhigh-water mark at the moment of death) tells whether it helps. Not yet tested.
Still worth doing (not blockers)
+0x18flag makes a failed allocation fatal. On a PC a failed GPUallocation is a normal, recoverable condition, so the title's own "not found is fine"
path at
+0x4fac403is arguably the correct behaviour here —VICTORY_PAGE_CHECK=offalready proves the guard can be stepped over, but skipping it would leak the budget
problem into later frames instead of solving it. Left as a diagnostic.
(it is told 3840x2160 by
VICTORY_DISPLAY_MODE) so that its asset tiers match theprofile it believes it is on. Today the display mode is 4K while the output is 1080p,
which is why the first-load burst is bigger than a console's.
Update 11 — what stops Series S now: the host's RAM, not the card
With the 1080p default in place, a fresh run gets past the layout assert and presents
frames — and then dies with the device removed. The kernel says why:
Not enough memory for command submissionisamdgpu_cs_ioctlfailing to allocate thejob/IB in kernel memory. It is not a driver bug and not a bad shader: the machine has
no memory left to give.
Measured, 0.5 s sampling of
mem_info_vram_used,mem_info_gtt_used,MemAvailableMemAvailableCONSOLE=series-s(new default)+ VICTORY_CONSOLE_MB=7168+ KEEP_FREE=512Three different caps and two different memory figures give the same death, at the same
point, with the same kernel message. So the cgroup limit is not the cause (raising it by
3.4 GiB changed nothing but the final
MemAvailable), and the figure the adapter reportsis not either — this title never asks
IDXGIAdapter::GetDesc(theVICTORY_CONSOLE_MBlog line never appears), it sizes everything from the console profile it is told.
What the numbers say
runs out of RAM.
driver pins in system RAM — plus ~2.7 GB of the process's own working set, plus the
desktop and page cache, against 15.5 GiB of RAM.
MemAvailablebottoms out at1.3–2.2 GiB and the next kernel allocation on behalf of the GPU fails.
a mirror: the title's memory sits in system RAM and a window of the same pages is
resident on the card.
That is precisely the arrangement the machine cannot afford: the console had one pool
shared by both, and this emulation needs a copy in each. It is also the honest answer to
"the card has 13 GB free, why is it swapping": nothing in the title's own plan puts its
memory on the card instead of in RAM; the card only gets the pages it recently touched.
Why a earlier run got 12094 frames and these do not
The first 1080p run (Update 10) held on for 12094 frames with the same settings. The
difference is headroom, not logic: the pipeline cache has since grown to 3.3 GB (the
89 229-pipeline warm), and each attempt now starts a few hundred MiB lower and crosses
the line the previous one just missed. On a 15.5 GiB machine this configuration is on the
edge, and the edge decides.
What is in the tree now
run.sh:CONSOLE=series-sdefaultsVICTORY_OUTPUTto1920x1080and says so(Update 10). An explicit
VICTORY_OUTPUTstill wins.apps/victory/src/run.rs: the same default in the binary (output_default), for runsthat do not go through
run.sh.crates/victory-gpu/src/dxgi.rs:VICTORY_CONSOLE_MBoverrides the standard memorythe adapter description reports. Useful for titles that ask; this one does not, so it
is a no-op here and is documented as such.
What would actually fix it, in order of value
allocations the title marks GPU-optimal were backed by VRAM instead of pinned system
RAM, ~7 GB of RAM would come back and the whole configuration would fit. This is the
same lever the earlier update explored from the
resource_attributesside, but thequestion to answer is different: not where in the title's address space a resource
lands, but which heap our HLE hands it.
ram=5 vram=Some(3)in the unified-memorylog line says we have three VRAM heaps to offer.
the window should be allowed to be the only copy for read-only GPU data.
VICTORY_UM_VRAM_MB(smaller window),a smaller pipeline cache, and a desktop that is not holding 2 GB.
None of these is a one-line change, and none is proven yet; they are recorded here as the
next experiments rather than as fixes.
Update 12 —
the fix: the card window decides how much the host must back(wrong)Update 11 ended with "the host's RAM, not the card". This update thought it closed it.
The measurement that decided it
One number, moved on purpose:
VICTORY_UM_VRAM_MB, the room the title is given on thecard. Everything else identical to the run that died.
MemAvailableThe residency line says it plainly:
So the window is not "extra memory on the side": it is what decides how much of the
title's memory the host has to hold. Take 4 GB off the window and ~1.5 GB comes off
GTT and ~1.6 GB comes back to
MemAvailable. Give the title 8 GB of the card and thehost has none left for the kernel's own allocations.
That is why the three failures in Update 11 were all identical: they were all giving the
title 8 GB it could not afford, and none of the caps or budget figures changed that.
The fix, in
run.shWhen the play run is short of memory (the existing
cap < 12288case, i.e. the titlecommits more than the machine has), the card window now defaults to half of what the
run can hold:
On this machine that prints
memory: the card window is 4008 MiB (the host backs the rest), which is the value proven above. An explicitVICTORY_UM_VRAM_MBstill wins, andmachines with enough RAM (24 GiB and up) never take this branch, so they keep the full
card.
Verified
./run.sh play CONSOLE=series-swith no other settings, 2026-12-01:Nothing was skipped to get there: no
VICTORY_PAGES=0, no guard patch, no raisedwatchdog. The title's own layout assert, the tile heap fatal and the kernel's submission
failure are all gone at these settings, for the same reason: the title is no longer being
sold more memory than the machine can back.
Why this is also the right shape of a fix
The console had one pool that both the CPU and the GPU used. This machine cannot place
the title's whole working set in the card (it has the room) and keep a copy the CPU can
reach (it does not have the RAM). The honest configuration is therefore to keep the
card's share of it modest and let the host hold the rest — which is what the window now
does automatically, and what the user's earlier question ("why not use the 10 free GB of
RAM and the free VRAM 1:1?") pointed at: the 1:1 arrangement is exactly what does not
fit, and half of it does.
Update 13 — the black 3D world on Series S: FidelityFX's console upscaler
This is the black screen the title's own window shows once it is past the loading
screens, and it is what the reporter's log was pointing at all along. Line 5830 of the
run of 2026-12-02 13:22:
The captures say the same thing from the other side. Every frame we saved is not
black — the key art, the loading screens and their transitions render, with mean
brightness 36 → 170 of 255 — and every one of them is a 2D screen. The 3D world is drawn
into a render target that only the upscaler puts on screen, so it is the upscaler's
absence that is black.
What the title does
title+0x7e93f0is the upscaler picker: it returns 6, the title's own upscaler,except on Series S, where a flag makes it return 7, the console's AMD FidelityFX
(
amd_fidelityfx_upscaler_xbox.dll). The render scale and the whole post chain followfrom that choice (
resolution.rsdocuments both paths). On Series S the title thereforeasks for FidelityFX, gets a console DLL we do not implement, and its passes draw nothing.
That is why this symptom is tied to the profile and not to the card:
VICTORY_UPSCALER=6Four machines, three generations, one variable: the profile. Upstream issue #92 asks the
same thing from the other end ("enable the FSR on series S, black screen should
disappear"), and a reporter there turned FSR on and still had black, which fits: it is not
FSR being off, it is FidelityFX's console upscaler being the path taken.
The fix
Series S now picks the title's own upscaler unless told otherwise
(
apps/victory/src/run.rs,upscaler_default, and the same inrun.sh):An explicit
VICTORY_UPSCALERstill wins, andVICTORY_FSR_4Kis left alone — that pathneeds the picker to return 7, because there FidelityFX's PC build (
./setup.sh fsr4)does the work through
victory-hle's FidelityFX module instead of the console DLL.Verified here
upscaler picker (returns 6) … Done, and the run says so.amd_fidelityfx_upscaler_xbox.dllno longer appears in the log at all (0 occurrences,against a refusal, a load and 79 host bindings without the fix).
What is not verified on this machine is the world itself: every run here dies before
it (Update 14), so the confirmation that the world draws with this setting comes from the
reporters above — including one on the same card family (RX 7900 XTX, Mesa RADV 26.3.1
with this repo's
mesa.patch, Proton, series S at 1920x1080).Why FidelityFX's console upscaler draws nothing (not chased)
Its 79 imports bind to host D3D12, so the DLL's own code runs and does its dispatches; it
is the result that never appears. Candidates, in the order worth checking: the DCC
(color-compression) options in the console's resource descriptions — the fork already
stubs
CreateCommittedResourceXat device slot 0x260 for exactly this DLL, noting "itsdescription is PC's plus DCC options, which we have no use for"; the jitter/phase-count
handshake; and the console's own output surface semantics.
./setup.sh fsr4plusVICTORY_FSR_4K=<profile>is the working alternative today (host FSR 4.1 at 4K), and itis the path upstream issue #92 is really asking for.
Update 14 — the device lost at ~60 s is RAM, and the numbers that say so
Every Series S run on this machine, with the black-scene fix in place, ends the same way
about 3,000 frames (≈60 s) after the title starts:
Measured at 100 ms resolution (the 2 s sampling of Update 11 missed the dip)
The kernel fails a small allocation while the card has 13 GB free, because the host
has 130 MB. The title's 7.8 GB is host-visible graphics memory: pinned, and not
swappable, so neither zram nor the 17 GB of disk swap can help with any of it.
What was tried against it, and what each measurement showed
VICTORY_UM_VRAM_MB4062 MBVICTORY_PAGES=0.pso, 99,230 pipelines)ttm.pages_limitraised 2,034,833 → 3,145,728 pages (7.9 → 12 GiB) at runtime-ENOMEMis not the TTM page limitVICTORY_CONSOLE_MB=6144(the figureXMemand the adapter description give)So the aperture and the knobs are not the constraint: 16 GB of RAM is. Note that
mem_info_gtt_total(7,948 MB) is exactlyttm.pages_limit× 4 KiB, and the run's GTTreaches 7,948 MB, which is why it looked like an aperture limit — but raising the limit
did not move the failure, and
MemAvailablesays the machine is empty at that moment.Correction to Update 12
Update 12 claimed the card window decides how much the host must back, from a run at
4,096 MB that was watched for 303 frames and then stopped by hand — before the point
where every other run dies. It does not: at 4,062 MB and at 8,176 MB the title's memory
and the failure are the same. The auto-half-window that Update 12 added to
run.shhasbeen removed; what is left there is a warning with the measured figure.
What would actually help, in order
avoidable — it is the console's unified memory, and on a PC it must exist in system
RAM to be host-visible.
A smaller title budget.Tested, no effect. The figure is the oneXMemreports (
limit_mb=7776) and the adapter description's, and both now readVICTORY_CONSOLE_MB(one helper,console::standard_memory). At 6,144 MB the title'smemory is byte for byte the same, which matches the note in
console.rs: the titlesizes nothing from that figure, it goes by the device type. The knob is kept because
it is the right place for a title that does read it.
that is the 1 GB the machine is missing.
Update 15 — zram, "VRAM as swap", the GTT aperture, auto-clicks, and five upstream issues
zram and the swap sysctls: measured, and what changed
The machine runs the Fedora/Nobara default (zram 8 G zstd at priority 100, 17.1 G
disk swap at −1,
vm.swappiness=100,vm.page-cluster=0), documented inNOTES-memory-zram.md. Measured during these runs, zram holds 830 MB of data in173 MB compressed — 0.2 GB of the 15.5 GB, i.e. it is not what starves the run. What
starves the run is the 7.8 GB of host-visible title memory the kernel cannot reclaim at
all (Update 14), so no swap policy can touch it.
Two changes are in
/etc/sysctl.d/90-victory-memory.conf(live and persisted):vm.watermark_scale_factorvm.min_free_kbytesvm.swappinessvm.page-clusterMeasured effect on the wall: none. With
min_free_kbytesat 512 MB, watermark 50 andswappiness 60 the run died at frame 2,711 instead of ~3,000, i.e. the same place. The
settings are kept at the milder values because they cost nothing and make a kernel
allocation at the margin likelier to succeed; they are not a fix, and this update says so
rather than implying otherwise.
"Can we use GPU memory as swap?"
No — not as swap, and not for this title. Concretely:
swaponover a GPU buffer, and the driver cannot place anonymous pages there (the CPUreaching them would be a fault through a mapping the kernel would have to create on
the swap path). Projects that do this (GPUswap, vramfs) are research prototypes that
keep a CPU-side copy and move pages over PCIe — which is exactly what this emulator
already does better, because it knows which pages the GPU is about to read.
onto the card within a window (
VICTORY_UM_VRAM_MB, default the card's size minus12 GiB) and are read from the card by the GPU at their own address — that is
page residency: 1,736 MB of 5,956 MB of paged title memory on the card. What itcannot do is unmap the rest: the title may touch any of its memory from the CPU at
any moment, so its pages must stay in the process's address space, and those pinned
mappings are the 7.8 GB. That is the real answer to "why can't the free VRAM carry it":
the GPU-visible copy is not a substitute for the CPU-visible one, it is an addition.
mem_info_gtt_totalis7,948 MB here (exactly
ttm.pages_limit× 4 KiB), and the run reaches it. Writingttm.pages_limitlive did not help (Update 14): the GART size is fixed at driverinit, so it takes the boot parameters. Upstream issue #54 reports the same lever
working:
amdgpu.gttsize=12288 ttm.pages_limit=3145728took that machine to the 3Dintro cinematic before the black world (Update 13's cause) stopped it. Worth doing on
this machine too, with the caveat that on 15.5 GB of RAM a bigger aperture only lets the
title pin more of the same RAM.
Auto-clicks for the menu that waits
VICTORY_AUTO_PRESS=<seconds>(AUTO_PRESS=1inrun.sh) sends a real left click thatoften, through
SendInput, while one of our windows is in front — the way the title'swindow messages and the cursor's own state both see it. Off unless asked for, and
documented as a menu-passer: in the world the same click is a shot.
Verified:
auto press a left click every 1 s while our window is in front (VICTORY_AUTO_PRESS)andVICTORY_AUTO_PRESS: clicks sent clicks=1in a live run.The five issues, and what each adds here
amdgpu.gttsize=12288 ttm.pages_limit=3145728) gets to the 3D intro; the world is then blackttm.pages_limitwrite does nothing, measured); the black world is Update 13deps/fsr4/(worked on an RX 6700 XT)./setup.sh fsr4+VICTORY_FSR_4K, which is the path where FidelityFX's PC build does the upscalingdraws=6drawscollapses, frame rate fine), i.e. a missing post/upscale pass rather than a slow or culled worldApplied after the above: the aperture on the kernel command line
grubby --update-kernel=ALL --args="amdgpu.gttsize=12288 ttm.pages_limit=3145728"is inevery GRUB entry of this machine (four of five; the fifth is not a Linux entry). It takes
effect on the next boot. Revert with the same command and
--remove-args.What it should change, if upstream issue #54's result carries over:
MemAvailableis nolonger forced to zero by the aperture at 7,948 MB, so the run gets past the point where
the kernel refuses a command submission, and the title reaches its 3D intro. What it
cannot do is make 15.5 GiB of RAM hold 12 GiB of pinned memory plus a desktop, so the
outcome to watch for is either further (good) or a clean out-of-memory kill in place of
a lost device (also better: the log says which allocation wanted what).
Check after the reboot, before starting the game:
Update 16 — confirmed: the world draws
The run after the reboot, with every fix above in place and no extra settings beyond
CONSOLE=series-s:window closed: suspending the title)int3amd_fidelityfx_upscaler_xbox.dllmem_info_gtt_totalWhat each fix contributed, measured
~3,000 frames with
Not enough memory for command submission; at 12,288 MB the sameconfiguration reaches the world. The title uses the room: 2,664 MB resident on the card
against 1,880 MB before, while the RAM side fell from 5,964 MB to 5,244 MB, and the card
still had 5,317 MB free at the end.
while the frame rate stays sane is the whole difference between the black scene and the
world: the geometry was already being submitted, its post chain was not producing an
image.
layout (Update 10).
The aperture is now checked, not just documented
run.shreadsmem_info_gtt_totalbefore a play run on a short machine and, when it isunder 10 GiB, says so and gives the command to fix it — because the one thing that mattered
here is not a setting in
run.confand cannot be discovered from the game's log. TheREADME.mdmemory section carries the same command.What is still open (all recorded above)
+0x2215c35, in its 2199 MB tile heap, before any of theabove is reached. Its pool is the next thing to measure; the output size is the first
lever to try (
VICTORY_OUTPUT=1920x1080 VICTORY_RENDER_SCALE=0.75).routes around it; making it work is what upstream issue #92 is really about, and
./setup.sh fsr4+VICTORY_FSR_4Kis the working alternative today.VICTORY_AUTO_PRESS, Update 15).(Summary, item 3).
@Quagmire28 on GitHub · 2026-12-02 18:11 UTC · original
test it with this here, maybe it work for you too, i get 24-32 FPS but sand is black and a little flicker, but can drive around city and "play" it
VICTORY_OUTPUT=3440x1440
VICTORY_FULLSCREEN=1
VICTORY_FULLSCREEN_RES=3440x1440
VICTORY_PILLARBOX=1
VICTORY_FSR_4K=balanced
VICTORY_FIDELITYFX_FRAMEGEN=1
VICTORY_LOD_SCALE=0.38
VICTORY_VEHICLE_LOD_BIAS=1.6
VICTORY_SMALL_CULL=3.5
VICTORY_KEEP_GPU_WRITTEN=1
VICTORY_PLACED_COPIED=1
VICTORY_POOL_MOVE=1
VICTORY_PAGE_ADAPTIVE=1
VICTORY_PAGE_PASS_MS=200
VICTORY_PAGE_MOVE_MB=64
KEEP_FREE=4096
VICTORY_BVH_BUILDER=0
VICTORY_PANEL=full
VICTORY_LOG=warn
@kuscutv-jpg on GitHub · 2026-12-02 23:21 UTC · original · edited 2026-12-02 23:28 UTC
I finally managed to get the game running on my RX 9070 XT.
My system:
What worked for me:
Increased
MemorySwapMax=2GtoMemorySwapMax=32Ginrun.sh.Initially launched the game with the following parameters:
After these changes, I was able to get past the black screen and GPU device removed (0x887A0005) errors and actually play the game.
I later removed VICTORY_UPSCALER=6 entirely, and the game continued to work without the black screen.
I also managed to run the game in Series X mode at 1440p with FSR 4 Quality, Frame Generation enabled, and Ray Tracing disabled.
Unfortunately, I still experience occasional stuttering, black textures, and eventually OOM crashes due to high system memory usage. Reducing the GTT limit to 10 GB caused the GPU device removed error to return, so I switched back to 12 GB.
The game is now playable, but memory usage remains the biggest issue on my 16 GB system.
Hopefully, this helps other RX 9070 XT users experiencing similar issues. Thanks for your work!
@deyvideguilherme on GitHub · 2026-12-03 11:20 UTC · original
I ran into the same 16 GiB
MemAvailable/ GTT pressure pattern on a similar Linux setup (Ryzen 7 5700X,RX 9060 XT 16 GiB, CachyOS,amdgpu.gttsize=12288 ttm.pages_limit=3145728,Proton Experimental).If you're still looking at 16 GiB headroom on
main:run.shalready lowers the defaultKEEP_FREEon 16 GiB hosts and warns on low GTT (#226).pool::STAGING:Pool::give()incrates/victory-gpu/src/pool.rswas holding returned upload-heap slices inrestingfor the full5000 msRESTwindow used byTEXTURES, even thoughStagingPieceis only dropped after its upload copy fence finishes. Dropping the staging quarantine to250 ms(leavingTEXTURESuntouched at5000 ms) cutpool::STAGINGon my 16 GiB machine from704 MiBp50 /1920 MiBmax down to320 MiBp50 /512 MiBmax across two runs, brought peak active GTT down from9062to~7663–7719 MiB, and keptMemAvailableabove1644 MiB(versus dipping down to595 MiBbefore).It's only been tested on my 16 GiB RADV/vkd3d-proton setup and targets GTT/host-RAM retention rather than FPS, but figured it was worth linking here while #279 is waiting for review.
@wrz1911 on GitHub · 2026-12-03 14:16 UTC · original
Thanks for the detailed write-up — the GART/aperture note helped us rule that out (we have GTT 15.9 GB, ttm.pages_limit 4070713). One more failure mode we hit on 16 GiB / 24-thread: warm pipeline preparation hangs above 12 jobs (workers stop progressing, 45 s "unresponsive" lines, 0 done, no dmesg GPU errors); 10-12 works. May be oversubscription (workers x ~2 threads). Details: #325.