HeapDump.exe /ForceGC fails to complete
HeapDump.exe fails to complete. This is all I get in the output:
[EXECUTING: PerfView ForceGC WinFormsApp1] Starting Heap dump on Process 22808 running architecture Amd64. Exec: "C:\Users\XXX\AppData\Roaming\PerfView\VER.2023-06-28.10.03.17.657\Amd64\HeapDump.exe" /ForceGC 22808 0.1s: Enabling JScript Heap Provider
The process is a new .NET 7 WinForms app from the template. I have tried to force GC via the UI, via PerfView.exe and directly via HeapDump.exe and nothing works. It was previously working for other apps, but not I can't get it to run for anything. I've rebooted my PC, but that didn't help.
OS: Windows 10.0.19045 Build 19045
It's hard to say what's happened here if there isn't any information in the log. It looks like you're trying to trigger a GC. I have confirmed on my local machine that forcing a GC and generating a gcdump works for the Winforms template.
How long does it take to fail? I'm wondering if it hangs, and if so, can you grab a process dump of HeapDump.exe?
Thanks @MisinformedDNA. What I actually meant was a process dump of HeapDump.exe when it's hung. If you have windbg installed, you can attach to the process and then run .dump /ma C:\path\to\dump.dmp. Then share the resulting dmp file.