sentry-unity icon indicating copy to clipboard operation
sentry-unity copied to clipboard

Code for Testing Exceptions in UaaL

Open thinkocapo opened this issue 8 months ago • 3 comments

What are some exceptions types that users of this could test?

"Adding capturing of C# errors - Adding the Unity SDK" https://github.com/getsentry/sentry-unity/issues/1727 https://github.com/getsentry/sentry-unity/issues/1727#issuecomment-2468667746

Ideas that a user tested, with mixed results. Some of these are from the script provided in issue 1727 by the author, but no fatal crash was reported.

  • UnityUtils.ForceCrash
  • OutOfMemory crash
  • EngineCrash Access violation
  • Engine Crash fatal error
  • Engine Crash Abort.
  • Engine Crash PureVirtualFunction.
  • Engine Crash Mono Abort.

sentry-unity/samples

thinkocapo avatar Mar 18 '25 13:03 thinkocapo

Relates to https://github.com/getsentry/sentry-unity/pull/2061

bitsandfoxes avatar Mar 20 '25 17:03 bitsandfoxes

We've received a repro.

bitsandfoxes avatar Mar 27 '25 11:03 bitsandfoxes

Noting they should be using this code instead. Lmk if my understanding is off. https://github.com/getsentry/sentry-unity/tree/main/samples/unity-of-bugs/Assets/Scripts

thinkocapo avatar May 16 '25 10:05 thinkocapo

With https://github.com/getsentry/sentry-unity/pull/2256 the samples now include the ForceCrash snippets. Validation that these get captured can be found here https://github.com/getsentry/sentry-unity/issues/1627#issuecomment-3117409915

bitsandfoxes avatar Aug 20 '25 12:08 bitsandfoxes