Skip to content

SentryUnity.GetLastRunState() not working (at all) #2090

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

Open
Daztrax opened this issue Apr 1, 2025 · 1 comment
Open

SentryUnity.GetLastRunState() not working (at all) #2090

Daztrax opened this issue Apr 1, 2025 · 1 comment

Comments

@Daztrax
Copy link

Daztrax commented Apr 1, 2025

Hi there, Hi, I would like to report a bug about the crashpad_handler that doesn't detect the crash when checking SentryUnity.GetLastRunState(), it runs as a background task, but it doesn't detect the crash, There are some crash types that it actually detects, such as this type of crash by using this line UnityEngine.Diagnostics.Utils.ForceCrash(UnityEngine.Diagnostics.ForcedCrashCategory.FatalError);, however, for other crash types, it doesn't work (such as UnityEngine.Diagnostics.Utils.ForceCrash(UnityEngine.Diagnostics.ForcedCrashCategory.PureVirtualFunction);), I'll attach a videoclip of me testing the feature.

This is already reported by me in the official discord: https://discord.com/channels/621778831602221064/1354572101197103264

Videoclip about the bug: https://cdn.discordapp.com/attachments/1354572101197103264/1354572106695708752/Desktop_2025.03.26_-_15.35.25.05.mp4?ex=67ec5e94&is=67eb0d14&hm=7b033e5a4af7cb065d171ce00d4c03a36adef4aac08cd88f7ade5c1ecb81090c&

@bitsandfoxes
Copy link
Contributor

Hey @Daztrax, thanks for reaching out and for the detailed report!
I'm in the process of putting those util functions into the samples as well here #2061
We'll need to dig a bit in the sources to be able to properly set expectations of what can and will get captured by what.

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

No branches or pull requests

2 participants