Title traps at +0x29DEFB1 on an 8 GB NVIDIA laptop: the 409-bucket table holds only ONE entry (cross-post of VIctory#3492) #210

Closed
opened 2026-11-27 10:40:05 +00:00 by github-bot · 17 comments
Owner

@⁠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

0x80000003 at victory-image-<b99f876b…>.dll+0x29DEFB1
rax=0xffc00000  rcx=0x5b5eeffe  rdx=0x76

This is the call 0x29DE7A0 / not eax / test eax,0x3FFFFF / int3 shape: a 409-bucket chained table
(12-byte entries, -1 head) whose lookup missed. Measured with a logging-only probe in my own loader
build at the trap:

count=409  gen=30
entries_total=1   (single key 0xb407af85)
rcx=0x5b5eeffe and rdx=0x76 are both absent

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

Why I think it is not my payload or my GPU

  • exe SHA-256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993 — the value quoted in VIctory#1063
  • nine archives pass the Leonida tools: levels.rpf census exact (23,535 maps / 1,670,442 entities),
    story000.rpf 141,385 streams / 10,231,531,520 / 17,094,635,373 exact, plus story000_script,
    shared_minigame000, story000_bvh4, story000_restofworld, data.rpf, core_restofworld*,
    core_licenses_data — all exact
  • the identical trap appears with the build forced onto the Intel iGPU (different driver stack)
  • no failed opens, no refused allocations, no 1455, pagefile/commit fine

What I tried

Marvisak 940d32f; victory-fork c96b4f2 and 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. 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), fresh
and 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

  1. On a machine of yours that reaches the world, what does the same table read — is entries_total
    in the hundreds there, or also 1?
  2. If your launcher has an 8 GB NVIDIA preset that differs from the ones I listed, what is in it?
  3. Has anyone on an 8 GB NVIDIA laptop seen +0x29DEFB1 and cleared it?

Full report and logs: Marvisak/VIctory#3492

**@⁠123ddd111111** on GitHub · 2026-11-27 10:04 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210) 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 ``` 0x80000003 at victory-image-<b99f876b…>.dll+0x29DEFB1 rax=0xffc00000 rcx=0x5b5eeffe rdx=0x76 ``` This is the `call 0x29DE7A0 / not eax / test eax,0x3FFFFF / int3` shape: a 409-bucket chained table (12-byte entries, `-1` head) whose lookup missed. Measured with a logging-only probe in my own loader build at the trap: ``` count=409 gen=30 entries_total=1 (single key 0xb407af85) rcx=0x5b5eeffe and rdx=0x76 are both absent ``` `VICTORY_WATCH=9dd7c48,9dd7c58,9dd7c60,9dd7bd4` shows those fields going 0 -> value once and never changing again: the table is initialised and then effectively never populated. ## Why I think it is not my payload or my GPU - exe SHA-256 `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993` — the value quoted in VIctory#1063 - nine archives pass the Leonida tools: `levels.rpf` census exact (23,535 maps / 1,670,442 entities), `story000.rpf` 141,385 streams / 10,231,531,520 / 17,094,635,373 exact, plus `story000_script`, `shared_minigame000`, `story000_bvh4`, `story000_restofworld`, `data.rpf`, `core_restofworld*`, `core_licenses_data` — all exact - the identical trap appears with the build forced onto the **Intel iGPU** (different driver stack) - no failed opens, no refused allocations, no `1455`, pagefile/commit fine ## What I tried Marvisak `940d32f`; victory-fork `c96b4f2` and `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. 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), fresh and 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 1. On a machine of yours that reaches the world, what does the same table read — is `entries_total` in the hundreds there, or also 1? 2. If your launcher has an 8 GB NVIDIA preset that differs from the ones I listed, what is in it? 3. Has anyone on an 8 GB NVIDIA laptop seen `+0x29DEFB1` and cleared it? Full report and logs: Marvisak/VIctory#3492
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 10:40:05 +00:00
Author
Owner

@⁠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 measurements

The 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.

