Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HeapDump.exe /ForceGC fails to complete #1880

Open
MisinformedDNA opened this issue Jun 29, 2023 · 3 comments
Open

HeapDump.exe /ForceGC fails to complete #1880

MisinformedDNA opened this issue Jun 29, 2023 · 3 comments

Comments

@MisinformedDNA
Copy link

MisinformedDNA commented Jun 29, 2023

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

@brianrob
Copy link
Member

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?

@MisinformedDNA
Copy link
Author

It never fails, it just hangs. I've attached the dump.

HeapDump.zip

@brianrob
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants