Linux/Wine bring-up: Game Init check waits for registry hash 0x02e801f9 that is never registered #408

Open
opened 2026-11-27 00:59:22 +00:00 by github-bot · 2 comments
Owner

@⁠mmmoxya-tech on GitHub · 2026-11-27 00:06 UTC · original

Environment: Arch Linux; Wine 11.22 and Proton (cachyos 11.0 and Valve Experimental, both with vkd3d-proton 3.1) on NVIDIA 620.73 (RTX 5060 Laptop, 8 GB; 15 GB RAM). Title built from codec-d/cool_fox f4b48ad with cargo-xwin (MSVC); Belobug 4eb6cfd behaves the same. Dump: GTA6.Xbox.v1.0.2.1 (game_scarlett_master.exe, blake3 b99f876b74d4a77f…, RETAIL, 930.048.020).

What works on Wine: PE map and HLE binding (0 missing), D3D12 device via vkd3d-proton, DXGI swapchain, two-plane composer, dstorage (5,592 requests, all completed in order), the title presents ~32 frames (~1 s, loading screen) — then:

Crash: worker-pool task (thread start +0x2215ea0) → predicate +0x145b97b20 → check +0x141dac680 → int3 at +0x1dac734 (0x80000003). WER context says Game Init, frame 0. Same address with no GPU at all (plain Wine where device creation fails), so this check is not GPU-output driven.

What the check does (static analysis; RVAs against image base 0x140000000):

  • Reads two baked u32 contexts at +0x63011dc = 0xc1fa30c2 and +0x63011e0 = 0x02e801f9.
  • For each it queries a hash registry: state machine object at *(singleton+0x2a0) (singleton = *(image+0x7f00510)), map at *(singleton+0x2b0): capacity at +0x30, table base at +0x38; lookup 0x14292cf90 (SIMD flat map, 0x110-byte buckets, 16-byte entries keyed by u32).
  • At fault time the table holds at least 9f62d512 aee74b7d a137ced5 c1fa30c2. 0x02e801f9 is absent; the lookup returns null, the entry checks fail, the title asserts.
  • Patching the int3 out once (runtime one-byte patch) lets the title run a bit further, then it null-dereferences at +0x58a8b2a (read [0x20]) in the same lookup path — the same missing object.

So some subsystem that should register an object under hash 0x02e801f9 by Game Init never does on Wine. We could not match the five u32s to common string hashes (FNV-1/1a, CRC32, djb2, sdbm, Java-style, Murmur3; ASCII, UTF-16 and lowercased).

Questions

  1. Which subsystem registers 0x02e801f9 (and the four keys above) — what is this check waiting for?
  2. Any Windows-only dependency in that init path we could shim (host service query, thread/affinity semantics, GPU readback timing)?

Happy to run any diagnostic build here and report back. The probe (VICTORY_SERVICE_PROBE) and the map patcher (VICTORY_MAP_PATCH) are in our fork mmmoxya-tech/cool_fox-linux, branch linux-root-signature-fixes.

For context, root signatures had to be ported for Wine first: Wine's d3dcompiler does not emit the RTS0 part into compiled shaders and vkd3d-proton refuses a shader blob handed to CreateRootSignature, so every creation now extracts RTS0 (or builds the composer/awake signatures from descriptors). That took refusals from 54–68 per run to 0, and the title now gets this far.

