Title crash reporter wedges after GPU device removal: 0-byte minidump, zombie process pair holds ~8 GB #1498

Open
opened 2026-11-26 04:55:42 +00:00 by github-bot · 3 comments
Owner

@⁠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.rs logs unhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606 (right after D3D12 device removed: 0x887a0006, GPU stopped responding) and returns EXCEPTION_CONTINUE_SEARCH, so the title's own crash reporter takes over and starts the GUID-named .dmp in the XCL data temp\ folder.
  • The reporter then wedges: the .dmp stays 0 bytes forever, xcl.log stops 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.
  • A supervisor (WaitForExit in a play loop) cannot observe the exit at all, so external monitoring reports the title as running forever; only taskkill /F clears 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-ChildItem confirmed), 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_final ran, 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 pr887 at 32df6dd = main b7aa9f3 with 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

**@⁠Tanju42** on GitHub · 2026-11-24 16:58 UTC · [original](https://github.com/xcl-dev/xcl/issues/1498) ### Game and package version The retail title – <package id> 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.rs` logs `unhandled exception 0x80000003 in game_scarlett_master.exe+0x2474606` (right after `D3D12 device removed: 0x887a0006`, GPU stopped responding) and returns `EXCEPTION_CONTINUE_SEARCH`, so the title's own crash reporter takes over and starts the GUID-named `.dmp` in the XCL data `temp\` folder. - The reporter then wedges: the `.dmp` stays **0 bytes** forever, `xcl.log` stops 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. - A supervisor (`WaitForExit` in a play loop) cannot observe the exit at all, so external monitoring reports the title as running forever; only `taskkill /F` clears 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-ChildItem` confirmed), 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_final` ran, 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 `pr887` at 32df6dd = `main` b7aa9f3 with 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
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:55:42 +00:00
Author
Owner

@⁠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 #1316 ee904f1 on main 930e8b4.

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 .dmp and the title's .crash.log within a second):

time what
~17:14:30 unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0); the GUID .dmp in temp\ is created and stays 0 bytes; nothing more in xcl.log (no BacktraceBreakpad lines, which the two good runs log right after the exception)
17:16:15 Application log, Application Hang 1002: xcl.exe stopped interacting with Windows and was closed; Windows Error Reporting 1001: AppHangB1
17:16:17 Windows Error Reporting 1001: LiveKernelEvent (a Kernel_141 report in ReportQueue, i.e. a video engine timeout)
from 17:15:39 an xcl.exe child of the title's host process, 0 threads, 0 handles, 18.76 GB private commit, the host's size at the time
  • That child is still there over 1.5 hours later. Stop-Process -Force and taskkill /F both 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.
  • So the wedge is not limited to the device-removal mode, and once the window is reported as hung, the cost can outlive the process.

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.rs with 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 17:55 UTC · [original](https://github.com/xcl-dev/xcl/issues/1498#issuecomment-7139890449) 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 #1316 `ee904f1` on `main` `930e8b4`. 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 `.dmp` and the title's `.crash.log` within a second): | time | what | |---|---| | ~17:14:30 | `unhandled exception 0xc0000005 in game_scarlett_master.exe+0x23cf683 (write at address 0x0)`; the GUID `.dmp` in `temp\` is created and stays **0 bytes**; nothing more in `xcl.log` (no `BacktraceBreakpad` lines, which the two good runs log right after the exception) | | 17:16:15 | Application log, *Application Hang* 1002: `xcl.exe` stopped interacting with Windows and was closed; *Windows Error Reporting* 1001: `AppHangB1` | | 17:16:17 | *Windows Error Reporting* 1001: `LiveKernelEvent` (a `Kernel_141` report in `ReportQueue`, i.e. a video engine timeout) | | from 17:15:39 | an `xcl.exe` child of the title's host process, **0 threads, 0 handles, 18.76 GB private commit**, the host's size at the time | - That child is still there over 1.5 hours later. `Stop-Process -Force` and `taskkill /F` both 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. - So the wedge is not limited to the device-removal mode, and once the window is reported as hung, the cost can outlive the process. 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.rs` with 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.
Author
Owner

@⁠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 on main.

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_S seconds (30) after the unhandled exception. On main 9e3831e: the workspace suite passed (778 passed, 0 failed, 41 ignored, RTX 4070), and a real watchdog crash with XCL_CRASH_EXIT_S=1 still 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.

**@⁠Creaa** on GitHub · 2026-11-24 18:13 UTC · [original](https://github.com/xcl-dev/xcl/issues/1498#issuecomment-7140332616) 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 on `main`. 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_S` seconds (30) after the unhandled exception. On `main` `9e3831e`: the workspace suite passed (778 passed, 0 failed, 41 ignored, RTX 4070), and a real watchdog crash with `XCL_CRASH_EXIT_S=1` still 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.
Author
Owner

@⁠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, main 426a5a7, release, 600 s cap, XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_AT=33:A.

  • At 212.8 s: unhandled exception 0x80000003 in game_scarlett_master.exe+0x4da6315 (the stop listed from #1164).
  • No D3D12 device removed line anywhere in the run, and no process ends line either.
  • The log's last line is that exception; the process was still alive when I ended the run roughly 16 minutes later, with XCL_RUN_SECONDS=600 unable 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 int3 with 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.

**@⁠b3IKK** on GitHub · 2026-11-25 13:08 UTC · [original](https://github.com/xcl-dev/xcl/issues/1498#issuecomment-7163345285) 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, `main` `426a5a7`, release, 600 s cap, `XCL_NETWORK=0 XCL_ACTIVITY=1 XCL_PSO_WAIT_MS=50 XCL_PRESS_AT=33:A`. - At 212.8 s: `unhandled exception 0x80000003 in game_scarlett_master.exe+0x4da6315` (the stop listed from #1164). - No `D3D12 device removed` line anywhere in the run, and no `process ends` line either. - The log's last line is that exception; the process was still alive when I ended the run roughly 16 minutes later, with `XCL_RUN_SECONDS=600` unable 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 `int3` with 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.
This discussion has been locked. Commenting is limited to contributors.
No description provided.