--pix-capture: PIXBeginCapture2 and PIXEndCapture are not in WinPixGpuCapturer.dll of PIX 2611.19 #65
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/ThatRecompDev--five-star-recomp#65
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?
@RubAway on GitHub · 2026-11-26 21:01 UTC · original
Loader
1.0.0+9864ac5e, Windows 11, RTX 5090, PIX installed withwinget install Microsoft.PIX(version 2611.19).what the loader asks for
PixGpuCapture.Loadtakes the newestWinPixGpuCapturer.dllunder%ProgramFiles%\Microsoft PIX\*\and needs theexports
PIXBeginCapture2andPIXEndCapture(
src/FiveStar.Loader/Shims/D3D12X/DebugLayer/PixGpuCapture.cs:74-81).what that DLL holds in PIX 2611.19
C:\Program Files\Microsoft PIX\2611.19\WinPixGpuCapturer.dll(3 078 960 bytes) holds thesePIX*names:PIXBeginCapture2andPIXEndCaptureare inWinPixEventRuntime_OneCore.dllof the same folder, not in thecapturer; searching every DLL of that folder found those two names only there (and in its ARM64 copy).
what the run logged
No
.wpixfile was written;--pix-capture 300otherwise ran on as if it had not been given.one side effect of that boot, worth checking separately
That boot is the first whose process had that module loaded, and it is the first boot whose whole pipeline cache the
driver refused (
run-20261126-222958.log):The boot before, without
--pix-capture(run-20261126-221006.log), opened them:The loader prints the same driver id in both boots (
driver 0x2000000010084c, driver version 32.0.16.2124) and nodriver was updated between them. The next boot without
--pix-capturestill discarded them(
run-20261126-224141.log:56 segment(s) discarded,0 segment(s) opened in 0.0 s); the two after that openedeverything again and stopped rebuilding (
run-20261126-224857.log:31 segment(s) opened in 0.3 s,40 built, 2920 cached already;run-20261126-233803.log:45 segment(s) opened in 0.5 s,0 built, 3041 cached already). So therefusal follows the PIX boot in time, and the cache came back on its own without PIX being touched again — what
exactly was refused, and why, is not established here.
unknown
PIXBeginCapture2/PIXEndCapturemoved out ofWinPixGpuCapturer.dllin some PIX release, or thecapturer is only meant to be driven through
WinPixGPUCaptureCmd.exe.boot changed the stamp: the loader's own
Refusalreasons arenot a segment of this build,made on another adapter,made by another driver version, and the log names the third.PipelineLibraryCache.Evict)before being opened; the folder holds far fewer segments now than the 553 the log counted.
@ThatRecompDev on GitHub · 2026-11-26 21:24 UTC · original
thanks, this is a really thorough report. you're right on both counts: the capture calls live in the event runtime in 2611.19, so the loader now loads the capturer and takes PIXBeginCapture2/PIXEndCapture from WinPixEventRuntime_OneCore.dll next to it. the cache side was worse than it looked, the driver refused every segment while the capturer was loaded and we then deleted them as stale. while PIX is loaded the cache is now read-only, nothing gets deleted or written. fixed in
27a2dd73, would be great if you could try a --pix-capture boot on the 5090 again@ThatRecompDev on GitHub · 2026-11-26 21:38 UTC · original
small follow-up:
27a2dd73alone wasn't enough, we also passed the wrong capture kind (1 << 3 instead of PIX_CAPTURE_GPU = 1 << 1), so PIXBeginCapture2 came back with E_NOTIMPL. fixed in7d5733a7. tested here with PIX 2611.19 on a 4090:--pix-capture 300writes present-300.wpix, and the pipeline cache is left alone while PIX is loaded (same file count before and after). heads up that the driver still refuses the cached pipelines while the capturer is loaded, so a PIX boot recompiles them and later frames can miss draws until that's done@RubAway on GitHub · 2026-11-27 05:27 UTC · original
Retried the PIX boot on the 5090 with current main (
fivestar-loader build 1.0.0+df2a7adcec34785bc155641cae56ebc912d783c9, driver 32.0.16.2124,--pix-capture 300,600). It works now, thank you:Two files came out,
present-300.wpix1450 MB andpresent-600.wpix1860 MB. Both PIX boots wrote them, so this is reproducible, not a one-off.Your warning about the cache holds exactly as written. A plain boot before reads the cache:
a PIX boot does not:
and the next plain boot finds the cache intact and usable again (
45 segment(s) opened in 0.2 s,0 built, 3176 cached already, 446 refused), so a PIX boot does not poison what is on disk.One thing to fix: with
--gpu-keep-awake, a PIX boot loses the crash diagnostics. Inrun-20261127-081537.log(124 s, same 300/600 captures) the device went away and the keep-awake thread threw first, unhandled:(The "display driver stopped responding and has recovered" text is Vortice's own string for
DXGI_ERROR_DEVICE_HUNG, not a Windows record: our System log has no Display-provider event at these times, see the #64 comment for whatnvlddmkmwrites instead.)That log has no
ERROR [gpu] device removed, reason …; the queues as last seen:block at all, and no#n list … STOPPED at operation …lines: the process died with a CLR stack instead of reaching the path that dumps the queue state. In the two boots without--pix-capturethe same loss does print it, with the breadcrumbs andending the process (exit code 6). So whichever thread notices the device first decides whether you get the breadcrumb dump —GpuKeepAwake.Loopwould presumably want to treatDXGI_ERROR_DEVICE_HUNGandDXGI_ERROR_DEVICE_REMOVEDas "the device is gone, stop the loop" like the other places do.Unknown: whether the capturer being loaded is what makes the keep-awake thread win the race, or it is random. Only one PIX boot reached the loss so far; the earlier PIX boot at 08:13:38 I closed by hand at 77 s.
@ThatRecompDev on GitHub · 2026-11-27 07:56 UTC · original
great, thanks for confirming, and for checking that the cache on disk survives a PIX boot.
you're right about the keep-awake thread, that's a plain bug: it lets the device-removed HRESULT escape as an exception and takes the process down before the queue report gets written. it should just stop its loop like the other places do. will fix, until then leave
--gpu-keep-awakeoff on boots where you want the loss report.side note since you ran into it here: the loss itself is explained on our card now, details in #64.