Title traps at +0x29DEFB1: a 409-bucket table holding ONE entry (count=409, gen=30), with a payload verified against community hashes #3492

Open
opened 2026-11-27 09:44:42 +00:00 by 123ddd111111 · 2 comments
123ddd111111 commented 2026-11-27 09:44:42 +00:00 (Migrated from github.com)
Contributor

Imported from Marvisak/VIctory. Originally posted by 123ddd111111 on 2026-11-27T09:44:42Z.


Summary

Every build I try traps at the title's own int3 at +0x29DEFB1, 60-240 s after boot, while
the keyart / loading screen is up. The lookup table is built (count=409, gen=30) but holds
exactly one entry, so the key the title asks for is never found.

My payload and executable match the community's byte for byte, and the same build fails
identically on two different GPU stacks, so I do not think this is a data or GPU problem.
I would like to know what is supposed to fill that table, and whether one entry is expected
at that point.

Machine

GPU NVIDIA GeForce RTX 4060 Laptop 8 GB (driver 32.0.16.2140 / 621.40)
iGPU Intel UHD Graphics (also tested - same result, see below)
CPU / RAM i9-13900HX, 32 GB, pagefile 16 GB on E: (commit limit 47.7 GB, ~32 GB free)
OS Windows 11 25H2, 26200.9974 (was 23H2 22631 until I found a TargetReleaseVersion=23H2 policy pinning it)
Resizable BAR on (BAR1 = 8192 MiB)
Title game_scarlett_master.exe, SHA-256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993, build 930.048.020-vb_sub_story
Payload 208.62 GiB, 12 RPFs + pack/

The executable hash is the same e95020b2... quoted in #1063, so it is the same retail image.

Where it stops

0x80000003 at victory-image-<b99f876b...>.dll+0x29DEFB1
rax=0xffc00000  rcx=0x5b5eeffe  rdx=0x76  r13=0x4788
#1 +0x2225c03  #2 +0x21b7851  #3 +0x2afe5c3  #4 +0x54267e5  #5 +0x21b6cd5  #6 +0x81269b

which is the call 0x29DE7A0 / not eax / test eax,0x3FFFFF / jne / int3 shape described in
xcl-dev/xcl#337 and sub-north/xbox-hle-lab#26 (same 409-bucket, 12-byte-entry, -1-head table;
they report count=409 gen=0x1e, I see gen=30).

What the table looks like (measured, not inferred)

I added a probe to my own local loader build (crash.rs, logging only, no behaviour change)
that dumps the table when the trap fires:

base=0x7ffc...  buckets=0x...  entries=0x...  count=409  gen=30  rcx=0x5b5eeffe  rdx=0x76
entries_total=1  min_key=max_key=0xb407af85  has_rcx=false  has_118=false
keys=[b407af85]

and VICTORY_WATCH=9dd7c48,9dd7c58,9dd7c60,9dd7bd4 shows those four fields going
0 -> value once during startup and never changing again, i.e. the table is initialised and
then effectively never populated.

Why I do not think it is my payload

Nine archives verified with the Leonida tools against their published references:

  • levels.rpf census exact: 23,535 maps / 1,670,442 entities, 36/36 shards, census_exact
  • story000.rpf: 141,385 streams / 10,231,531,520 stored / 17,094,635,373 inflated - exact
  • story000_script.rpf: 2,632 / 20,408,094 / 74,729,504 - exact
  • shared_minigame000.rpf, story000_bvh4.rpf, story000_restofworld.rpf (Bink 7 / 120,187,756),
    data.rpf (coverage 87.9%), core_restofworld.rpf, core_restofworld001.rpf,
    core_licenses_data.rpf - all exact

No failed opens, no refused allocations, no 1455, in any log.

Why I do not think it is the GPU

Forcing the same build onto the Intel UHD iGPU (per-app GPU preference) gives the identical
trap at +0x29DEFB1 - different driver stack, different memory model.

What I tried, all identical

10 code states: Marvisak 940d32f; victory-fork c96b4f2, 52ac4ec; VI-BR-PORT latest;
Vice-Tay; soldsawn/victory-nvidia-8gb; Yaekai/victory-scarlett-3070 with its full
play-3070.ps1 switch set; a clean 52ac4ec tarball with only the three path variables set.