**@⁠TaynanGT** on GitHub · 2026-11-27 10:13 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7215631411) @⁠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 measurements](https://github.com/TaynanGT/Vice-Tay/blob/main/docs/laptop-16gb.md) The 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.
Author
Owner

@⁠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

  • Vice-Tay main (tarball pulled today), cargo build --release -p victory, MSVC, Windows 11 25H2 26200.9974
  • -Machine laptop settings, transcribed exactly (my machine has 32 GB, so the formula gives VICTORY_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-s
  • Machine: RTX 4060 Laptop 8 GB, i9-13900HX, 32 GB, BAR1 8192 MiB

Your patches are confirmed applied in the log:

working set ceiling 21144 MB: set
resolution: settings' output size applied (1920x1080 scene, 3840x2160 interface) at title+0x224352b: Done
resolution: the title's own upscaler's render scale (0.5) at title+0x28f1e78: Done
resolution: upscaler picker (returns 6) at title+0x7e93f0: Done

The result

0x80000003 at victory-image-<b99f876b…>.dll+0x29DEFB1
rax=0xffc00000  rcx=0x5b5eeffe  rdx=0x76(118)  r13=0x4788
#1 +0x2225c03  #2 +0x21b7851  #3 +0x2afe5c3  #4 +0x54267e5

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:

count=409  gen=30  entries_total=1  (single key 0xb407af85)

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

  • executable SHA-256 e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993 — the value quoted in VIctory#1063
  • nine archives pass the Leonida tools (levels.rpf census exact 23,535 maps / 1,670,442 entities; story000.rpf 141,385 streams exact; plus story000_script, shared_minigame000, story000_bvh4, story000_restofworld, data.rpf, core_restofworld*, core_licenses_data)
  • same trap with the build forced onto the Intel iGPU

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

**@⁠123ddd111111** on GitHub · 2026-11-27 11:53 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7217591630) 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 - Vice-Tay `main` (tarball pulled today), `cargo build --release -p victory`, MSVC, Windows 11 25H2 26200.9974 - `-Machine laptop` settings, transcribed exactly (my machine has 32 GB, so the formula gives `VICTORY_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-s` - Machine: RTX 4060 Laptop 8 GB, i9-13900HX, 32 GB, BAR1 8192 MiB Your patches are confirmed applied in the log: ``` working set ceiling 21144 MB: set resolution: settings' output size applied (1920x1080 scene, 3840x2160 interface) at title+0x224352b: Done resolution: the title's own upscaler's render scale (0.5) at title+0x28f1e78: Done resolution: upscaler picker (returns 6) at title+0x7e93f0: Done ``` ## The result ``` 0x80000003 at victory-image-<b99f876b…>.dll+0x29DEFB1 rax=0xffc00000 rcx=0x5b5eeffe rdx=0x76(118) r13=0x4788 #1 +0x2225c03 #2 +0x21b7851 #3 +0x2afe5c3 #4 +0x54267e5 ``` 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: ``` count=409 gen=30 entries_total=1 (single key 0xb407af85) ``` 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 - executable SHA-256 `e95020b2fa4a721db3df59fdecf75621730ac559d8835252f6c3b658d5a08993` — the value quoted in VIctory#1063 - nine archives pass the Leonida tools (`levels.rpf` census exact 23,535 maps / 1,670,442 entities; `story000.rpf` 141,385 streams exact; plus story000_script, shared_minigame000, story000_bvh4, story000_restofworld, data.rpf, core_restofworld*, core_licenses_data) - same trap with the build forced onto the Intel iGPU ## 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
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 11:58 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7217684355) @⁠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.
Author
Owner

@⁠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, -1 head), and print the totals. Read-only: no allocation, no writes to title memory, no behaviour change.

// call once, after the title image is mapped (e.g. next to "title dll <name> at <base>")
// base = the title image's loaded address; offsets are relative to it, so this
// works on any build of the same executable.
const BUCKETS: usize = 0x9dd7c58; // u64 -> u32 heads
const ENTRIES: usize = 0x9dd7c48; // u64 -> 12-byte { key: u32, value: u32, next: u32 }
const COUNT:   usize = 0x9dd7c60; // u32  -> bucket count (409 here)
const GEN:     usize = 0x9dd7bd4; // u32

