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

Filter out __RestrictedErrorObjectReference #549

Merged
merged 2 commits into from
Nov 29, 2024

Conversation

QuantumNightmare
Copy link
Contributor

Addresses #547

WinRT exceptions can have a value in the Exception.Data dictionary with a key of "__RestrictedErrorObjectReference" and a value of type WinRT.ObjectReferenceWithContext<WinRT.Interop.IUnknownVftbl>. When trying to serialize this value, a System.AccessViolationException is thrown which can crash the application, even if caught.

This PR is a candidate fix for this issue which take the approach of recognizing the Data dictionary key and not including the value in the report sent to Raygun.

@QuantumNightmare
Copy link
Contributor Author

@phillip-haydon Thought I'd open this for discussion first. Any thoughts on this approach to solving the linked issue? I'll bump the version later once we're agreed on a solution.

Copy link
Contributor

@phillip-haydon phillip-haydon left a comment

Choose a reason for hiding this comment

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

👍

@phillip-haydon phillip-haydon merged commit 8c91e43 into master Nov 29, 2024
1 check failed
@phillip-haydon phillip-haydon deleted the Filter-out-__RestrictedErrorObjectReference branch November 29, 2024 01:16
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.

2 participants