getsentry / getsentry/sentry-react-native
Uncaught CPP Exceptions are missing message
- Dominant language
- TypeScript
- Stars
- 1.8k
- Forks
- 366
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 94
Description
### 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.

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]()

[Android]()

### Blocked by
* [https://github.com/getsentry/sentry-cocoa/issues/3822]()
* [https://github.com/getsentry/sentry-cocoa/issues/3707]()
* [https://github.com/getsentry/sentry-cocoa/issues/4226]()
Contributor guide
Research direction
Start by reproducing the uncaught std::invalid_argument case in a *.mm file and compare the captured event with the related react-native-reanimated PR 6163. Review the blocking sentry-cocoa issues 3822, 3707, and 4226 before choosing an implementation path. Done means the event includes both the C++ exception message and stack trace on the reported platforms.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, react-native
- Domain
- mobile, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100