**@⁠mmmoxya-tech** on GitHub · 2026-11-27 00:06 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/408) **Environment**: Arch Linux; Wine 11.22 and Proton (cachyos 11.0 and Valve Experimental, both with vkd3d-proton 3.1) on NVIDIA 620.73 (RTX 5060 Laptop, 8 GB; 15 GB RAM). Title built from `codec-d/cool_fox` `f4b48ad` with cargo-xwin (MSVC); `Belobug` `4eb6cfd` behaves the same. Dump: GTA6.Xbox.v1.0.2.1 (`game_scarlett_master.exe`, blake3 `b99f876b74d4a77f…`, RETAIL, 930.048.020). **What works on Wine**: PE map and HLE binding (0 missing), D3D12 device via vkd3d-proton, DXGI swapchain, two-plane composer, dstorage (5,592 requests, all completed in order), the title presents ~32 frames (~1 s, loading screen) — then: **Crash**: worker-pool task (thread start `+0x2215ea0`) → predicate `+0x145b97b20` → check `+0x141dac680` → `int3` at `+0x1dac734` (0x80000003). WER context says Game Init, frame 0. Same address with no GPU at all (plain Wine where device creation fails), so this check is not GPU-output driven. **What the check does** (static analysis; RVAs against image base 0x140000000): - Reads two baked u32 contexts at `+0x63011dc` = `0xc1fa30c2` and `+0x63011e0` = `0x02e801f9`. - For each it queries a hash registry: state machine object at `*(singleton+0x2a0)` (singleton = `*(image+0x7f00510)`), map at `*(singleton+0x2b0)`: capacity at `+0x30`, table base at `+0x38`; lookup `0x14292cf90` (SIMD flat map, 0x110-byte buckets, 16-byte entries keyed by u32). - At fault time the table holds at least `9f62d512 aee74b7d a137ced5 c1fa30c2`. **`0x02e801f9` is absent**; the lookup returns null, the entry checks fail, the title asserts. - Patching the `int3` out once (runtime one-byte patch) lets the title run a bit further, then it null-dereferences at `+0x58a8b2a` (read `[0x20]`) in the same lookup path — the same missing object. So some subsystem that should register an object under hash `0x02e801f9` by Game Init never does on Wine. We could not match the five u32s to common string hashes (FNV-1/1a, CRC32, djb2, sdbm, Java-style, Murmur3; ASCII, UTF-16 and lowercased). **Questions** 1. Which subsystem registers `0x02e801f9` (and the four keys above) — what is this check waiting for? 2. Any Windows-only dependency in that init path we could shim (host service query, thread/affinity semantics, GPU readback timing)? Happy to run any diagnostic build here and report back. The probe (`VICTORY_SERVICE_PROBE`) and the map patcher (`VICTORY_MAP_PATCH`) are in our fork `mmmoxya-tech/cool_fox-linux`, branch `linux-root-signature-fixes`. For context, root signatures had to be ported for Wine first: Wine's d3dcompiler does not emit the `RTS0` part into compiled shaders and vkd3d-proton refuses a shader blob handed to `CreateRootSignature`, so every creation now extracts `RTS0` (or builds the composer/awake signatures from descriptors). That took refusals from 54–68 per run to 0, and the title now gets this far.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 00:59:22 +00:00
Author
Owner

@⁠mmmoxya-tech on GitHub · 2026-11-27 01:10 UTC · original

More eliminations since filing:

  • Upstream Marvisak/VIctory 940d32f (the build reported working under Proton on RADV in #19) shows the same assert (game+0x1dac734) here — so it is not a fork regression.
  • A working host device is not enough: with VK_ICD_FILENAMES on the Intel iGPU (ANV, vkd3d-proton 3.1) the device is created ('host D3D12 device ready', frame 1 presented) and the assert still fires — so it is not NVIDIA-specific either.
  • With no host device at all (plain Wine, d3d12 failing) it also fires — consistent with a CPU-side init gate, not GPU output.
  • Memory modes from #53/#69 do not change it: in-place (default), VICTORY_COPY_MEMORY=1, and VICTORY_COPY_MEMORY=1 VICTORY_SPARSE=0 all assert at the same place. WARP is not selectable here (DXGI does not mark it software).
  • The registry keys register very early: all four (9f62d512, aee74b7d, a137ced5, c1fa30c2) appear at 105–106 ms after title start, i.e. before the host D3D12 device exists (~350 ms). The awaited key 0x02e801f9 never appears in the whole run.
  • Same keys and same assert with series-s and series-x, and at 720p/1080p/4K reported display modes.

Looking for: what registers 0x02e801f9s entry around/after init, and which host/environment query could make that step conditional (Wine-on-AMD-Proton passes per #19/#105/#131). If a RADV+Proton run's first ~2 s of victory log could be compared with ours, the diverging init step should be visible.

**@⁠mmmoxya-tech** on GitHub · 2026-11-27 01:10 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/408#issuecomment-7207074709) More eliminations since filing: - Upstream Marvisak/VIctory `940d32f` (the build reported working under Proton on RADV in #19) shows the same assert (game+0x1dac734) here — so it is not a fork regression. - A working host device is not enough: with `VK_ICD_FILENAMES` on the Intel iGPU (ANV, vkd3d-proton 3.1) the device is created ('host D3D12 device ready', frame 1 presented) and the assert still fires — so it is not NVIDIA-specific either. - With no host device at all (plain Wine, d3d12 failing) it also fires — consistent with a CPU-side init gate, not GPU output. - Memory modes from #53/#69 do not change it: in-place (default), `VICTORY_COPY_MEMORY=1`, and `VICTORY_COPY_MEMORY=1 VICTORY_SPARSE=0` all assert at the same place. WARP is not selectable here (DXGI does not mark it software). - The registry keys register very early: all four (9f62d512, aee74b7d, a137ced5, c1fa30c2) appear at 105–106 ms after title start, i.e. before the host D3D12 device exists (~350 ms). The awaited key 0x02e801f9 never appears in the whole run. - Same keys and same assert with series-s and series-x, and at 720p/1080p/4K reported display modes. Looking for: what registers 0x02e801f9s entry around/after init, and which host/environment query could make that step conditional (Wine-on-AMD-Proton passes per #19/#105/#131). If a RADV+Proton run's first ~2 s of victory log could be compared with ours, the diverging init step should be visible.
Author
Owner

@⁠mmmoxya-tech on GitHub · 2026-11-27 01:30 UTC · original

More structure, in case it names the init step:

  • The four keys registered at ~105 ms behave like listener/condition registrations. The check at 0x1d4f770 (0xB6 bytes) is a plain hash-map probe: 'does *(*(singleton+0x2b0)+0x38) table contain key *(ctx)'. The events live in a static table at image+0x63011c0: {0xffffffffffffffff, a 16-byte GUID (dd9db122-ab5c-412b-4ca7-7fb39acfd898), u32 0x7daee74b, 0xc1fa30c2, 0x02e801f9, 0xdf7b0ec5, 0, 0, then a run of tiny state-predicate functors (0x293c700 → state in {2..5}, 0x293c720, 0x293c770 → state != 0, 0x293c790 → state >= 2, 0x293c7b0 → state in {8,9}, …)}.
  • The boot function at 0x21b6ab0 dispatches events 0x63011cc and 0x63011d4 with 'skip silently if no listener'. The waiter that asserts uses 0x63011dc (0xc1fa30c2 — registered) and 0x63011e0 (0x02e801f9 — never registered). (Under one instrumented build a later notify of 0xdf7b0ec5 called a null functor — those early keys are conditions, not callbacks.)
  • Additional eliminations since the last note: GE-Proton10-34's Wine (same assert), Valve Experimental, cachyos Proton; upstream Marvisak 940d32f; a working D3D12 device on Intel ANV as well as NVIDIA; WARP unselectable (DXGI doesn't mark it software); copy-memory / non-sparse; display mode, console profile, pipeline wait budgets.
  • Host pressure here is real: MemAvailable 3–6 GB, Committed_AS 53–61 GB vs CommitLimit 47 GB (32 G swapfile + 7.5 G zram on 15 GB RAM). A silently failed allocation during the 100 ms registrations would explain a missing 5th functor and why so many host-level variables don't matter; vm.overcommit_memory is 0 so it is possible but unproven from logs.

Question: in your mapping of these events, what is 0x63011e0 (0x02e801f9), and which component is supposed to register its functor by Game Init? Even a one-line answer ('the front-end readiness gate', 'network', 'save') would point the fix. Alternatively, the first ~2 s of a working RADV/Windows run's log would let us diff the init steps directly.

**@⁠mmmoxya-tech** on GitHub · 2026-11-27 01:30 UTC · [original](https://github.com/Belobug/VIctory-Belobug-AMD/issues/408#issuecomment-7207349060) More structure, in case it names the init step: - The four keys registered at ~105 ms behave like **listener/condition registrations**. The check at 0x1d4f770 (0xB6 bytes) is a plain hash-map probe: 'does *(\*(singleton+0x2b0)+0x38) table contain key *(ctx)'. The events live in a static table at image+0x63011c0: {0xffffffffffffffff, a 16-byte GUID (dd9db122-ab5c-412b-4ca7-7fb39acfd898), u32 0x7daee74b, 0xc1fa30c2, 0x02e801f9, 0xdf7b0ec5, 0, 0, then a run of tiny state-predicate functors (0x293c700 → state in {2..5}, 0x293c720, 0x293c770 → state != 0, 0x293c790 → state >= 2, 0x293c7b0 → state in {8,9}, …)}. - The boot function at 0x21b6ab0 dispatches events 0x63011cc and 0x63011d4 with 'skip silently if no listener'. The waiter that asserts uses 0x63011dc (0xc1fa30c2 — registered) and 0x63011e0 (0x02e801f9 — never registered). (Under one instrumented build a later notify of 0xdf7b0ec5 called a null functor — those early keys are conditions, not callbacks.) - Additional eliminations since the last note: GE-Proton10-34's Wine (same assert), Valve Experimental, cachyos Proton; upstream Marvisak 940d32f; a working D3D12 device on Intel ANV as well as NVIDIA; WARP unselectable (DXGI doesn't mark it software); copy-memory / non-sparse; display mode, console profile, pipeline wait budgets. - Host pressure here is real: MemAvailable 3–6 GB, Committed_AS 53–61 GB vs CommitLimit 47 GB (32 G swapfile + 7.5 G zram on 15 GB RAM). A silently failed allocation during the 100 ms registrations would explain a missing 5th functor and why so many host-level variables don't matter; vm.overcommit_memory is 0 so it is possible but unproven from logs. **Question**: in your mapping of these events, what is 0x63011e0 (0x02e801f9), and which component is supposed to register its functor by Game Init? Even a one-line answer ('the front-end readiness gate', 'network', 'save') would point the fix. Alternatively, the first ~2 s of a working RADV/Windows run's log would let us diff the init steps directly.
This discussion has been locked. Commenting is limited to contributors.
No description provided.