Also: Windows 11 23H2 -> 25H2, MSVC and GNU builds, 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), fresh and existing data_dir,
elevated and not.

VICTORY_DSTORAGE_TRACE=2 shows DirectStorage working normally right up to the trap
(10,138 enqueues / 10,004 submits; 2,232 requests in the last 12 s at 14.5 MB/s), and the
texture queue drains to 0 waiting before it dies.

My questions

  1. What fills that 409-bucket table? With count=409 and gen=30 at the trap, is
    entries_total=1 expected at that point, or should it hold ~hundreds of entries?
  2. What is key 0xb407af85? It is the only entry, and it is not a joaat of any of the
    ~300 path/stem strings my run opens.
  3. Has anyone reproduced +0x29DEFB1 on a payload that passes the Leonida checks and has the
    e95020b2... executable - i.e. is it ever seen with inputs that are provably clean?
  4. If there is a log line or probe you would like from a run that reaches the trap, tell me
    which and I will collect it; I can rebuild with diagnostics and add a probe.

I can attach a full VICTORY_LOG=info run log plus the probe output on request.

<!-- greyfinch-sync:Marvisak/VIctory:issue:6643929682 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3492). Originally posted by [123ddd111111](https://github.com/123ddd111111) on 2026-11-27T09:44:42Z. --- ## Summary Every build I try traps at the title's own `int3` at `+0x29DEFB1`, 60-240 s after boot, while the keyart / loading screen is up. The lookup table is built (`count=409`, `gen=30`) but holds **exactly one entry**, so the key the title asks for is never found. My payload and executable match the community's byte for byte, and the same build fails identically on two different GPU stacks, so I do not think this is a data or GPU problem. I would like to know what is supposed to fill that table, and whether one entry is expected at that point. ## Machine | | | |---|---| | GPU | NVIDIA GeForce RTX 4060 Laptop 8 GB (driver 32.0.16.2140 / 621.40) | | iGPU | Intel UHD Graphics (also tested - same result, see below) | | CPU / RAM | i9-13900HX, 32 GB, pagefile 16 GB on E: (commit limit 47.7 GB, ~32 GB free) | | OS | Windows 11 25H2, 26200.9974 (was 23H2 22631 until I found a `TargetReleaseVersion=23H2` policy pinning it) | | Resizable BAR | on (BAR1 = 8192 MiB) | | Title | `game_scarlett_master.exe`, **SHA-256 `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993`**, build 930.048.020-vb_sub_story | | Payload | 208.62 GiB, 12 RPFs + `pack/` | The executable hash is the same `e95020b2...` quoted in #1063, so it is the same retail image. ## Where it stops ``` 0x80000003 at victory-image-<b99f876b...>.dll+0x29DEFB1 rax=0xffc00000 rcx=0x5b5eeffe rdx=0x76 r13=0x4788 #1 +0x2225c03 #2 +0x21b7851 #3 +0x2afe5c3 #4 +0x54267e5 #5 +0x21b6cd5 #6 +0x81269b ``` which is the `call 0x29DE7A0 / not eax / test eax,0x3FFFFF / jne / int3` shape described in xcl-dev/xcl#337 and sub-north/xbox-hle-lab#26 (same 409-bucket, 12-byte-entry, `-1`-head table; they report `count=409 gen=0x1e`, I see `gen=30`). ## What the table looks like (measured, not inferred) I added a probe to my own local loader build (`crash.rs`, logging only, no behaviour change) that dumps the table when the trap fires: ``` base=0x7ffc... buckets=0x... entries=0x... count=409 gen=30 rcx=0x5b5eeffe rdx=0x76 entries_total=1 min_key=max_key=0xb407af85 has_rcx=false has_118=false keys=[b407af85] ``` and `VICTORY_WATCH=9dd7c48,9dd7c58,9dd7c60,9dd7bd4` shows those four fields going `0 -> value` once during startup and never changing again, i.e. the table is initialised and then effectively never populated. ## Why I do not think it is my payload Nine archives verified with the Leonida tools against their published references: - `levels.rpf` census exact: 23,535 maps / 1,670,442 entities, 36/36 shards, `census_exact` - `story000.rpf`: 141,385 streams / 10,231,531,520 stored / 17,094,635,373 inflated - exact - `story000_script.rpf`: 2,632 / 20,408,094 / 74,729,504 - exact - `shared_minigame000.rpf`, `story000_bvh4.rpf`, `story000_restofworld.rpf` (Bink 7 / 120,187,756), `data.rpf` (coverage 87.9%), `core_restofworld.rpf`, `core_restofworld001.rpf`, `core_licenses_data.rpf` - all exact No failed opens, no refused allocations, no `1455`, in any log. ## Why I do not think it is the GPU Forcing the same build onto the **Intel UHD iGPU** (per-app GPU preference) gives the identical trap at `+0x29DEFB1` - different driver stack, different memory model. ## What I tried, all identical 10 code states: Marvisak `940d32f`; victory-fork `c96b4f2`, `52ac4ec`; VI-BR-PORT latest; Vice-Tay; soldsawn/victory-nvidia-8gb; Yaekai/victory-scarlett-3070 with its full `play-3070.ps1` switch set; a clean `52ac4ec` tarball with only the three path variables set. Also: Windows 11 23H2 -> 25H2, MSVC and GNU builds, 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), fresh and existing `data_dir`, elevated and not. `VICTORY_DSTORAGE_TRACE=2` shows DirectStorage working normally right up to the trap (10,138 enqueues / 10,004 submits; 2,232 requests in the last 12 s at 14.5 MB/s), and the texture queue drains to 0 waiting before it dies. ## My questions 1. **What fills that 409-bucket table?** With `count=409` and `gen=30` at the trap, is `entries_total=1` expected at that point, or should it hold ~hundreds of entries? 2. **What is key `0xb407af85`?** It is the only entry, and it is not a joaat of any of the ~300 path/stem strings my run opens. 3. Has anyone reproduced `+0x29DEFB1` on a payload that passes the Leonida checks and has the `e95020b2...` executable - i.e. is it ever seen with inputs that are provably clean? 4. If there is a log line or probe you would like from a run that reaches the trap, tell me which and I will collect it; I can rebuild with diagnostics and add a probe. I can attach a full `VICTORY_LOG=info` run log plus the probe output on request.
123ddd111111 commented 2026-11-27 13:41:10 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by 123ddd111111 on 2026-11-27T13:41:10Z.


Correction: my payload is not clean — full hash check found three damaged files

I need to correct something I wrote earlier in this issue. I claimed the archives passed verification. That claim was wrong, and I found out why.

I ran a full SHA-256 verification of the whole package against the official file list game/xbox-1.0.2.1.json (108 files, 223.88 GB) rather than the content-metric checks I used before.

Result: 105 of 108 match. Three do not.

file size size ok sha256 vs official
pack/story000/data/ttdb/maps/ttdb_maps.ttpf 697,378,560 yes differs
pack/story000/data/ttdb/terrain/ttdb_terrain_image_based.ttpf 222,333,440 yes differs
pack/story000_restofworld/story000_restofworld.rpf 198,354,992 yes differs

All three have the correct size but wrong contents. The last one is the clearest: its first 16 MiB are zeros (first non-zero byte at exactly 16,777,216), so it has no 9FPR header at all, while its sibling core_restofworld.rpf opens with 9FPR as it should.

That is the signature of an interrupted download written with zeros, and the download log from the day I got the package shows exactly this: a sha1 不一致 was logged for the large file and the run then reported success anyway.

Why my earlier check missed it: I verified stream counts and Bink payload sizes, which only look at the parts that still parse. A zeroed header and zeroed regions inside a file pass that kind of check.

What this means for the report above: the +0x29DEFB1 single-entry table may well be a consequence of this, not of the layer — which is exactly the failure mode sub-north/xbox-hle-lab#26 describes, where replacing a torn archive cleared the same assert. I am re-downloading the three files now and will report whether the trap changes when the payload actually matches the manifest.

Everything else in the original report stands: the executable hash matches, the GPU/iGPU comparison holds, and the table probe reads what I said. What does not stand is the sentence "nine archives verified" — treat the payload as unverified until this re-download finishes.

I will post the result either way: trap gone, or trap unchanged with a verified-clean payload.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7219809774 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3492#issuecomment-7219809774). Originally posted by [123ddd111111](https://github.com/123ddd111111) on 2026-11-27T13:41:10Z. --- ## Correction: my payload is not clean — full hash check found three damaged files I need to correct something I wrote earlier in this issue. I claimed the archives passed verification. That claim was wrong, and I found out why. I ran a full SHA-256 verification of the whole package against the official file list `game/xbox-1.0.2.1.json` (108 files, 223.88 GB) rather than the content-metric checks I used before. **Result: 105 of 108 match. Three do not.** | file | size | size ok | sha256 vs official | |---|---|---|---| | `pack/story000/data/ttdb/maps/ttdb_maps.ttpf` | 697,378,560 | yes | differs | | `pack/story000/data/ttdb/terrain/ttdb_terrain_image_based.ttpf` | 222,333,440 | yes | differs | | `pack/story000_restofworld/story000_restofworld.rpf` | 198,354,992 | yes | differs | All three have the **correct size but wrong contents**. The last one is the clearest: its first **16 MiB are zeros** (first non-zero byte at exactly 16,777,216), so it has no `9FPR` header at all, while its sibling `core_restofworld.rpf` opens with `9FPR` as it should. That is the signature of an interrupted download written with zeros, and the download log from the day I got the package shows exactly this: a `sha1 不一致` was logged for the large file and the run then reported success anyway. **Why my earlier check missed it:** I verified stream counts and Bink payload sizes, which only look at the parts that still parse. A zeroed header and zeroed regions inside a file pass that kind of check. **What this means for the report above:** the `+0x29DEFB1` single-entry table may well be a consequence of this, not of the layer — which is exactly the failure mode `sub-north/xbox-hle-lab#26` describes, where replacing a torn archive cleared the same assert. I am re-downloading the three files now and will report whether the trap changes when the payload actually matches the manifest. Everything else in the original report stands: the executable hash matches, the GPU/iGPU comparison holds, and the table probe reads what I said. What does not stand is the sentence "nine archives verified" — treat the payload as unverified until this re-download finishes. I will post the result either way: trap gone, or trap unchanged with a verified-clean payload.
123ddd111111 commented 2026-11-27 15:55:36 +00:00 (Migrated from github.com)
Author
Contributor

Imported from Marvisak/VIctory. Originally posted by 123ddd111111 on 2026-11-27T15:55:36Z.


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:

before:  105 matched, 3 hash mismatch, 0 size mismatch, 0 missing
after:   108 matched, 0 mismatch   (223.88 GB re-verified)

The three, all with correct size and wrong contents:

file size note
pack/story000_restofworld/story000_restofworld.rpf 198,354,992 first 16 MiB zero, no 9FPR header at all
pack/story000/data/ttdb/maps/ttdb_maps.ttpf 697,378,560 zeroed regions
pack/story000/data/ttdb/terrain/ttdb_terrain_image_based.ttpf 222,333,440 zeroed regions

The 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 as sub-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:

crashes:            0   (was: 0x80000003 at +0x29DEFB1 within 60-240 s, on every build)
draws/frame:        2,000-5,600   (was 9-10)
textures uploaded:  11,000+ (4.9 GB) (was stuck near 1,800)
state:              in the world, rendering the prison scene, subtitles and interaction prompts working

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.5 the 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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7222647742 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/issues/3492#issuecomment-7222647742). Originally posted by [123ddd111111](https://github.com/123ddd111111) on 2026-11-27T15:55:36Z. --- ## 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: ``` before: 105 matched, 3 hash mismatch, 0 size mismatch, 0 missing after: 108 matched, 0 mismatch (223.88 GB re-verified) ``` The three, all with correct size and wrong contents: | file | size | note | |---|---|---| | `pack/story000_restofworld/story000_restofworld.rpf` | 198,354,992 | first **16 MiB zero**, no `9FPR` header at all | | `pack/story000/data/ttdb/maps/ttdb_maps.ttpf` | 697,378,560 | zeroed regions | | `pack/story000/data/ttdb/terrain/ttdb_terrain_image_based.ttpf` | 222,333,440 | zeroed regions | The 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 as `sub-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:** ``` crashes: 0 (was: 0x80000003 at +0x29DEFB1 within 60-240 s, on every build) draws/frame: 2,000-5,600 (was 9-10) textures uploaded: 11,000+ (4.9 GB) (was stuck near 1,800) state: in the world, rendering the prison scene, subtitles and interaction prompts working ``` 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.5` the 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.
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory#3492
No description provided.