Assert on a table lookup that returned the miss sentinel (+0x29DEFB1), after the frontend renders #337

Closed
opened 2026-11-26 04:20:27 +00:00 by github-bot · 4 comments
Owner

@⁠sub-north on GitHub · 2026-11-23 23:49 UTC · original

Build 85bdf21 (head, 2026-11-23), static-CRT release. Windows 11, bare metal, i9-14900KF,
RTX 4070 Ti SUPER 16 GB, 32 GB RAM, network disabled, frame dump every 10th present. Retail
Scarlett title, full payload present (~208.6 GiB).

It gets further here than we expected: archive registration completes; 19,209 unique shaders and
274,766 submissions; the UI renders and several screens are navigable; the intro movie renders on
this build.

Where it stops

0x80000003 (int3) in title code at +0x29DEFB1, after 197.5 s / 923 presents; process exits
0x80000003.

Registers: rax=0xffc00000 rbx=0xa4 rcx=0x5b5eeffe rdx=0x76 rsi=0x20 r8=0xffffffff r9=0x8 r10=0x1d53ce80001 r11=0x1e1f408a501 r12=0x20 r13=0x4788.

Disassembly at the trap:

call 0x29DE7A0
not  eax
test eax, 0x3FFFFF
jne  +1
int3

0x29DE7A0 packs (gen & 0x3F) << 22 | (val & 0x3FFFFF) and returns 0x3FFFFF on a table miss.
rax=0xffc00000 is exactly ~0x3FFFFF, and rdx=0x76 (118) is the id searched. The guard is
therefore "lookup missed", and the missing id is 118. 0x3FFFFF does not appear in xcl's source,
so the table is title-internal.

How to reproduce

  1. Build 85bdf21: RUSTFLAGS=-C target-feature=+crt-static cargo build --release.
  2. Run the retail title with the full payload, network disabled (XCL_NETWORK=0), dumps every
    10 presents.
  3. Reach the frontend. Roughly three minutes in, it traps at the offset above.

Same offset and identical register values on every boot so far: 171.5 s, 184.9 s, 187.5 s, 197.5 s.

What we already tried

Ruled out locally: not the archive gate (the full payload passes it), not CLZERO (fixed), not the
stall watchdog, not memory pressure (fallback_pipelines 0, failed_pipelines 0), not device
removal. No xcl commit between the runs touches a handle/registry/lookup path.

Questions

(a) Has anyone seen +0x29DEFB1, or this sentinel-miss assert on a lookup?
(b) Is there a known path where an id near 118 is expected to be registered before the frontend
reaches its menu?
(c) Which log line or probe would you suggest to identify the subsystem that owns the table?

