getsentry / getsentry/sentry-react-native

Uncaught CPP Exceptions are missing message

オープン
#3,931 コメント 3 件 リアクション 2 件 担当者 0 名 GitHub で見る
Blocked Errors Improvement React-Native
主要言語
TypeScript
スター
1.8k
フォーク
366
平均マージ
1日 5時間
マージ済み PR(30日)
93

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
cpp, react-native
領域
mobile, observability
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。