Ryzen 7 PRO 1700 (Zen 1): title asserts at +0x22106e0 (purecall) after ~8 frames, retry loop #52
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/readmet3xt-lab--foxhound#52
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@kowalndm on GitHub · 2026-11-29 17:37 UTC · original
Title runs ~8 frames, then asserts at
+0x22106e0(purecall stub) in a retry loop — Ryzen 7 PRO 1700 (Zen 1)System & Build
main(source ZIP 2026-11-26),cargo build --release --locked -p victory(Rust 1.98.1, clean)7952987A), blake3b99f876b, all 12.rpf+gameos.xvd+Catalog000.binpresent (~209 GB).--execute, no Streamline (RTX 3060 has no frame-gen anyway).What happens
The title boots, maps images, binds HLE, presents frames 1/2/4/8 (draws 0/4/6/12), then raises
0x80000003atvictory-image-b99f876b74d4a77f.dll+0x22106e0and dies (exit 3). With the title's own asserts stepped past, the same address is hit ~22 times/sec forever — a retry loop, not a one-shot crash.Crash report registers:
rax 0x908aa7a98 rbx 0xfc00 rcx 0x0 rdx 0x65b3cfea30 rsi 0x0 rdi 0x19a7 rsp 0x65b3cfe9d8 rbp 0x0.The failure, pinpointed (instruction by instruction)
+0x22106e0isint3; ret— the shared MSVC purecall stub (30 vtables in.rdatareference it). Full backtrace:Null-propagation chain, bottom-up:
+0x140104070:test rdx,rdx; je ret 0; mov rax,[rcx]; mov rax,[rax]; jmp rax— a virtual-call thunk that returns NULL because its arg2 (rdx, thethis) is null.+0x144fac3c0→ returns that null.+0x14247fc20(thunk,lock inc [cnt]; jmp +0x144fac3c0) → returns null.+0x247f772:mov rbp, rax→rbp = null.+0x247f80c:mov [rsp+0x40], rbp.+0x247f890:mov rbp, [rsp+0x40].+0x247f989:mov rcx, rbp→call +0x1402a34c0.+0x1402a34c0:jmp +0x1402a34d0; test rcx,rcx; je +0x22106e0; ret— the null-guard that jumps to the purecall stub.So: an empty table → a lookup returns a null object → the null flows up ~9 frames → a null-guard asserts. This is the same empty-registration family as upstream VIctory #2613, one level deeper than the "You must register '%s'" assert.
Why it's not the usual causes
clwb6 sites (emulated),clzero8 sites (native on Zen 1),monitorx/mwaitx2 sites (native).rdpru,wbnoinvd,rdpid: 0 real sites (byte-scan hits are false positives inside other instructions' displacements). No illegal-instruction crash — the title passes every emulated instruction and fails later, on a state assertion.cpuid+ 2xgetbv) is a standard AVX/AVX2/OSXSAVE/BMI routine; it does NOT check CLWB/RDPRU/RDPID, and the bits it checks (AVX2, FMA, BMI) are present on Zen 1.xbox.device_type=6,device.model=Xbox Series S— console detection is correct.Hardware note
The one thing that differs from the README's tested machine (Ryzen 7 7800X3D / RTX 4070 SUPER) is the CPU: Ryzen 7 PRO 1700 is Zen 1 (2017), two generations older than the title's Zen 2 target. CPUID: CLZERO yes, AVX2 yes, RDPRU no, CLWB no. The same
+0x22106e0loop reproduces identically on upstream VIctory and on VIPort, so it is the title's own init state, not a foxhound-specific bug.Is there a known init/registration path that depends on a Zen-2-only CPUID bit (or leaf-1 family/model) that foxhound/VIctory doesn't emulate, which would leave this table unpopulated on Zen 1?
@readmet3xt-lab on GitHub · 2026-11-30 02:02 UTC · original
Thanks for the detailed trace. That build is from 26 November's source. Please try v0.8.1 (https://github.com/readmet3xt-lab/foxhound/releases/tag/v0.8.1) or current main, and if the assert at the same place remains, attach that log.
@kowalndm on GitHub · 2026-11-30 13:12 UTC · original
Retested with current main — commit
7281175(2026-11-30, the v0.8.2-tier HEAD, newer than v0.8.1) — built from source withcargo build --release --locked -p victory.The assert at the same place remains. The title binds every HLE module (0 missing), emulates
Clwb(the only Zen-2 instruction this Zen 1 CPU lacks that the title actually uses), then the process terminates on an unhandled breakpoint at the identical address with the identical backtrace:+0x22106e0is the MSVC pure-virtual-call stub (int3; ret). Same frame chain as before: empty service/type registry → hash-table lookup returns null → null-guard (+0x1402a34c0) → purecall assert. Nothing in v0.8.1→main changed this boot path, so the release build behaves the same.Full log:
%LOCALAPPDATA%\victory\data\7952987A\crashes.log(appended; the block above is the newest report).@kowalndm on GitHub · 2026-11-30 19:30 UTC · original
Correction to my previous comment: the crash is NOT CPU-specific.
I reproduced it byte-identically on a second machine — Ryzen 5 4600H (Zen 2) + GTX 1650 4GB — with the same build. Same unhandled breakpoint at +0x22106e0, same 13-frame backtrace (#0 22106e0 ... #10 2215eca), and the same deterministic registers (rcx=0, rbx=0xfc00, rdi=0x19a7, r14=0xfcc7, rsi=0).
So the earlier "Clwb / Zen-1 CPU" framing was misleading — it reproduces on Zen 1 AND Zen 2 and is deterministic, not a CPU-timing race.
Deeper finding: the service registry is never populated (COUNT 0x983c0c8 and TABLE 0x983c0d0 stay 0 for the whole run) and the register-services entry (0x1da57e0) is never reached. The title's main thread blocks forever in WaitForSingleObject on a gate (0x21b8bd0 -> 0x258db70) that never gets signaled, so init never reaches the registration phase and a worker thread then hits the empty-registry purecall.
That points at an emulator HLE gap (the async init operation the title waits on is never completed), not the host CPU.
@kowalndm on GitHub · 2026-11-30 20:03 UTC · original
Root cause found: a missing file, not an HLE defect.
Enabling a file trace (GetFileAttributesW) shows the title's last file operation before the +0x22106e0 crash is:
GetFileAttributesW "G:.\data\data\effects\animimgfilters.zmt" -> 0xFFFFFFFF (missing)
The title loads its .rpf packages fine (levels / navmeshes / packs / textures / audio / script all present), then fails on this one .zmt effects manifest. This matches the pattern in fxceless/victory-fork#581: a missing required archive triggers the title's "required archive could not be opened" assert, and their halt sequence 0x1ce6e13 -> 0x2224517 -> 0x1d5cc69 -> 0x22106e0 ends at the same 0x22106e0. The string "animimgfilters" appears in no .rpf directory (checked common/data/anim/shaders/textures/script plus the first 1 GB TOC of levels/audio/movies/packs/navmeshes).
So the dump is missing animimgfilters.zmt; obtaining/extracting it should clear the halt. Not CPU-specific (reproduces identically on Zen 1 + RTX 3060 and Zen 2 + GTX 1650).
@kowalndm on GitHub · 2026-11-30 21:44 UTC · original
Correction to my previous comment: the missing animimgfilters.zmt was NOT the root cause.
I placed an empty file at Game\data\data\effects\animimgfilters.zmt (and data\effects) and re-ran with the file trace. Result: GetFileAttributesW on that path now succeeds (no longer 0xFFFFFFFF), yet the crash is byte-identical (+0x22106e0, same backtrace and register pattern).
So that .zmt access is a benign loose-override check — its absence is not what triggers the halt. Reverting to the pre-file-trace finding: the halt is a gate deadlock — the title's main thread waits forever on a gate (counter=1, handle 0x1308) that never signals; "register services" never fires; the service registry stays empty; a worker then hits the empty registry -> purecall at +0x22106e0.
@kowalndm on GitHub · 2026-11-30 21:56 UTC · original
Decisive result: the gate is a SYMPTOM, not the cause.
I added VICTORY_FORCE_GATE=1 (zeroes the gate counter at the acquire breakpoint 0x258db70). Forcing the gate open unblocked the title-main thread: it enumerated all 82 .zmt resources (including platform:/data/effects/animimgfilters.zmt — so that file EXISTS as a resource; the earlier loose GetFileAttributesW on it was a benign override check) and rendered frames, then crashed at a NEW point: 0xc0000005 (read 0x4, null) at +0x1b15b26, inside the AcquireLock proceed path.
register_services (0x1da57e0), phase handler F (0x1d7b220) and the registration flow (0x2bc2f80) still show 0 hits. So the init phase scheduler never dispatches the register-services phase; the registry stays empty and the title null-derefs / purecalls on uninitialized state.
The gate object is at obj+0x5a0 (counter [obj+0x608], event handle [obj+0x610]).
@readmet3xt-lab on GitHub · 2026-12-01 01:08 UTC · original
Hi, and thanks for the report.
This repository is public, and to keep the project safe nothing posted here may name or identify the game, or point to where copies come from. Could you please edit the following, removing:
<exe>and "the supported build" instead).Once it is edited, we clear the old revisions from the post's edit history on our side.
Technical details (GPU, settings, errors, the log with the game folder replaced) are very welcome. See the issue template for what helps. Thank you!