Title crash reporter wedges after GPU device removal: 0-byte minidump, zombie process pair holds ~8 GB #1498
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl#1498
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?
@Tanju42 on GitHub · 2026-11-24 16:58 UTC · original
Game and package version
The retail title – 1.0.2.1, Series X, fully local package (
XCL_NETWORK=0)What happens
When a run dies in the device-removal mode of #1452 on this machine, the process pair never goes away:
eh.rslogsunhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606(right afterD3D12 device removed: 0x887a0006, GPU stopped responding) and returnsEXCEPTION_CONTINUE_SEARCH, so the title's own crash reporter takes over and starts the GUID-named.dmpin the XCL datatemp\folder..dmpstays 0 bytes forever,xcl.logstops at the exception line, and both processes idle at 0 % CPU (0 s CPU delta over 8 s samples, repeated) for 20+ minutes, one still holding 7.6 GB (earlier 10.5 GB) of working set.WaitForExitin a play loop) cannot observe the exit at all, so external monitoring reports the title as running forever; onlytaskkill /Fclears it, and that itself takes about a minute to land (thread stuck in terminate-pending).This was observed on the 17:45:27 CET run of 2026-11-24: after the int3 at t=139.1 s nothing was logged for 20 minutes, the dump written at the same instant as the exception stayed 0 bytes (
Get-ChildItemconfirmed), and the pair was still present and CPU-idle when killed at ~18:00. The three earlier runs on this machine (17:35, 17:38, 17:44) died in the watchdog null-write mode instead and each produced a complete 57–59 MB minidump in ~1 s — so the writer path itself works when the device is alive; it is the wedged-GPU context that kills it.Why it matters for #1452 debugging
Every device-removal run on this machine soaks up a process pair and ~8–10 GB until manual kill, and the 0-byte dump loses the one artifact (dump of the wedged GPU threads) that mode 1 of #1452 needs.
Suggested direction
After the unhandled filter has logged and
report::write_finalran, arm a watchdog: if the continue-searched exception neither ends the process nor completes a non-empty dump within N seconds (say 30 s), XCL terminates the process tree with the exception code and logs it — a partial dump plus an exit beats an eternal zombie with none. (Alternatively/also: write the final dump out-of-process, the same way breakpad's handler process works, so a wedged GPU thread cannot block it.)XCL version
branch
pr887at 32df6dd =mainb7aa9f3with PR #887 merged in (local build 2026-11-24 17:43 +0100)GPU and driver version
NVIDIA GeForce RTX 5060 Laptop GPU 8 GB, driver 621.24, Windows 11 build 26300, 32 GB RAM
@Creaa on GitHub · 2026-11-24 17:55 UTC · original
The same wedge on another machine, in the watchdog mode (the title's null write at
+0x23cf683, no device removal before it), and with a worse end: Windows' hang reporting left a clone of the process that held 18.8 GB of commit until reboot.Setup: RTX 4070 12 GB (driver 617.14), i7-13700F, 32 GB RAM, Windows 11 build 26300; the same retail 1.0.2.1 package,
XCL_NETWORK=0; a local build of #1316ee904f1onmain930e8b4.Sequence of the run that wedged (one of three runs that ended in the same watchdog write; the other two wrote a complete 30 MB
.dmpand the title's.crash.logwithin a second):unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0); the GUID.dmpintemp\is created and stays 0 bytes; nothing more inxcl.log(noBacktraceBreakpadlines, which the two good runs log right after the exception)xcl.exestopped interacting with Windows and was closed; Windows Error Reporting 1001:AppHangB1LiveKernelEvent(aKernel_141report inReportQueue, i.e. a video engine timeout)xcl.exechild of the title's host process, 0 threads, 0 handles, 18.76 GB private commit, the host's size at the timeStop-Process -Forceandtaskkill /Fboth fail with access denied. A process with no threads and the parent's whole commit is what WER's hang reporting creates when it reflects (clones) a hung process to dump it; here a GPU timeout came two seconds into that, and the clone was never released. Earlier, another local run on this machine left one of about 18.6 GB that could not be stopped either. Each one keeps the commit until reboot, so the next runs have that much less.Your suggested direction would avoid both: if the process has not ended some time after the unhandled exception was logged (a good dump takes about a second here), end it with the exception's code, before the window counts as hung. Is anyone on that? If not, I can do it as a small PR in
eh.rswith a test.AI use: Claude Code (Claude Opus 5.5) read the logs and the Windows event log and drafted this comment; I checked it before posting.
@Creaa on GitHub · 2026-11-24 18:13 UTC · original
Follow-up to my comment above: #742 looks like the fix for the wedge itself, so I am not opening the PR I offered.
#742 explains the 0-byte dump: the title's crash handler dumps its own process with
MiniDumpWriteDump, which suspends every other thread and then takes the heap lock, and when a suspended thread holds that lock the dump never finishes. That is a race, which fits what I saw (one wedge in three crashes at the same watchdog write, the other two with a full 30 MB dump within a second). #742 declines a dump of the process itself, so there is nothing left to wedge, and its two test reports show no hang in 8 crashes against 2 hangs in 11 onmain.What I had built, for the record, as a safety net on top: a thread made when the crash handler is installed ends the process with the exception's code if it is still alive
XCL_CRASH_EXIT_Sseconds (30) after the unhandled exception. Onmain9e3831e: the workspace suite passed (778 passed, 0 failed, 41 ignored, RTX 4070), and a real watchdog crash withXCL_CRASH_EXIT_S=1still ended on its own after 0.9 s with the title's full dump, so the thread did not interfere. It only adds something for a wedge that is not the dump, which nobody has reported, so I'm leaving it unless someone wants it.AI use: Claude Code (Claude Opus 5.5) drafted this comment; the runs were on my machine.
@b3IKK on GitHub · 2026-11-25 13:08 UTC · original
A data point for the wedge, from a run without a device removal: the title hit its own breakpoint and the process never exited.
Setup: NVIDIA GeForce RTX 5080 (driver 32.0.16.1088), Windows 11 10.0.26300, retail 1.0.2.1,
main426a5a7, release, 600 s cap,XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_AT=33:A.unhandled exception 0x80000003 in game_scarlett_master.exe+0x4da6315(the stop listed from #1164).D3D12 device removedline anywhere in the run, and noprocess endsline either.XCL_RUN_SECONDS=600unable to fire (the end-of-run path never ran). No minidump was produced that I could find.So the wedge is not tied to a device removal: a title
int3with the D3D12 device still healthy leaves the same zombie process, and the run's own time limit cannot end it. If the crash reporter is what holds it, that is the same artifact #1498 is about.Not tested: what the process was waiting on at that point (no thread dump), the minidump path, and whether this reproduces without
XCL_PSO_WAIT_MS=50.AI use: OpenCode, Claude Fable 5.2 ran the run, read the log and wrote this.