**@⁠sub-north** on GitHub · 2026-11-23 23:49 UTC · [original](https://github.com/xcl-dev/xcl/issues/337) Build `85bdf21` (head, 2026-11-23), static-CRT release. Windows 11, bare metal, i9-14900KF, RTX 4070 Ti SUPER 16 GB, 32 GB RAM, network disabled, frame dump every 10th present. Retail Scarlett title, full payload present (~208.6 GiB). It gets further here than we expected: archive registration completes; 19,209 unique shaders and 274,766 submissions; the UI renders and several screens are navigable; the intro movie renders on this build. ## Where it stops `0x80000003` (int3) in title code at `+0x29DEFB1`, after 197.5 s / 923 presents; process exits `0x80000003`. Registers: `rax=0xffc00000 rbx=0xa4 rcx=0x5b5eeffe rdx=0x76 rsi=0x20 r8=0xffffffff r9=0x8 r10=0x1d53ce80001 r11=0x1e1f408a501 r12=0x20 r13=0x4788`. Disassembly at the trap: ``` call 0x29DE7A0 not eax test eax, 0x3FFFFF jne +1 int3 ``` `0x29DE7A0` packs `(gen & 0x3F) << 22 | (val & 0x3FFFFF)` and returns `0x3FFFFF` on a table miss. `rax=0xffc00000` is exactly `~0x3FFFFF`, and `rdx=0x76` (118) is the id searched. The guard is therefore "lookup missed", and the missing id is 118. `0x3FFFFF` does not appear in xcl's source, so the table is title-internal. ## How to reproduce 1. Build `85bdf21`: `RUSTFLAGS=-C target-feature=+crt-static cargo build --release`. 2. Run the retail title with the full payload, network disabled (`XCL_NETWORK=0`), dumps every 10 presents. 3. Reach the frontend. Roughly three minutes in, it traps at the offset above. Same offset and identical register values on every boot so far: 171.5 s, 184.9 s, 187.5 s, 197.5 s. ## What we already tried Ruled out locally: not the archive gate (the full payload passes it), not CLZERO (fixed), not the stall watchdog, not memory pressure (`fallback_pipelines 0`, `failed_pipelines 0`), not device removal. No xcl commit between the runs touches a handle/registry/lookup path. ## Questions (a) Has anyone seen `+0x29DEFB1`, or this sentinel-miss assert on a lookup? (b) Is there a known path where an id near 118 is expected to be registered before the frontend reaches its menu? (c) Which log line or probe would you suggest to identify the subsystem that owns the table?
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:20:27 +00:00
Author
Owner

@⁠vladbondarenko97 on GitHub · 2026-11-24 00:27 UTC · original

Same class here, different site — maybe the two reports help each other.

On a complete package we hit the same shape: a 64-bit-keyed lookup that misses, then int3. In our case it is earlier than yours (one black present, then +0x1330a44), and the lookup returns 0 rather than a sentinel. The mechanism in the title, as far as I can read it:

mov  rax, [r12]                 ; interface holder
movabs rdx, 0xe0c12d7a5d4884c5  ; 64-bit interface key
call [rax+0x3f8]                ; resolve; 0x3f0 is the "do you have it?" bool variant
test rax, rax / test al, al
je   <int3>

The same movabs <64-bit> / call [vtable+0x3f8] shape appears 15 times in .text for three distinct keys (0xe0c12d7a5d4884c5, 0xba180afb232d1b4b, 0x33f70dfaf2c50989), and none of them are name hashes: I brute-forced FNV-1a/FNV-1 (64-bit), JOAAT64, Murmur64A and CRC64 over every printable string in the binary (137k strings, ~685k pairs) and got zero matches. So they look like genuine interface IDs, registered at runtime — which matches your finding that the registry table is title-internal.

Two things that may help with (c):

  1. Your 0x29DE7A0 packs (gen & 0x3F) << 22 | (val & 0x3FFFFF). With 0x3FFFFF being a miss sentinel inside a 22-bit field, that reads like an id-indexed registry (fw*Manager-style slot table) rather than a GUID map — so id 118 is probably an entry the title expects to have been created by another subsystem (e.g. a manager registered during frontend init), not something xcl fails to resolve.
  2. If your harness can set hardware breakpoints, break on the return of 0x29DE7A0 when eax == 0x3FFFFF and dump the first argument (rcx/rdx) plus [rbx] — that names the owner directly, without guessing. A read watchpoint on the table base would also show which writer ran last before the miss.

On the "does the frontend render" question: this is the first report I have seen that gets a navigable UI plus the intro movie out of xcl, and it is on NVIDIA — worth pinning to build/hardware in the issue, because on our 3080 Ti the same complete package dies long before your frontend (+0x1330a44, presents=1). If you are willing to share the exact xcl.toml (device_type / title_memory / pls_mb) and the build flags beyond +crt-static, I will try to reproduce your setup here and report the numbers.

AI-assisted (Claude Code CLI via a model proxy; logs and offsets only, no game data).

**@⁠vladbondarenko97** on GitHub · 2026-11-24 00:27 UTC · [original](https://github.com/xcl-dev/xcl/issues/337#issuecomment-7118081009) Same *class* here, different site — maybe the two reports help each other. On a complete package we hit the same shape: a 64-bit-keyed lookup that misses, then `int3`. In our case it is earlier than yours (one black present, then `+0x1330a44`), and the lookup returns 0 rather than a sentinel. The mechanism in the title, as far as I can read it: ``` mov rax, [r12] ; interface holder movabs rdx, 0xe0c12d7a5d4884c5 ; 64-bit interface key call [rax+0x3f8] ; resolve; 0x3f0 is the "do you have it?" bool variant test rax, rax / test al, al je <int3> ``` The same `movabs <64-bit> / call [vtable+0x3f8]` shape appears 15 times in `.text` for three distinct keys (`0xe0c12d7a5d4884c5`, `0xba180afb232d1b4b`, `0x33f70dfaf2c50989`), and none of them are name hashes: I brute-forced FNV-1a/FNV-1 (64-bit), JOAAT64, Murmur64A and CRC64 over every printable string in the binary (137k strings, ~685k pairs) and got zero matches. So they look like genuine interface IDs, registered at runtime — which matches your finding that the registry table is title-internal. Two things that may help with (c): 1. Your `0x29DE7A0` packs `(gen & 0x3F) << 22 | (val & 0x3FFFFF)`. With `0x3FFFFF` being a miss sentinel inside a 22-bit field, that reads like an id-indexed registry (`fw*Manager`-style slot table) rather than a GUID map — so id 118 is probably an entry the title expects to have been *created* by another subsystem (e.g. a manager registered during frontend init), not something xcl fails to resolve. 2. If your harness can set hardware breakpoints, break on the return of `0x29DE7A0` when `eax == 0x3FFFFF` and dump the first argument (`rcx`/`rdx`) plus `[rbx]` — that names the owner directly, without guessing. A read watchpoint on the table base would also show which writer ran last before the miss. On the "does the frontend render" question: this is the first report I have seen that gets a navigable UI plus the intro movie out of xcl, and it is on NVIDIA — worth pinning to build/hardware in the issue, because on our 3080 Ti the same complete package dies long before your frontend (`+0x1330a44`, presents=1). If you are willing to share the exact `xcl.toml` (device_type / title_memory / pls_mb) and the build flags beyond `+crt-static`, I will try to reproduce your setup here and report the numbers. AI-assisted (Claude Code CLI via a model proxy; logs and offsets only, no game data).
Author
Owner

@⁠sub-north on GitHub · 2026-11-24 00:29 UTC · original

Thanks - the interface-key pattern is a better explanation than ours, and the breakpoint suggestion is exactly what we will do next.

Our configuration (as requested)

Runtime config (the launcher's generated boot.json, unchanged from defaults except nothing):

device_type      anaconda
title_memory_mb  13824
pls_mb           2048
uma_mb           4095        (inert: clamped by the coherent window)
window           1280x720    (present size comes from the title's backbuffer: 3840x2160)
present          auto   raytracing auto   graphics d3d12   d3d12_adapter auto
log_level        info

Build: RUSTFLAGS="-C target-feature=+crt-static" cargo build --release, nothing else.
Hardware: i9-14900KF, RTX 4070 Ti SUPER 16 GB, 32 GB RAM, Windows 11.
Two environments: a separate install on its own partition, and a standard local user on a normal desktop session. Both reach the frontend; the bare-metal install is what produced our 923-present run.

Where we differ

  • Ours: 923 presents, intro movie renders, menus navigable, then 0x80000003 at +0x29DEFB1.
  • Yours: one black present, then +0x1330a44.
    That is a big gap for the same package. If +0x1330a44 is the same movabs / call [rax+0x3f8] shape, it fires far earlier than ours, which makes me suspect our run is taking a different path into the frontend rather than getting further.

What we already have for (c)

A vectored handler (first-chance, int3 is swallowed by the title's SEH otherwise) guarded on code == 0x80000003, the faulting address resolving to the title image, and RVA within 0x29DEFB1 +/- 0x10. It dumps the key, table count, generation, bucket head, the bucket chain and the first 16 entries, all VirtualQuery-guarded.

Given your suggestion I am extending it to also capture rcx/rdx at the call and to annotate the entry count, and to cover +0x1330a44 with the same handler so one build reports both sites if either fires here.

  • The registry table's bucket 118 is empty at the trap; earlier buckets resolve.
  • DirectStorage: E_DECOMPRESSION (0x89240030) and E_ZLIB_DATA (0x89240032); three 12 KiB requests refused at enqueue (empty file field) and one deterministic 2267-byte inflate failure on pack\story000\story000.rpf. BCPack refusals reach ~128 by 179 s.
  • XStore: unavailable (offline) then a benign XErrorReport 0x89240107 - a consequence of blocking the network, not a missing component.

I will post the probe output here once it fires, whichever of the two offsets it lands on.

**@⁠sub-north** on GitHub · 2026-11-24 00:29 UTC · [original](https://github.com/xcl-dev/xcl/issues/337#issuecomment-7118115497) Thanks - the interface-key pattern is a better explanation than ours, and the breakpoint suggestion is exactly what we will do next. ## Our configuration (as requested) Runtime config (the launcher's generated `boot.json`, unchanged from defaults except nothing): ``` device_type anaconda title_memory_mb 13824 pls_mb 2048 uma_mb 4095 (inert: clamped by the coherent window) window 1280x720 (present size comes from the title's backbuffer: 3840x2160) present auto raytracing auto graphics d3d12 d3d12_adapter auto log_level info ``` Build: `RUSTFLAGS="-C target-feature=+crt-static" cargo build --release`, nothing else. Hardware: i9-14900KF, RTX 4070 Ti SUPER 16 GB, 32 GB RAM, Windows 11. Two environments: a separate install on its own partition, and a standard local user on a normal desktop session. Both reach the frontend; the bare-metal install is what produced our 923-present run. ## Where we differ - Ours: 923 presents, intro movie renders, menus navigable, then `0x80000003` at `+0x29DEFB1`. - Yours: one black present, then `+0x1330a44`. That is a big gap for the same package. If `+0x1330a44` is the same `movabs / call [rax+0x3f8]` shape, it fires far earlier than ours, which makes me suspect our run is taking a different path into the frontend rather than getting further. ## What we already have for (c) A vectored handler (first-chance, `int3` is swallowed by the title's SEH otherwise) guarded on `code == 0x80000003`, the faulting address resolving to the title image, and RVA within `0x29DEFB1 +/- 0x10`. It dumps the key, table count, generation, bucket head, the bucket chain and the first 16 entries, all `VirtualQuery`-guarded. Given your suggestion I am extending it to also capture `rcx`/`rdx` at the call and to annotate the entry count, and to cover `+0x1330a44` with the same handler so one build reports both sites if either fires here. ## Our other observed failures, in case they are related - The registry table's bucket 118 is empty at the trap; earlier buckets resolve. - DirectStorage: `E_DECOMPRESSION` (`0x89240030`) and `E_ZLIB_DATA` (`0x89240032`); three 12 KiB requests refused at enqueue (empty file field) and one deterministic 2267-byte inflate failure on `pack\story000\story000.rpf`. BCPack refusals reach ~128 by 179 s. - `XStore: unavailable (offline)` then a benign `XErrorReport 0x89240107` - a consequence of blocking the network, not a missing component. I will post the probe output here once it fires, whichever of the two offsets it lands on.
Author
Owner

@⁠13hourstilliland on GitHub · 2026-11-24 01:36 UTC · original · edited 2026-11-24 01:52 UTC

Static read of the retail exe (1.0.2.1), RVAs only. No run. Observed unless marked.

  • The lookup at +0x29de7a0 is a chained hash table keyed by a u32: bucket = key % count (count at +0x9dd7c60), bucket heads are u32 at [+0x9dd7c58] with 0xffffffff = empty, entries at [+0x9dd7c48] are 12 bytes (+0 key, +4 value, +8 next). Hit returns (gen & 0x3f) << 22 | (value & 0x3fffff) with gen at +0x9dd7bd4; a miss returns 0x3fffff.
  • The key is not a constant. +0x2afeea0 copies a dword to global +0x697ee34 from [[+0xaae3b70]+0xc8] when it is non-zero, and the lookup uses that global. So the id (118 in the report) is whatever sits at obj+0xc8 at that moment. Inferred: the open question is who writes obj+0xc8 and who inserts 118.
  • Functions that reference the table globals (readers and writers not separated): +0x2994b10, +0x29de990, +0x29e79d0, +0x2f59b10, +0x362df20, +0x3e5ba20, +0x446c1e0, +0x4481650, +0x2f59600, +0x5b79600, +0x5cd9ba0, and +0x442e350 (initialises the base fields). +0x3e5ba20 is the biggest.
  • Re vladbondarenko97's 15 sites: the three 64-bit constants appear as movabs 22 times in .text; 12 are followed within 12 bytes by call [reg+0x3f8]. 0x6bef97fb at +0x29defbb is a 32-bit argument to a later call (+0x50ce340), so a different thing from those keys.
  • Suggested probe for the trap handler: dump [rdi] (the missing key), bucket count, the 12-byte entries, and the dword at [[+0xaae3b70]+0xc8]; then set a write watch on that dword to see who changes it before the miss.

AI use: Claude Code (Claude Opus 5.5) read the executable bytes with objdump and a small script; no game files attached.

**@⁠13hourstilliland** on GitHub · 2026-11-24 01:36 UTC · [original](https://github.com/xcl-dev/xcl/issues/337#issuecomment-7119264723) · edited 2026-11-24 01:52 UTC Static read of the retail exe (1.0.2.1), RVAs only. No run. Observed unless marked. - The lookup at +0x29de7a0 is a chained hash table keyed by a u32: bucket = key % count (count at +0x9dd7c60), bucket heads are u32 at [+0x9dd7c58] with 0xffffffff = empty, entries at [+0x9dd7c48] are 12 bytes (+0 key, +4 value, +8 next). Hit returns `(gen & 0x3f) << 22 | (value & 0x3fffff)` with gen at +0x9dd7bd4; a miss returns 0x3fffff. - The key is not a constant. +0x2afeea0 copies a dword to global +0x697ee34 from [[+0xaae3b70]+0xc8] when it is non-zero, and the lookup uses that global. So the id (118 in the report) is whatever sits at obj+0xc8 at that moment. Inferred: the open question is who writes obj+0xc8 and who inserts 118. - Functions that reference the table globals (readers and writers not separated): +0x2994b10, +0x29de990, +0x29e79d0, +0x2f59b10, +0x362df20, +0x3e5ba20, +0x446c1e0, +0x4481650, +0x2f59600, +0x5b79600, +0x5cd9ba0, and +0x442e350 (initialises the base fields). +0x3e5ba20 is the biggest. - Re vladbondarenko97's 15 sites: the three 64-bit constants appear as movabs 22 times in .text; 12 are followed within 12 bytes by `call [reg+0x3f8]`. 0x6bef97fb at +0x29defbb is a 32-bit argument to a later call (+0x50ce340), so a different thing from those keys. - Suggested probe for the trap handler: dump `[rdi]` (the missing key), bucket count, the 12-byte entries, and the dword at [[+0xaae3b70]+0xc8]; then set a write watch on that dword to see who changes it before the miss. AI use: Claude Code (Claude Opus 5.5) read the executable bytes with objdump and a small script; no game files attached.
Author
Owner

@⁠ivall on GitHub · 2026-11-24 11:06 UTC · original

Closing this older run report during issue triage. XCL has changed since the reported revision; the reported failure has not been independently verified as fixed. Please reopen with logs from current main if it still reproduces. Related world-loading reports are tracked in #505 and #232; a matching crash address alone does not establish the same cause.

**@⁠ivall** on GitHub · 2026-11-24 11:06 UTC · [original](https://github.com/xcl-dev/xcl/issues/337#issuecomment-7129675510) Closing this older run report during issue triage. XCL has changed since the reported revision; the reported failure has not been independently verified as fixed. Please reopen with logs from current main if it still reproduces. Related world-loading reports are tracked in #505 and #232; a matching crash address alone does not establish the same cause.
This discussion has been locked. Commenting is limited to contributors.
No description provided.