getsentry / sentry-react-native

Official Sentry SDK for React Native
https://sentry.io
MIT License
1.56k stars 330 forks source link

Uncaught CPP Exceptions are missing message #3931

Open krystofwoldrich opened 2 months ago

krystofwoldrich commented 2 months ago

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

iOS Screenshot 2024-07-03 at 13 03 10

Android

Screenshot 2024-07-03 at 13 02 49

Blocked by

krystofwoldrich commented 1 month ago

@brustolin @philipphofmann @armcknight

This might be related to

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

krystofwoldrich commented 1 month ago

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