std::thread::spawn(move || loop {
    std::thread::sleep(std::time::Duration::from_secs(5));
    let r = || unsafe {
        (
            *((base + BUCKETS) as *const u64) as usize,
            *((base + ENTRIES) as *const u64) as usize,
            *((base + COUNT) as *const u32) as usize,
            *((base + GEN) as *const u32),
        )
    };
    let (buckets, entries, count, gen) = r();
    if buckets == 0 || entries == 0 || count == 0 || count > 1_000_000 { continue; }
    let mut total = 0usize;
    for i in 0..count {
        let mut next = unsafe { *((buckets + i * 4) as *const u32) };
        let mut guard = 0;
        while next != 0xffff_ffff && guard < 100_000 {
            total += 1;
            next = unsafe { *((entries + next as usize * 12 + 8) as *const u32) };
            guard += 1;
        }
    }
    eprintln!("DSH probe: count={count} gen={gen} buckets={buckets:#x} entries={entries:#x} entries_total={total}");
});

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_total climbs 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.

**@⁠123ddd111111** on GitHub · 2026-11-27 12:00 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7217728597) 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, `-1` head), and print the totals. Read-only: no allocation, no writes to title memory, no behaviour change. ```rust // call once, after the title image is mapped (e.g. next to "title dll <name> at <base>") // base = the title image's loaded address; offsets are relative to it, so this // works on any build of the same executable. const BUCKETS: usize = 0x9dd7c58; // u64 -> u32 heads const ENTRIES: usize = 0x9dd7c48; // u64 -> 12-byte { key: u32, value: u32, next: u32 } const COUNT: usize = 0x9dd7c60; // u32 -> bucket count (409 here) const GEN: usize = 0x9dd7bd4; // u32 std::thread::spawn(move || loop { std::thread::sleep(std::time::Duration::from_secs(5)); let r = || unsafe { ( *((base + BUCKETS) as *const u64) as usize, *((base + ENTRIES) as *const u64) as usize, *((base + COUNT) as *const u32) as usize, *((base + GEN) as *const u32), ) }; let (buckets, entries, count, gen) = r(); if buckets == 0 || entries == 0 || count == 0 || count > 1_000_000 { continue; } let mut total = 0usize; for i in 0..count { let mut next = unsafe { *((buckets + i * 4) as *const u32) }; let mut guard = 0; while next != 0xffff_ffff && guard < 100_000 { total += 1; next = unsafe { *((entries + next as usize * 12 + 8) as *const u32) }; guard += 1; } } eprintln!("DSH probe: count={count} gen={gen} buckets={buckets:#x} entries={entries:#x} entries_total={total}"); }); ``` **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_total` climbs 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.
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:03 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7217788856) @⁠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.
Author
Owner

@⁠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:

  • a branch and commit (or a patch), on top of main as it is today
  • instrumented at the boundary you consider stable — you pick the point, since a boundary I choose is exactly the thing you just objected to
  • printing only what you want compared, in whatever format you want to read

I 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 laptop settings already applied and confirmed in the log
  • my payload passes the checks in #3492 (e95020b2… executable, nine archives exact)
  • this machine reaches the trap on every build I have tried, so anything you instrument at that boundary will fire within one run
  • if you want the same run at a different console profile or resolution, say which and I will run that instead

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.

**@⁠123ddd111111** on GitHub · 2026-11-27 12:07 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7217866167) 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: - a branch and commit (or a patch), on top of `main` as it is today - instrumented at the boundary you consider stable — you pick the point, since a boundary I choose is exactly the thing you just objected to - printing only what you want compared, in whatever format you want to read I 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 laptop` settings already applied and confirmed in the log - my payload passes the checks in #3492 (`e95020b2…` executable, nine archives exact) - this machine reaches the trap on every build I have tried, so anything you instrument at that boundary will fire within one run - if you want the same run at a different console profile or resolution, say which and I will run that instead 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.
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:13 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7217986942) @⁠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.
Author
Owner

@⁠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 laptop transcribed 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,9dd7bd4 already 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.

**@⁠123ddd111111** on GitHub · 2026-11-27 12:15 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7218022622) 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 laptop` transcribed 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,9dd7bd4` already 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.
Author
Owner

@⁠TaynanGT on GitHub · 2026-11-27 12:23 UTC · original

@⁠123ddd111111 The streaming report is ready in #252 at f4f3c35, based on 369f940. Run .\scripts\measure-frames.ps1 -Path 'path-to-run.log' -TextureProgress | ConvertTo-Csv -NoTypeInformation on 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.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:23 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7218183647) @⁠123ddd111111 The [streaming report is ready in #252](https://git.gtahub.st/github/TaynanGT--Vice-Tay/pulls/252) at `f4f3c35`, based on `369f940`. Run `.\scripts\measure-frames.ps1 -Path 'path-to-run.log' -TextureProgress | ConvertTo-Csv -NoTypeInformation` on 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.
Author
Owner

