Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sentry-cocoa installedIntegrationsNames was mutated during setSDK info in client #2955

Closed
8 tasks
xcocoa opened this issue Apr 4, 2023 · 3 comments
Closed
8 tasks

Comments

@xcocoa
Copy link

xcocoa commented Apr 4, 2023

OS:

  • Windows
  • [yes] MacOS
  • Linux

Platform:

  • [yes] iOS
  • Android

SDK:

  • [yes] @sentry/react-native (>= 1.0.0)
  • react-native-sentry (<= 0.43.2)

SDK version: "4.7.1"

react-native version: 0.0.0

Are you using Expo?

  • Yes
  • No

Are you using sentry.io or on-premise?

  • sentry.io (SaaS)
  • on-premise

If you are using sentry.io, please post a link to your issue so we can take a look:

[Link to issue]

Configuration:

(@sentry/react-native)

Sentry.init({
  dsn: 'https://...@sentry.io/...'
  // other options
});

or

(react-native-sentry)

Sentry.config(
  'https://...@sentry.io/...'
  // other options
 ).install();

I have following issue:

[Description]

Steps to reproduce:

  • Step 1
  • Step 2

Actual result:

Sentry Application threw exception NSGenericException: *** Collection <__NSArrayM: 0x28076e970> was mutated while being enumerated.3 Sentry 0x00000001055099f8 -[SentryClient setSdk:] + [SentryClient.m : 644]

Expected result:

[Expected result]

@krystofwoldrich
Copy link
Member

krystofwoldrich commented Apr 4, 2023

Hi,
thank you for the message, unfortunately just from the exception message we are not able to reproduce the issue and therefore fix it.

Could you describe what are you doing when the error occurs, what are the steps to reproduce the error, the stack trace, and what your Sentry.init look like?

Here is where the error happens: https://github.com/getsentry/sentry-cocoa/blob/dc00a3673e3d313e41326bd53802f757defd0eee/Sources/Sentry/SentryClient.m#L644

@philipphofmann @brustolin This seems like an sentry-cocoa issue to me, what do you think?

@krystofwoldrich krystofwoldrich changed the title Sentry Application threw exception NSGenericException: *** Collection <__NSArrayM: 0x28076e970> was mutated while being enumerated.3 Sentry 0x00000001055099f8 -[SentryClient setSdk:] + [SentryClient.m : 644] sentry-cocoa installedIntegrationsNames was mutated during setSDK info in client Apr 5, 2023
@philipphofmann
Copy link
Member

Yes, that's an error in the Cocoa SDK, but this should be fixed with getsentry/sentry-cocoa#2398 released in 7.31.2, which went out in November 2022.

@krystofwoldrich
Copy link
Member

@philipphofmann Thank you for the info.

@xcocoa please upgrade to RN SDK v4.9.0 or newer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

No branches or pull requests

3 participants