Repository navigation
Conversation
…ALLOC commit tracer A title crash handler (GTA VI's Breakpad) can keep the process alive for minutes after the unhandled exception, so the thread dump at exit came late or never: the other threads are now dumped once, right after the final report. XCL_TRACE_ALLOC=1 detours ntdll!NtAllocateVirtualMemory and counts every commit of XCL_TRACE_ALLOC_MIN bytes or more (default 1 MiB) under its call stack; every 15 s the stacks and modules holding the most are logged. The detour runs inside heap allocations with the heap lock held, so it takes no lock and allocates nothing (a fixed table of atomics). It showed GTA VI's 20+ GB coming from amdxc64.dll's pipeline compiles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XTYmP6vKUQKatSiA2PC95B
2 of 3 tasks
… the first 200 messages Hundreds of early warnings used the 200 slots; the error before GTA VI's device removal (CreateUnorderedAccessView of a resource without unordered access) was never logged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XTYmP6vKUQKatSiA2PC95B
Author
|
New commit ce0cb0a: the D3D12 debug-layer relay logged only the first 200 messages, warnings included. The error just before GTA VI's device removal came after hundreds of early warnings and was never logged. Now: the first 200 warnings, and the first 20 errors of each message id. 🤖 Generated with Claude Code |
This was referenced Nov 23, 2026
This was referenced Nov 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two diagnostics that found the GTA VI issues fixed in #162 and #163:
eh.rs). GTA VI's Breakpad keeps the process alive after the crash, so the dump at process exit came late or never. Now the other threads are dumped once, right afterreport::write_final; that showed which thread the game's watchdog was waiting for.XCL_TRACE_ALLOC=1(newalloc_trace.rs): detoursntdll!NtAllocateVirtualMemoryand counts every commit ≥XCL_TRACE_ALLOC_MINbytes (default 1 MiB) under its call stack. Every 15 s it logs the total, the bytes per owning module (first frame outside ntdll / CRT / kernel32 / d3d12), and the top 8 stacks. The detour runs inside heap allocations with the heap lock held, so it takes no lock and allocates nothing (a fixed 4096-slot table of atomics). A first version with aMutexdeadlocked the game. It is off by default and installs nothing then.On GTA VI before #162 it put 20+ GB of commit on
amdxc64.dllpipeline compiles.Test plan
cargo build --releaseXCL_TRACE_ALLOC=1: reports every 15 s, no deadlock, game unaffectedthread dump (104 threads)logged right after the unhandled exception🤖 Generated with Claude Code
https://claude.ai/code/session_01XTYmP6vKUQKatSiA2PC95B