@⁠123ddd111111 on GitHub · 2026-11-27 12:25 UTC · original

Ran measure-frames.ps1 -TextureProgress from #252 on the log I already had (PowerShell 5.1, unmodified). The three points you asked for, unedited:

"TimestampUtc","DrawsPerFrame","UploadedTextures","UploadedMiB","WaitingTextures","PassedUnmapped"
"2026-11-27T11:40:18.0946800Z","1","615","181","484","0"
"2026-11-27T11:40:23.2276690Z","10","616","181","485","0"
"2026-11-27T11:40:28.2939760Z","10","616","181","485","0"
"2026-11-27T11:40:33.3608030Z","10","616","181","435","0"
"2026-11-27T11:40:38.4604160Z","10","616","181","0","0"
"2026-11-27T11:40:43.5601930Z","10","616","181","0","0"
"2026-11-27T11:40:48.6601040Z","10","616","181","0","0"
"2026-11-27T11:40:53.7597130Z","10","616","181","0","0"
"2026-11-27T11:40:58.8601140Z","4","617","181","1","0"
"2026-11-27T11:41:03.9929360Z","4","700","242","72","22"
"2026-11-27T11:41:09.0928440Z","4","700","242","72","22"
"2026-11-27T11:41:14.2501890Z","10","1876","306","1140","44"
"2026-11-27T11:41:19.3828820Z","10","1879","307","1083","48"

Reading of the three points, in case it is the shape you are after:

  • menu: 11:40:18, one draw, 615 textures, and the queue drains to 0 waiting by 11:40:38 and holds there for four samples. Nothing is slow at this point.
  • first streaming activity: 11:40:58 (uploaded moves off 616, waiting 1), then 11:41:03 where uploaded jumps to 700 and PassedUnmapped goes non-zero for the first time (22).
  • the stop: the last sample is 11:41:19 with 1876 -> 1879 uploaded, 1083 waiting and 48 unmapped; the trap is the next thing in the log (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 (UploadedTextures 700 -> 1876, WaitingTextures 72 -> 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.

DrawsPerFrame never leaves 1-10 in this run.

**@⁠123ddd111111** on GitHub · 2026-11-27 12:25 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7218233780) Ran `measure-frames.ps1 -TextureProgress` from #252 on the log I already had (PowerShell 5.1, unmodified). The three points you asked for, unedited: ```csv "TimestampUtc","DrawsPerFrame","UploadedTextures","UploadedMiB","WaitingTextures","PassedUnmapped" "2026-11-27T11:40:18.0946800Z","1","615","181","484","0" "2026-11-27T11:40:23.2276690Z","10","616","181","485","0" "2026-11-27T11:40:28.2939760Z","10","616","181","485","0" "2026-11-27T11:40:33.3608030Z","10","616","181","435","0" "2026-11-27T11:40:38.4604160Z","10","616","181","0","0" "2026-11-27T11:40:43.5601930Z","10","616","181","0","0" "2026-11-27T11:40:48.6601040Z","10","616","181","0","0" "2026-11-27T11:40:53.7597130Z","10","616","181","0","0" "2026-11-27T11:40:58.8601140Z","4","617","181","1","0" "2026-11-27T11:41:03.9929360Z","4","700","242","72","22" "2026-11-27T11:41:09.0928440Z","4","700","242","72","22" "2026-11-27T11:41:14.2501890Z","10","1876","306","1140","44" "2026-11-27T11:41:19.3828820Z","10","1879","307","1083","48" ``` Reading of the three points, in case it is the shape you are after: - **menu**: 11:40:18, one draw, 615 textures, and the queue drains to 0 waiting by 11:40:38 and holds there for four samples. Nothing is slow at this point. - **first streaming activity**: 11:40:58 (uploaded moves off 616, waiting 1), then 11:41:03 where uploaded jumps to 700 and `PassedUnmapped` goes non-zero for the first time (22). - **the stop**: the last sample is 11:41:19 with 1876 -> 1879 uploaded, 1083 waiting and 48 unmapped; the trap is the next thing in the log (`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 (`UploadedTextures` 700 -> 1876, `WaitingTextures` 72 -> 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. `DrawsPerFrame` never leaves 1-10 in this run.
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:32 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7218361344) @⁠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.
Author
Owner

