-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
UnsupportedOperationException at iterator.remove() after change in SentryOptions.java #873
Comments
hey @sdeff thanks for raising this issue.
woud solve the issue. |
Thanks for raising this and @marandaneto for pointing out the fix. One question though. are you using
|
Thanks for your quick response! Yes, we've set |
Independently of this bug, I wonder if removing the integrations with the
Will also remove the Because right now with |
hey @sdeff so you don't need to init. actually, you can't init I hope this clarifies your question :) |
this is odd, can you elaborate a bit more on that or even raising a new issue? not sure if it's your setup or a bug. |
Thanks again for your quick reply @marandaneto!
I guess it's our setup which initializes both, the
I understand that, but what if I want to receive crash events for (native Android) crashes which could happen before the RN initialization? Wouldn't that result in a "blind spot" where our app could crash without us even noticing? |
@sdeff that's a very valid point, but it really depends on the order of initing your dependencies, basically, in order to init the There might be still improvements to be made, but this gap is known :( |
The version of sentry-android:
2.1.0 and above
Hi,
in our RN-Android/iOS project we initialize both, the Sentry Android and the Sentry RN SDK.
As we want to track Android Crashes with the Android SDK, we disable native crash handling in React Native:
With the following change in Version 2.1.0 inside
SentryOptions.java
(Before 2.1.0)
private final @NotNull List<EventProcessor> eventProcessors = new ArrayList<>();
->
(After 2.1.0)
private final @NotNull List<EventProcessor> eventProcessors = new CopyOnWriteArrayList<>();
the
RNSentryModule.java
crashes at:because
iterator.remove()
is an unsupported operation onCopyOnWriteArrayList
.Best regards,
Steffen
The text was updated successfully, but these errors were encountered: