Skip to content

Produce better error messages in gcdump convert command#5814

Open
pavelsavara wants to merge 3 commits into
dotnet:mainfrom
pavelsavara:fix/gcdump-convert-rootindex-error-message
Open

Produce better error messages in gcdump convert command#5814
pavelsavara wants to merge 3 commits into
dotnet:mainfrom
pavelsavara:fix/gcdump-convert-rootindex-error-message

Conversation

@pavelsavara
Copy link
Copy Markdown
Member

No description provided.

@pavelsavara pavelsavara marked this pull request as ready for review May 28, 2026 10:56
@pavelsavara pavelsavara requested a review from a team as a code owner May 28, 2026 10:56
Copilot AI review requested due to automatic review settings May 28, 2026 10:56
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Improves dotnet-gcdump convert failure handling by surfacing clearer error messages and guarding MemoryGraph.AllowReading() with exception handling.

Changes:

  • Emit a user-facing error when DumpFromEventPipeFile fails, with hints about likely causes.
  • Wrap memoryGraph.AllowReading() in a try/catch to return a helpful message when the heap dump is incomplete.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Tools/dotnet-gcdump/CommandLine/ConvertCommandHandler.cs
Comment thread src/Tools/dotnet-gcdump/CommandLine/ConvertCommandHandler.cs
@pavelsavara
Copy link
Copy Markdown
Member Author

@noahfalk @hoyosjs could you please merge, I don't have permissions.

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

Successfully merging this pull request may close these issues.

4 participants