Title traps at +0x29DEFB1 on an 8 GB NVIDIA laptop: the 409-bucket table holds only ONE entry (cross-post of VIctory#3492) #210
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/TaynanGT--Vice-Tay#210
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?
@123ddd111111 on GitHub · 2026-11-27 10:04 UTC · original
Cross-posted from Marvisak/VIctory#3492 — posting here too because this is one of the few 8 GB NVIDIA projects still active, and my machine is an 8 GB NVIDIA card that never gets past a title assert.
The trap
This is the
call 0x29DE7A0 / not eax / test eax,0x3FFFFF / int3shape: a 409-bucket chained table(12-byte entries,
-1head) whose lookup missed. Measured with a logging-only probe in my own loaderbuild at the trap:
VICTORY_WATCH=9dd7c48,9dd7c58,9dd7c60,9dd7bd4shows those fields going 0 -> value once and neverchanging again: the table is initialised and then effectively never populated.
Why I think it is not my payload or my GPU
e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993— the value quoted in VIctory#1063levels.rpfcensus exact (23,535 maps / 1,670,442 entities),story000.rpf141,385 streams / 10,231,531,520 / 17,094,635,373 exact, plusstory000_script,shared_minigame000,story000_bvh4,story000_restofworld,data.rpf,core_restofworld*,core_licenses_data— all exact1455, pagefile/commit fineWhat I tried
Marvisak
940d32f; victory-forkc96b4f2and52ac4ec; VI-BR-PORT latest; Vice-Tay;soldsawn/victory-nvidia-8gb; Yaekai/victory-scarlett-3070 with its full
play-3070.ps1switch set;a clean
52ac4ectarball with only the three path variables. Windows 11 23H2 -> 25H2, MSVC and GNU,the real non-junction non-ASCII game path, 3840x2160 / 2560x1440 / 1920x1080 / 1280x720, series-x and
series-s, cold and warm shader cache (
shaders+warm: 23,000 shaders / 82,185 pipelines), freshand existing
data_dir, elevated and not. DirectStorage keeps working right up to the trap(10,138 enqueues / 10,004 submits, queue drains to 0 waiting).
What I would like to know
entries_totalin the hundreds there, or also 1?
+0x29DEFB1and cleared it?Full report and logs: Marvisak/VIctory#3492
@TaynanGT on GitHub · 2026-11-27 10:13 UTC · original
@123ddd111111 The closest Vice-Tay preset is
-Machine laptop -Console series-s. Select it explicitly. It was measured on an RTX 3050 Laptop GPU with 6 GB of VRAM and 16 GB of RAM, with two successful world loads. It uses direct file I/O, smaller in-place memory windows, on-demand texture levels and 1080p output rendered at half scale. Full preset and measurementsThe same breakpoint on Intel and NVIDIA makes the loader and table population the first comparison I’d make. A matched table count from a working run and a confirmed fix for this exact breakpoint on an 8 GB laptop are still pending. Which Vice-Tay revision did you try, and did you use the explicit laptop preset? That’ll give us a common baseline for the read-only table comparison.
@123ddd111111 on GitHub · 2026-11-27 11:53 UTC · original
Applied your laptop preset explicitly and measured it on my machine. It does not clear my blocker, and the difference is informative.
What I ran
main(tarball pulled today),cargo build --release -p victory, MSVC, Windows 11 25H2 26200.9974-Machine laptopsettings, transcribed exactly (my machine has 32 GB, so the formula givesVICTORY_WORKING_SET_MB = 32768 - 11624 = 21144):DSTORAGE_IO=direct,INPLACE=2,WINDOW_KB=64,WINDOW_TAILS=1,WINDOWS_BAR_MB=3072,CARD_BUFFERS_MB=256,LEVELS_ON_DEMAND=1,OUTPUT=1920x1080,UPSCALER=6,RENDER_SCALE=0.5, plus the base set (TEXTURE_NO_WAIT, RELAY=2, WIDE_BACK, CARD_REHASH_RUNS, JOIN_COPIES, INDIRECT_WINDOW, RELAY_COPY, CARD_STEPS=2, TITLE_PRIORITIES=0, SHOW_AFTER, AMBIENT=0.8, D3D12_DRED=light) and the NVIDIA thread block (THIN_THREADS=12, UNDER_THREADS=8, LAND_THREADS=6, MAP_THREADS=auto, PLACED_ORDER=1, THIN=1, JOIN_PARTS=8, UPLOAD_AHEAD=1, INDIRECT_BATCH=2),--console series-sYour patches are confirmed applied in the log:
The result
before any texture drain finishes: 1,879 textures uploaded, 1,083 waiting, draws stays at 10. Same address with a logging probe (in my own loader build) reading that table at the trap:
So on this machine the table is built and effectively never populated, which is not the RAM-exhaustion class your preset fixes — my 32 GB never runs out, and the trap is ~1-2 minutes in with 0 waiting textures at the menu before it.
Why I still think it is not my payload
e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993— the value quoted in VIctory#1063levels.rpfcensus exact 23,535 maps / 1,670,442 entities;story000.rpf141,385 streams exact; plus story000_script, shared_minigame000, story000_bvh4, story000_restofworld, data.rpf, core_restofworld*, core_licenses_data)What would settle it for me
On a machine of yours that passes the load, what does the same probe read for the total number of entries in that table at the trap point? If yours is also 1, this breakpoint is not what your preset changes and I should look elsewhere; if yours is in the hundreds, the population path itself is what differs and I can instrument it.
Full report + logs: Marvisak/VIctory#3492
@TaynanGT on GitHub · 2026-11-27 11:58 UTC · original
@123ddd111111 The same early stop with the laptop preset applied, and with both the NVIDIA and Intel adapters, gives us a useful control. I don’t have a corresponding table count from a successful load, so one entry on your machine is still the only measured value. The comparison needs the same executable and the same point in world initialisation on a working run. I’ll keep that separate from the laptop memory tuning.
@123ddd111111 on GitHub · 2026-11-27 12:00 UTC · original
That settles the framing: the table comparison is separate from the laptop tuning, and my machine's single entry is the only measurement we have. The problem with my probe is that it only prints when the trap fires, so a working run produces nothing. Here is the same read as a sampler instead, so a passing run yields the comparison.
What it does: every 5 s, read the four globals the lookup uses, walk the same 409-bucket table (12-byte entries,
-1head), and print the totals. Read-only: no allocation, no writes to title memory, no behaviour change.What I am asking for: on the RTX 3050 laptop that passed twice, run one load with this and paste three consecutive lines — one at the menu, one while the world is streaming, one in the world. If
entries_totalclimbs from 1 to hundreds there, the difference is when the table is filled and I can instrument that; if it stays at 1, the table is not what separates us and I stop pointing at it.My own sampler output, for the shape of the line, is in #3492.
@TaynanGT on GitHub · 2026-11-27 12:03 UTC · original
@123ddd111111 Menu, streaming and world are the right three checkpoints. The running sampler could mix table generations if the title replaces the arrays during a walk. A matched comparison needs the count from a stable loader boundary and should report only totals. I don’t have a corresponding run on the RTX 3050 laptop yet.
@123ddd111111 on GitHub · 2026-11-27 12:07 UTC · original
Agreed on the division of labour: you own the diagnosis and the instrumentation, I own the runs.
I am not proposing another probe of my own. Send the code instead:
mainas it is todayI will build and run it as-is and paste the output unedited. What I can offer on my side:
cargo build --release -p victory, MSVC, Windows 11 25H2 26200.9974, RTX 4060 Laptop 8 GB, i9-13900HX, 32 GB--console series-s, Series S profile, the-Machine laptopsettings already applied and confirmed in the loge95020b2…executable, nine archives exact)One practical note: if the instrumentation belongs behind a switch rather than unconditional, tell me the switch name and I will set it, so the number you get is from code you wrote rather than from settings of mine.
@TaynanGT on GitHub · 2026-11-27 12:13 UTC · original
@123ddd111111 I’ll take the instrumentation side. The loader’s own streaming counters are safe to compare and can show where the runs diverge. I still need a stable snapshot point for the title’s private table before I can give you a trustworthy entry count. Keep the current Series S profile and laptop settings for the comparison. I’ll post the exact revision and switch once the diagnostic is verified.
@123ddd111111 on GitHub · 2026-11-27 12:15 UTC · original
Understood on all three: you own the instrumentation, the streaming counters are the safe comparison, and the config stays as it is.
Config frozen until you name the revision:
--console series-s,-Machine laptoptranscribed exactly (working set 21144 on 32 GB,DSTORAGE_IO=direct,INPLACE=2,WINDOW_KB=64,WINDOW_TAILS=1,WINDOWS_BAR_MB=3072,CARD_BUFFERS_MB=256,LEVELS_ON_DEMAND=1,OUTPUT=1920x1080,UPSCALER=6,RENDER_SCALE=0.5, plus the base and NVIDIA thread blocks). I will not change anything else between now and then, so the only difference between my runs will be your commit.On the stable snapshot point you are missing, one candidate from this side, and it needs no new code:
the first moment the four globals become non-zero. They read 0 while the title is still starting and take their values once; after that neither the generation nor the array pointers move again for the rest of the run. That transition is a boundary the title defines itself, not a clock, and it exists on a passing machine as well — the trap does not.
VICTORY_WATCH=9dd7c48,9dd7c58,9dd7c60,9dd7bd4already prints it and only reads memory, so it changes nothing about the run.If that boundary is acceptable, tell me and I will send the exact log line and timestamp where it happens on this machine, so your count from the same boundary is comparable to mine. If you consider it unsafe too, say which boundary you want and I will instrument nothing — just run what you send.
@TaynanGT on GitHub · 2026-11-27 12:23 UTC · original
@123ddd111111 The streaming report is ready in #252 at
f4f3c35, based on369f940. Run.\scripts\measure-frames.ps1 -Path 'path-to-run.log' -TextureProgress | ConvertTo-Csv -NoTypeInformationon the log you already have. Please share the rows nearest the menu, the first streaming activity and the stop. It reports UTC time, draws, texture uploads, uploaded MiB, waiting textures and unmapped slots. I verified the text output in PowerShell 5.1 and 7. The title-table count still needs its own matched snapshot.@123ddd111111 on GitHub · 2026-11-27 12:25 UTC · original
Ran
measure-frames.ps1 -TextureProgressfrom #252 on the log I already had (PowerShell 5.1, unmodified). The three points you asked for, unedited:Reading of the three points, in case it is the shape you are after:
PassedUnmappedgoes non-zero for the first time (22).0x80000003 at +0x29DEFB1).What stands out to me, and is why I am sending all 13 rows rather than 3: the run is quiet for ~50 s with a drained queue, and the stop lands in the same 10 s window as the first burst (
UploadedTextures700 -> 1876,WaitingTextures72 -> 1140). So whatever the breakpoint depends on becomes true at the burst, not at the menu — if that matches where your passing runs diverge, the counters should show it.DrawsPerFramenever leaves 1-10 in this run.@TaynanGT on GitHub · 2026-11-27 12:32 UTC · original
@123ddd111111 The useful comparison window starts after the menu queue reaches zero, when it goes from 72 to 1,140 waiting and uploads rise from 700 to 1,876. Your frame reports are still at 4–10 draws. I’ll use that first streaming burst to align a passing run. This pins down when the stop occurs, while the table count still needs a stable snapshot.
@123ddd111111 on GitHub · 2026-11-27 12:39 UTC · original
Here is the stable snapshot point, measured rather than proposed. I built the
diagprofile (cargo build --profile diag -p victory --features diagnostics) and ran the same frozen Series S + laptop configuration withVICTORY_WATCH=9dd7c48,9dd7c4c,9dd7c58,9dd7c5c,9dd7c60,9dd7bd4.VICTORY_WATCHpolls the u32 at each address every 5 ms and prints only on change, so this is an event log, not a sample series.The whole table initialises in one event. The first and only lines it printed:
When it happens, from the timestamped lines either side of those six:
So on this machine the boundary is between the virtual-drive line and the HDR line, about 60 ms after the filesystem is mounted and before the D3D12 device exists — and after those six lines there is no further change to any of the four fields for the remaining ~60 s of the run, through the menu, through the streaming burst, until the trap.
That is the snapshot point I would use, and it needs no code from either of us: sample at the first observation where
count != 0, read the three arrays once, report onlyentries_total. It is defined by the title's own initialisation rather than by a clock, it exists identically on a passing machine, and the values it reads are constant from that moment on, so there is no generation to straddle.VICTORY_WATCHalready gives you the moment; a count taken there compares directly with mine.For the record, this run also reached the trap (
0x80000003 at +0x29DEFB1), so nothing about the boundary depends on the run failing.@TaynanGT on GitHub · 2026-11-27 12:47 UTC · original
@123ddd111111 Your log puts the initialization marker before HDR setup and D3D12 device creation. That gives us a timing reference distinct from the later streaming burst. The six values establish when those fields were first observed on this build. The actual table count on a successful load is still needed for the comparison.
@123ddd111111 on GitHub · 2026-11-27 12:59 UTC · original
Go ahead with whatever you are building; I am sourcing the count in parallel so you do not have to find a passing machine.
The closest match I have is
fxceless/victory-fork#535— RTX 4060 Laptop 8 GB, 32 GB, Windows 11 26300, reaches gameplay at 1.4–3.0 fps. Same GPU as mine, which makes it the comparison worth having. I have asked them for the sixVICTORY_WATCHlines at the initialisation boundary and nothing else:count,genand the two array bases, taken at the first observation wherecount != 0— the boundary from my previous comment.If you have a machine that passes and would rather the number came from it, say which and I will ask there instead, or drop the six lines yourself when you next run one.
Either way, the artifacts you should end up holding are: the burst window from the counter report, the initialisation boundary from the watch, and a
count/genpair from one load that reached the world. I will paste the pair here as soon as I have it.@TaynanGT on GitHub · 2026-11-27 13:08 UTC · original
@123ddd111111 The 4060 Laptop report gives us a closer hardware match. The count and generation pair identifies initialization, while the number of entries would answer the population question. The existing streaming rows already give us the burst window to align with a successful load. Let’s keep those two comparisons separate.
@123ddd111111 on GitHub · 2026-11-27 16:03 UTC · original
Resolved: the assert was a damaged payload, not the layer — details and what I got wrong
Closing this with the answer, because it changes the conclusion of the whole report.
Root cause: three files in my package were corrupt. Same sizes as the official build, wrong contents, zero-filled in places.
I verified every byte of the package against the official file list
game/xbox-1.0.2.1.json(108 files, 223.88 GB), hashing all of it rather than sampling:The three, all with correct size and wrong contents:
pack/story000_restofworld/story000_restofworld.rpf9FPRheader at allpack/story000/data/ttdb/maps/ttdb_maps.ttpfpack/story000/data/ttdb/terrain/ttdb_terrain_image_based.ttpfThe download log from the day I got the package shows it: a
sha1 不一致was logged for the large file and the run then reported success anyway. A bitmap-resumed download wrote zeros into blocks it had marked done.Why this produced exactly the symptom in the title of this issue: the archive could not be mounted, so the world's assets were never registered, so the 409-bucket table still held one entry when the title asked for a handle — and the title trapped on its own
int3. That is the same mechanism assub-north/xbox-hle-lab#26, where replacing a torn archive cleared the identical assert.After replacing the three files, on the same machine, same build, same settings:
So: not the GPU, not the driver, not the Windows build, not the shader cache, not the preset, and not ten different builds. My own report above pointed at all of those, and it was wrong about the payload because my earlier "archive verification" only counted streams and payload bytes, which a zero-filled header and zeroed regions pass.
One more thing worth recording, since it may bite others on 8 GB cards: with
VICTORY_RENDER_SCALE=0.5the run is stable; at 0.75 and at 1.0 it traps at a different place,0x80000003 at +0x2219650, while allocating the render target, with VRAM at about 7.0 of 8.2 GB. Frame time at 0.5 is ~310 ms, of which ~240 ms is on the GPU, with the card at ~30 W — memory-starved rather than compute-bound.Practical takeaway I would ask be added to the docs: verify the package against the manifest before reading any loader symptom, because a zero-filled file passes every stream-count and payload-size check. Everything I chased for a day was downstream of three bad files.
Thanks to everyone here for the time — the counter report and the snapshot boundary were good tools and are not wasted; they just were not the cause this time.
@TaynanGT on GitHub · 2026-11-27 16:17 UTC · original
@123ddd111111 Thanks for checking the files byte for byte and repeating the load on the same setup. I added the full-file hash check to Getting started in #318 so people can verify their files before changing graphics settings. I’m closing this as resolved based on your retest.