d3d12 port 2: memcpy/memmove wrap marks 0 of ~10,700 heap copies a frame; fallback finds ~6 missed view records a frame, writers outside the title image #3259
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?
Imported from ubiquitarianism/leonida. Originally posted by lerapeurdu62280-debug on 2026-12-02T22:57:42Z.
Renderer port 2 (
LEONIDA_PORT_DESCRIPTORS=1, set by the launcher) misses view records every frame, and its memcpy/memmove wrap marks none of the copies it sees.Build: main
895c472fa(also seen after16243cd6e), Ryzen 5 3600, RX 6600 8 GB, Series S, standing in the world. From the runtime's own lines (play-*.log):copied(port_descriptors.rs) marks 0 of them (the fork the port comes from saw ~250 view records a frame copied that way).console_insn::neargives code stubs, e.g. the clzero stubs?), and 0x7ffc2d65xxxx is another module (not resolved).Possible lead: stores from patched stubs placed near the title (clzero loops replaced by plain stores,
LEONIDA_PATCH_CLZERO) are not among the six patched store sites, so a record they write goes unmarked. Not verified.Could be related to textures briefly missing or black (black balusters on a railing seen here).
EI S.O.S INFO LUDO
Imported from ubiquitarianism/leonida. Originally posted by zmasi on 2026-12-03T07:55:18Z.
Opened #3306 (
f8751e2a39) for this report — thank you @lerapeurdu62280-debug for the detailedport_descriptorslog line!What those numbers and addresses were showing
0x7ffb99ec0000and0x7ffb99ec0080(base - 0x70000):console_insn::nearplacesdescriptor_sites::apply's six patchedvmovupsstubs atbase - 0x70000(+0x00isSITES[0],+0x80isSITES[2],0x40stride). Those stubs do mark their own slots (0.0 told and not taken yet), but becausea.writersrecords one last-faulting RIP per 64 KiB block (2,048slots), whenever a patched stub or copy helper unguarded a 64 KiB block first, any later unmarked write into that open block inherited the stub's RIP.0 / 10,682memcpy/memmovemarks vs0x7ffc2d65af97/b043/b07c: WithLEONIDA_OWN_UPSCALER=1on by default, the ~10,700memcpy/memmovecalls into the+0x4d9f400frame allocator are non-view constants and list nodes, while view-record copies throughRtlMoveMemory/RtlCopyMemory(ntdll/kernel32),memcpy_s/memmove_s, or dynamicGetProcAddresslookups were unwrapped.LEONIDA_STORE_BESIDE=1sparse stores: Faulting stores executed beside a guard viatitlewrite::store(<= 4faults in a 64 KiB block) returnedEXCEPTION_CONTINUE_EXECUTIONbeforeport_descriptors::faulted, neither markingVIEW_TAGwrites nor recording the writer RIP.#3306 wraps the RTL/safe copy exports (both static IAT and
GetProcAddress), marksVIEW_TAGbeside-guard stores intitlewrite::store, and suppresses self-blaming block faults from our own stubs/wrappers so any remaining unpatched title store RVA (such astitle+0x4d9f264) is attributed directly.AI-assisted: Gemini 4 Neon (XHigh) and Gemini 4 Carbon (High).