Skip to content

Fix crash during garbage collection if SentryId was instantiated outside of game thread #857

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

Merged
merged 1 commit into from
Apr 1, 2025

Conversation

tustanivsky
Copy link
Collaborator

This PR changes SentryId type from class to FString to avoid potential crashes during garbage collection if the corresponding object was instantiated outside the game thread.

For extra context: a somewhat similar issue used to occur when instantiating USentryEvent during beforeSend/beforeCrash hook processing (#560).

Closes #736

Supersedes #840

Also related to #514, #559

Copy link
Contributor

github-actions bot commented Apr 1, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 1ba20e7

@tustanivsky tustanivsky marked this pull request as ready for review April 1, 2025 11:43
@tustanivsky tustanivsky requested a review from nwhite-riot April 1, 2025 18:31
@tustanivsky tustanivsky merged commit f5e022f into main Apr 1, 2025
28 checks passed
@tustanivsky tustanivsky deleted the feat/id-to-string branch April 1, 2025 19:23
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.

Crash from SentryConvertorsDesktop::SentryIdToUnreal when logging outside of gamethread
2 participants