sentry-unreal
sentry-unreal copied to clipboard
Garbage collection crash not reported
Environment
How do you use Sentry? Sentry SaaS (sentry.io)
Which version of the SDK? 0.17.1
How did you install the package? (Git-URL, Assetstore) Git
Which version of Unreal? 5.3.2
Is this happening in Unreal (editor) or on a player like Android, iOS, Windows? Windows
Steps to Reproduce
- Trigger a crash during garbage collection
Expected Result
Crashes should be reported.
Actual Result
No crash is reported. The last line in the log is LogSentrySdk: invoking `on_crash` hook.
What I think is happening here is that it fails on this line in SentrySubsystemDesktop::HandleBeforeSend(), because it is attempting to create a new UObject, but the engine does not allow you to create UObjects during garbage collection. Which means that any crashes that occur during GC would fail to send.
Any logs or screenshots
This is the relevant tail of the log output.
[2024.05.14-18.40.10:855][412]LogOutputDevice: Warning:
Script Stack (0 frames) :
[2024.05.14-18.40.10:855][412]LogWindows: Error: appError called: Fatal error: [File:D:\******\UE5\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollectionVerification.cpp] [Line: 155]
Encountered 8 object(s) breaking Disregard for GC assumptions. Please check log for details.
[2024.05.14-18.40.10:855][412]LogWindows: Windows GetLastError: The operation completed successfully. (0)
[2024.05.14-18.40.10:855][412]LogSentrySdk: flushing session and queue before crashpad handler
[2024.05.14-18.40.10:855][412]LogSentrySdk: Verbose: invoking `on_crash` hook
@mniswander-ca Thanks, we'll check this out and get back to you.