getsentry / getsentry/sentry-react-native

Uncaught CPP Exceptions are missing message

Ouverte
#3,931 3 commentaires 2 réactions 0 personnes assignées Voir sur GitHub
Blocked Errors Improvement React-Native
Langage dominant
TypeScript
Étoiles
1.8k
Forks
366
Merge moyen
1 j 5 h
PR mergées (30 j)
93

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.

![Screenshot 2024-07-03 at 13 01 37](https://uploads.linear.app/3ed206af-f87a-40aa-82a0-150bf83e43e6/e935197e-eaf1-4ad4-8d3c-1fdd4e2fe53d/91eebefd-e248-421f-8e0d-8aa4f044ac69?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzNlZDIwNmFmLWY4N2EtNDBhYS04MmEwLTE1MGJmODNlNDNlNi9lOTM1MTk3ZS1lYWYxLTRhZDQtOGQzYy0xZmRkNGUyZmU1M2QvOTFlZWJlZmQtZTI0OC00MjFmLThlMGQtOGFhNGYwNDRhYzY5IiwiaWF0IjoxNzc5MTk1NDU5LCJleHAiOjE4MTA3NjYwMTl9.w-OXgDlPI_Bn0XzQiTPD0RvoUsKvjU3oqKNPCVqaC7Y)

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](https://uploads.linear.app/3ed206af-f87a-40aa-82a0-150bf83e43e6/f5afec71-2b9c-4bde-bdda-ac3ad04f9059/e8f6f88a-ea72-4a43-be0c-e5dd4ee2e09e?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzNlZDIwNmFmLWY4N2EtNDBhYS04MmEwLTE1MGJmODNlNDNlNi9mNWFmZWM3MS0yYjljLTRiZGUtYmRkYS1hYzNhZDA0ZjkwNTkvZThmNmY4OGEtZWE3Mi00YTQzLWJlMGMtZTVkZDRlZTJlMDllIiwiaWF0IjoxNzc5MTk1NDU5LCJleHAiOjE4MTA3NjYwMTl9._m4EQ_gA8atuikS5fgoiqFLzabNAc433g1knWOvvOzM)

[Android]()

![Screenshot 2024-07-03 at 13 02 49](https://uploads.linear.app/3ed206af-f87a-40aa-82a0-150bf83e43e6/f1eeb064-0e6c-4a6b-938b-4c2b2db618be/bc792db8-e57e-48aa-94e3-6d2d58ffa0f0?signature=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwYXRoIjoiLzNlZDIwNmFmLWY4N2EtNDBhYS04MmEwLTE1MGJmODNlNDNlNi9mMWVlYjA2NC0wZTZjLTRhNmItOTM4Yi00YzJiMmRiNjE4YmUvYmM3OTJkYjgtZTU3ZS00OGFhLTk0ZTMtNmQyZDU4ZmZhMGYwIiwiaWF0IjoxNzc5MTk1NDU5LCJleHAiOjE4MTA3NjYwMTl9.IsZR9-g4Tt8rQBl8U4V9KVy_wm1mRgyHmS6ZSqJ5PE0)

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

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

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.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
cpp, react-native
Domaine
mobile, observability
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
À clarifier
Accessibilité débutants
25/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.