@⁠123ddd111111 on GitHub · 2026-11-27 12:39 UTC · original

Here is the stable snapshot point, measured rather than proposed. I built the diag profile (cargo build --profile diag -p victory --features diagnostics) and ran the same frozen Series S + laptop configuration with VICTORY_WATCH=9dd7c48,9dd7c4c,9dd7c58,9dd7c5c,9dd7c60,9dd7bd4. VICTORY_WATCH polls 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:

VIctory: title+0x9dd7c48 = 0x2e03eb0     ; entries  (low half; 0x9dd7c4c = 0x5 is the high half)
VIctory: title+0x9dd7c4c = 0x5
VIctory: title+0x9dd7c58 = 0x2e03830     ; buckets  (low half; 0x9dd7c5c = 0x5 is the high half)
VIctory: title+0x9dd7c5c = 0x5
VIctory: title+0x9dd7c60 = 0x199         ; count = 409
VIctory: title+0x9dd7bd4 = 0x1e          ; gen = 30

When it happens, from the timestamped lines either side of those six:

2026-11-27T12:36:35.609500Z  INFO victory_hle::modules::files: virtual drive drive=Z root=...
VIctory: title+0x9dd7c48 = 0x2e03eb0      <- the six lines are here
2026-11-27T12:36:35.667563Z  INFO victory_hle::modules::display: HDR mode: disabled (SDR presentation) preference=0
2026-11-27T12:36:35.729170Z  INFO victory_gpu::device: D3D12.X device version=0x20004

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 only entries_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_WATCH already 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.

**@⁠123ddd111111** on GitHub · 2026-11-27 12:39 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7218516860) Here is the stable snapshot point, measured rather than proposed. I built the `diag` profile (`cargo build --profile diag -p victory --features diagnostics`) and ran the same frozen Series S + laptop configuration with `VICTORY_WATCH=9dd7c48,9dd7c4c,9dd7c58,9dd7c5c,9dd7c60,9dd7bd4`. `VICTORY_WATCH` polls 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: ``` VIctory: title+0x9dd7c48 = 0x2e03eb0 ; entries (low half; 0x9dd7c4c = 0x5 is the high half) VIctory: title+0x9dd7c4c = 0x5 VIctory: title+0x9dd7c58 = 0x2e03830 ; buckets (low half; 0x9dd7c5c = 0x5 is the high half) VIctory: title+0x9dd7c5c = 0x5 VIctory: title+0x9dd7c60 = 0x199 ; count = 409 VIctory: title+0x9dd7bd4 = 0x1e ; gen = 30 ``` **When it happens**, from the timestamped lines either side of those six: ``` 2026-11-27T12:36:35.609500Z INFO victory_hle::modules::files: virtual drive drive=Z root=... VIctory: title+0x9dd7c48 = 0x2e03eb0 <- the six lines are here 2026-11-27T12:36:35.667563Z INFO victory_hle::modules::display: HDR mode: disabled (SDR presentation) preference=0 2026-11-27T12:36:35.729170Z INFO victory_gpu::device: D3D12.X device version=0x20004 ``` 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 only `entries_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_WATCH` already 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.
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 12:47 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7218670128) @⁠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.
Author
Owner

@⁠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 six VICTORY_WATCH lines at the initialisation boundary and nothing else: count, gen and the two array bases, taken at the first observation where count != 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/gen pair from one load that reached the world. I will paste the pair here as soon as I have it.

**@⁠123ddd111111** on GitHub · 2026-11-27 12:59 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7218923075) 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 six `VICTORY_WATCH` lines at the initialisation boundary and nothing else: `count`, `gen` and the two array bases, taken at the first observation where `count != 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`/`gen` pair from one load that reached the world. I will paste the pair here as soon as I have it.
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 13:08 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7219118520) @⁠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.
Author
Owner

@⁠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:

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.

**@⁠123ddd111111** on GitHub · 2026-11-27 16:03 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7222795092) ## 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.
Author
Owner

@⁠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.

**@⁠TaynanGT** on GitHub · 2026-11-27 16:17 UTC · [original](https://github.com/TaynanGT/Vice-Tay/issues/210#issuecomment-7223079320) @⁠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.
This discussion has been locked. Commenting is limited to contributors.
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.

Dependencies

No dependencies set

Reference
github/TaynanGT--Vice-Tay#210
No description provided.