GTX 1050/Win10: title int3 at +0x1ce6e13 in System Init — service registration's sink lookup fails (earliest boot assert so far) #2613
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory#2613
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?
@kotekompotek on GitHub · 2026-11-25 16:49 UTC · original
Summary
victory run <exe> --executedies deterministically on the title's ownint3at+0x1ce6e13, ~1 s into "System Init" — right after DirectStorage opensG:\appdata0.rpfandG:\common.rpf, before any window. Reproduced on every boot (debug and diag builds).This is a new site: earlier than #8's
+0x2237178and #2013's+0x1330a44, but the same "service registry lookup / validation" family — see the decode below.Machine
game_scarlett_master.exe— blake3b99f876b…("Series 1.0.2.1"), 120,181,760 bytescargo builddebug +--profile diag --features diagnostics, both reproBoot log tail
Decode of the site (static, same exe as #630's map)
+0x1ce6df0is a validator: if both args non-null it requirescheck(rcx, rdx+0x60)to return true:check(+0x292d370, ~0x900 bytes) walks an array at[rdx+0x64..0x68](count+4, data+8) doing a broadcast-byte compare (vpbroadcastbof the constant byte at+0x61590a7=0x75) — a tag/table lookup that returns false when the entry is absent.Caller chain (from the crash backtrace, unwind is clean):
+0x5a3f200— service registration: stores the tagged service value atcontainer+0x2b0(+flag+0x2b8), callsvtable[8]()on two sink objects+0x2a0/+0x2a8, then tail-jumps into the validator withrcx=[container+0x2a8],rdx=[container+0x2b0].+0x293ef38— caller builds a small object around the global at+0x7bb4f48and calls+0x5a3f200.+0x7f00510.So: a service registers its tag, one sink's lookup table does not contain it, assert. Either the service the title just created is a different kind than the sink expects (our HLE answered an init call with a shell object), or a lookup table entry never got added.
What it is not
missing=0; Trap policy would log + abort, not int3 in title code)Context
+0x2237178(RTX 3080 Ti, same RVA under XCL)+0x1330a44(service lookup by tag returns false, world bootstrap)Happy to run diagnostics (
VICTORY_STACKS,VICTORY_WATCH,VICTORY_CRASH_SAVE) — note the crash precedes the 1 s mark so timed stack dumps miss it; a "stacks at first-chance" option would be the right knob for this phase.@kotekompotek on GitHub · 2026-11-25 17:40 UTC · original
Progress using the
VICTORY_STEP_OVERapproach from #2644 (applied locally on a diag build): the site+0x1ce6e13steps over cleanly and the run continues into a chain of furtherint3asserts:Then the first non-breakpoint failure:
0xc0000005write to0x0insideVCRUNTIME140memset, called from+0x5b29842— a growable-array helper that memsets[rsi+0x20](buffer == NULL) sized from the index the bounds gate just returned.The gate at
0x1d5cc60requires the incoming index> 0x3e7(≥1000) and returnsindex + 5; the caller at0x5b297f0then doesindex - 0x3e8to get a local slot. The index actually passed was 38 — so whatever should have been registered in the ≥1000 service namespace either was not registered or came back as a low/absent id. All five stepped asserts look like downstream checks of that one missing registration.Hardware: GTX 1050, driver 581.80 / i5-8300H, diag build off main + #2644's patch.
@kotekompotek on GitHub · 2026-11-25 17:43 UTC · original
Walked the chain further back. The stepped site
+0x2224517sits inside0x2224350, the init of an object created at+0x2240eb0(new(0x28), vtable at rva0x6195780, stored to a global). The init calls0x5b61000— a descriptor-enumeration helper that forwards to0x1621a70with two.rdataquery keys (rva 0x6181340andrva 0x617a560, the second tagged0x40747645≈ "Evt@"), succeeding only when[out+0x78]is set. It returned false — the registry it walks has no matching descriptor.Each matching entry (0x20 bytes) would be filtered by
0x2224530(bit-mask tests against capability globals atrip+0x52219d0) and registered into the object's+0x20buffer; field+0x410of that buffer is the service index later registered via0x5b297f0. With the enumeration empty the field keeps its stale value 38, which is why the index gate0x1d5cc60(cx must be > 0x3e7) tripped and the array memset walked a NULL buffer.So the boot blocker is one missing service-family registration ("Evt"-tagged descriptors) — everything else observed is downstream of it.
@kotekompotek on GitHub · 2026-11-25 18:14 UTC · original
One more layer down. The failing enumeration (
0x5b61000→0x1621a70→0x1621ae0) resolves to a service manifest read:0x1621ae0opens a resource named by the query's descriptor key, reads a blob starting with a 4-byte tag (checked against two magics — LE dwords0x38435352/0x5053494e), then scans the text formemory:andgrowbuffer:keys and parsesmemory:$%p,%d(pointer + size via sscanf, requires both fields).So the "Evt@" descriptor family names a service-provided data blob the title expects the OS to hand it — a pointer-plus-size manifest. On the host nothing provides it → enumeration returns false → the assert chain in the earlier comments. Next useful data point would be which descriptor key is requested; that falls out of
0x5b61000's call site arguments (rdx=0x6181340,r8=0x617a560).Also verified locally:
translate --pipelinesonshaders.rpfcannot reproduce #2124 on this box — emit::Host::new fails early ("the device supports SM 0x65 only"; WARP path reports 6.2). SM 6.6 needs the Agility SDK route.@Marvisak on GitHub · 2026-11-25 18:48 UTC · original · edited 2026-11-26 03:46 UTC
Automated triage for the maintainers.
Disassembly and decoded internals of the title's code must not be posted here; this is flagged for the maintainer.
Run report: GTX 1050 2 GB, driver 581.80, Windows 10 19045, main
63bcca4(diag build). The title's own breakpoint at+0x1ce6e13about 1 s into boot, before any window. Stepping past it needs a local patch from #2644 (open), so the later stops are not from unmodified main.The latest comments say the files were still incomplete during these runs: several archives were empty preallocations or locked by another process. In the newest run, with more of them in place, boot got past the step that failed before and stopped one step later instead. That points to the incomplete files rather than to a runtime gap.
Two things still need ruling out before this can be read as a runtime gap:
A rerun on unmodified
63bcca4or later with complete files, giving the breakpoint offset and the last log lines, would settle it. This is a different site from #2013, an early title breakpoint after a failed service lookup on an RTX 4060 Laptop.Generated by Claude Code
@kotekompotek on GitHub · 2026-11-26 00:25 UTC · original
Re-baselined on main
63bcca4(diag build, GTX 1050): the boot blocker is unchanged —+0x1ce6e13is still the first assert, and stepping the same five sites lands on the samememset(NULL)at VCRUNTIME via+0x5b29847. The title's own crash reporter then runs (its crash.log shows "Game State: System Init") and submits to backtrace, which our net module correctly blocks.New layer on the missing-descriptor mechanism, from static analysis of this build:
0x617a560begins with"Evt@"(0x40747645), the companion at0x6181340is a small typed record{u32 2, u32 8, f32 -1,-1,...}— looks like a (family tag, version/shape) descriptor pair.0x1621ae0formats a URI from the keys (0x128bb70joinsname + "." + suffixvia strchr/stricmp), then0x48c90iterates a per-thread registry (0x643cd0reads a lazy context fromgs:[0x58], count at+0xc04), resolving each candidate through a scheme-provider lookup (0x968480extracts the scheme up to:and the provider'svtable[0x20]answers by name).memory:/growbuffer:keys, parsed asmemory:$%p,%d— a service handing the title a pointer+size manifest.So the missing piece is a service-descriptor registry the platform seeds (scheme providers answering "Evt@..." names), not a game file — nothing in our HLE surface currently models it. The per-thread context object the enumeration walks is title-internal; what populates its entries during init is the next thing to trace.
Separately noted during the run:
dstorageWARN "opening G:\movies.rpf failed (os error 32, sharing violation)" — the file's mtime was the run's own timestamp, i.e. the game dump was still being extracted by another process at run time. Not a loader bug; just an artifact worth discounting in other reports.@kotekompotek on GitHub · 2026-11-26 00:52 UTC · original
Chain now traced end to end on the 1.0.2.1 image (statics + a live capture on this host; no game data included).
The failing URI is
packcache:/install— captured at runtime from the name struct the open uses (a(ptr,len)at+0x7bb4f48, populated before the mount).Call chain (confirmed by the faulting thread's unwind:
+0x1ce6e13 ← +0x293ef38 ← +0x2236cf6 ← +0x2240eab):+0x2240eab→+0x2236c90— writes"G:/"into the global device list (+0x74530b0) and registers it into the current thread's URI-resolver registry. That registry is a per-thread object reached viags:[0x58] → +0x7f0(0xc10 bytes, up to 12 resolver prefixes of 0x100 each, count at +0xc04). SoG:/is mounted when the crash path runs — the mechanism is healthy.+0x293ee20— installs a scoped TLS name context (ctx+0x1258, flags|0x404) →+0x5a3f200(device, "packcache:/install", ctx).+0x1621ae0): iterates the thread's resolver prefixes (+0x48c90→+0x128ba10formats prefix+URI), then+0x1972d70extracts the URI scheme and calls the scheme provider'svtable[0x20].+0x968480, the scheme dispatch, is a fixed compile-time table: signed-JOAAT hash buckets formemory(0xb37535d9) andgrowbuffer(0x46b0fb26) plus a third hash 0x5dccb711, and literal prefixestcpip:,globalroot,t:/\??\T://?/T:variants,g:,R:.packcache(JOAAT 0xacf9a5e8) matches nothing → provider NULL →+0x1621be3writes+0x78 = 0→ the caller asserts at+0x1ce6e13(theint3this issue's STEP_OVER chain leads to, ending at the memset(NULL) write).What this rules in/out. The earlier hypothesis "per-thread resolver registry is empty" is dead —
G:/registers fine on the faulting thread (watched the device-list global get0x2f3a47="G:/"and all provider objects construct).packcache:simply isn't a scheme this dispatcher knows — so on console it must be resolved one level up, inside+0x5a3f200's device-vtable path (a sub-volume/pack mount on theG:device, vtable+0x4ec7c90), before the generic URI loader is ever asked. The plausibly-victory-side gap is therefore wherever that sub-volume resolve bottoms out — the looseG:dump has nopackcachevolume, butpack/holds the<name>/<name>.rpfmount units a pack cache would enumerate.Where to look next.
+0x5a3f200is the dispatcher that should short-circuitpackcache:before it reaches+0x968480— its vtable calls (*0x8(%rax),*0x10(%rax)on the device object) are the next hop. "packcache" is runtime-built (not in .rdata); the second resolver-mount path+0x1f68830(conditional on the+0x1a3f6c0predicate, registers a copy of the device list from+0x7453130) is a candidate for who would register a packcache resolver if a conditional branch differs under our runtime.Diagnostics note: the URI was caught by a small
VICTORY_WATCH_PTR=<rva>:<len>addition to thewatch()diag aid (deref a static pointer slot and dump its target on change) — cheap addition to the diag build if anyone else needs it.@kotekompotek on GitHub · 2026-11-26 02:17 UTC · original
Correction and continuation of the trace — my earlier "empty registry" model was wrong on two counts.
Live instrumentation (a watch on the device-prefix table at title+0x1478f5ec4/0x1478f5ec8) shows the table is populated before the failing open. Registered prefixes, in order:
packroot:/,packcache:/,platform:/,common:/,commoncrc:/,platformcrc:/,settings:/,gamecache:/. Sopackcache:resolves fine — the fixed scheme table is only a fallback; the device-prefix resolver (title+0x28c8ec0) matches the longest registered prefix and callsvtable[0x168]on that device's provider.The actual failing step:
packcache:'s provider (vftable at image+0x62fd480, shared withcommon:/) is a name-hash index — slot 0x168 computes a salted hash of the remainder (install) and probes an internal table.installmisses because nothing ever populated the provider's content list.One caveat that matters for repro: my test dump is still downloading (qBittorrent — several
pack/*/*.rpffiles are 0-byte preallocations andpacks.rpfbegins with zeros). Thepackcacheprovider plausibly fills its index from pack metadata that simply wasn't on disk yet, so this run may be a false signal. Also noted: the title does callXPackageEnumeratePackages(kind 1, content) once during init and we answer "none" — on console that path may feed the packcache list.Next step on my end: re-baseline once the download completes. If
installstill misses with complete data, the gap is the package/volume enumeration (xpackage kind-1 returning nothing, or a volume-mount API we don't serve) rather than data.@kotekompotek on GitHub · 2026-11-26 02:44 UTC · original
Re-baseline run while the dump is still downloading (qBittorrent active; packs.rpf header still reads as all zeros, navmeshes.rpf was share-locked mid-run).
What changed vs the earlier run:
Reads consistently with the earlier model: the device-prefix layer is healthy; the miss lives in what the packcache provider was fed (packs.rpf being the index file that's still a sparse preallocation). Not yet a clean baseline — will rerun once the download finishes.