sentry-react-native icon indicating copy to clipboard operation
sentry-react-native copied to clipboard

Uncaught CPP Exceptions are missing message

Open krystofwoldrich opened this issue 1 year ago • 2 comments

Description

When throw std::invalid_argument( "received negative value" ); in *.mm I would expect to see the stack trace and the message of the std::invalid_argument( "received negative value" ) but I'm seeing only the the type std::invalid_argument.

Event Note: There seems to be a main thread missing. Maybe related.

Screenshot 2024-07-03 at 13 01 37

Related

  • https://github.com/software-mansion/react-native-reanimated/pull/6163
    • JSError CPP Exceptions are missing the JS stack which is part of the error message.

iOS Screenshot 2024-07-03 at 13 03 10

Android

Screenshot 2024-07-03 at 13 02 49

Blocked by

  • https://github.com/getsentry/sentry-cocoa/issues/3822
  • https://github.com/getsentry/sentry-cocoa/issues/3707

krystofwoldrich avatar Jul 03 '24 10:07 krystofwoldrich

@brustolin @philipphofmann @armcknight

This might be related to

  • https://github.com/getsentry/sentry-cocoa/issues/3822
  • https://github.com/getsentry/sentry-cocoa/issues/3707

The mentioned cocoa issues also miss the message and the main thread (the second link).

krystofwoldrich avatar Jul 12 '24 11:07 krystofwoldrich

I'll check if Cpp exception directly from native module is captured the same (with missing message)

krystofwoldrich avatar Jul 12 '24 12:07 krystofwoldrich

related/blocked by:

  • https://github.com/getsentry/sentry-cocoa/issues/4226

kahest avatar Apr 07 '25 12:04 kahest