docs(native-host): who answers "not written" at 0x1330a44, and the folder's download state #637
No reviewers
Labels
No labels
accessibility
bug
claimed
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
tester report
urgent
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LakshanSivakumar--Native-Victory-macOS!637
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-633"
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?
@AnastasisKon on GitHub · 2026-11-28 17:47 UTC · original
AnastasisKon:vibe/trap-destination-and-partial-data-4f9c68→main· +31835 −2515 · 171 files · 277 commits · openCloses #636.
What
Two additions to the
image+0x1330a44section ofdocs/native-host.md, both measured today on this Mac (M3 Pro, 36 GB) with/Volumes/Anastasis' SSD/GTA6.Xbox.v1.0.2.1-CYBERLEEK.Who answers "not written". The destination is not per-run state.
0x1331110isxor eax,eax; cmp cl,3; lea image+0x6dd5b08; cmove rax,rdx; retand0x13310f0iskind == 3, so for the record's kind byte 3 the gather-write asks the singleton atimage+0x6dd5b08(in.data) to take the chunk. Its vtable isimage+0x66fdd40, in.rdata— a dump taken with the.datafile offset is misaligned by0x200and shows code-looking slots that are not its methods; with the right offset the slots are+0x28=image+0x1331660,+0x30=image+0x1331210,+0x38=image+0x1331100,+0x50=image+0xc11a50.+0x30reads the descriptor0x1330cd0has just written (+0x00data,+0x08size,+0x18source,+0x20remaining) and takes its early path at0x13312d9when the size or the remaining count is zero. So the answer comes from a statically constructed object against the descriptor's own counts, not from the lookup and not from a host call.The folder's download state. From the torrent's resume file rather than the file sizes (
piecesis one byte per piece againstinfo.piece lengthandinfo.files): 8,829 of 13,345 pieces, 148.1 GB of 223.9 GB.shaders.rpfholds pieces 0, 12 and 24 of 25 — header, one middle piece, last piece — and everything between them reads as zeros, while the file is preallocated to its full 411,695,600 bytes, so its size, header and last piece all look valid.packs.rpf,levels.rpf,story000.rpf,core_bvh4.rpf,navmeshes.rpfandcore_restofworld.rpfare partial too. That is a second, independent way to arrive at "a shader database that references a state the loaded data does not have", and it means no run on this folder can settle what the write needs until the download finishes.What this does not claim
That the missing shader pieces are the cause of the missing state, and nothing here changes behaviour: docs only, no code.
Testing
nice -n 10 sh tools/macos/verify.sh full—== gate PASSED ==(suite-hle 554, suite-shader 593, suite-gpu 493, policy, clippy-win), onx86_64-pc-windows-gnullvm..textraw0x400/VA0x1000,.rdataraw0x5f3fe00/VA0x5f41000,.dataraw0x67e0c00/VA0x67e2000) and each function begin checked against.pdata.du(142 GB allocated of 223.9 GB in the torrent).The reason line ("a draw without a host render pipeline (refused or not translated)") does not say which pipeline was dropped, and it is logged once per reason for the run, so a log could not name the draws nothing else had explained (#531's three hashes). Each dropped pipeline now gets one warning of its own with `pipeline =` its stages' hashes and render targets, up to 64 keys, before the `VICTORY_TRACE_TARGETS` frame trace that had this detail only under a switch. Test: `glue::a_dropped_pipeline_is_named_once`.`VICTORY_DUMP_DSP` is process-wide and so is the counter that numbers each stream's capture, so a stream another test activates while the variable is set takes `stream0_*` — and the dump test, reading the right file name, got that stream's zeros: ``` panicked at modules/dsp.rs:949: assert_eq!(read_f32("stream0_ir.f32"), ir) left: [0.0, 0.0, ... ] ``` One run in four of the whole suite, never alone. The two tests that activate streams now take a turn, so nothing can start a stream inside the other's capture. 15 runs of `victory-hle`'s suite: no failures.The Winsock tests take a turn (`serial()`) because the startup count is the process's — but `modules::net`'s `only_loopback_is_reachable` drives the same functions by name (`host!("ws2_32.dll", "socket")`, `connect`, `WSAConnectByNameA`, `WSAIoctl`, `closesocket`) without it. It can therefore start the stack up inside `off_machine_traffic_is_refused`'s "not started again" assertion, or take an ephemeral port inside `final_cleanup_invalidates_sockets_and_releases_their_ports`'s rebind of one it just released — the two winsock failures reported in #616. The turn now lives in `host_posix` (`winsock_turn`), and both modules take it; it is compiled only where that host is. The Winsock module alone never failed (0 of 20 runs), which is what pointed at the other module rather than at the socket code. 12 runs of `victory-hle`'s suite: no failures.Four measurements that close off the cheap explanations before the next person spends runs on them: a periodic dump shows every other thread idle (so nothing can ever satisfy the wait), the console model makes no difference, the records around the missing key are an index of {size, hash, kind, offset} entries that already names it, and the table slots the lookup reads are never written. The pool's alias views are coherent too -- the same record reads the same through both, so aliasing is not what fails.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.