getsentry / sentry-react-native

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

Call stack exception (crash) when Tracing is enabled #4191

Open laurensk opened 1 day ago

laurensk commented 1 day ago

What React Native libraries do you use?

React Navigation, Hermes, React Native without Frameworks

Are you using sentry.io or on-premise?

on-premise (Self-Hosted)

@sentry/react-native SDK Version

6.0.0

How does your development environment look like?

info Fetching system and libraries information... System: OS: macOS 14.7 CPU: (12) arm64 Apple M2 Max Memory: 1.23 GB / 32.00 GB Shell: version: "5.9" path: /bin/zsh Binaries: Node: version: 18.19.0 path: ~/.nvm/versions/node/v18.19.0/bin/node Yarn: Not Found npm: version: 10.2.3 path: ~/.nvm/versions/node/v18.19.0/bin/npm Watchman: version: 2024.09.30.00 path: /opt/homebrew/bin/watchman Managers: CocoaPods: version: 1.15.2 path: /Users/laurens/.rbenv/shims/pod SDKs: iOS SDK: Platforms:

Sentry.init()

Sentry.init({ dsn: ', tracesSampleRate: 1.0, });

Steps to Reproduce

  1. Have "tracesSampleRate" enabled in Sentry.init
  2. Start bundler
  3. Install and open native application
  4. Loop/Crash happens

Expected Result

The app should start and tracing should work.

Actual Result

The app hangs in an infinite loop, the console logs:

RangeError: Maximum call stack size exceeded (native stack depth), js engine: hermes

krystofwoldrich commented 1 day ago

Hi @laurensk, thank you for the message,

I have a few more questions?

Have you upgraded from v5? If so, from what version?

Do you have any other @sentry/* dependencies installed? If so, which ones and what versions?

laurensk commented 1 day ago

Hi,

it's a fresh install into the project, so no upgrade.

No, only have "@sentry/react-native": "^6.0.0", in my package.json.

Thank you very much for looking into this - I really tried a lot before opening this issue and just couldn't fix it.