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

Getting crash in snowplow in ServiceProvider class #686

Open
Prithuld opened this issue Apr 22, 2024 · 2 comments
Open

Getting crash in snowplow in ServiceProvider class #686

Prithuld opened this issue Apr 22, 2024 · 2 comments
Labels
type:defect Bugs or weaknesses. The issue has to contain steps to reproduce.

Comments

@Prithuld
Copy link

Describe the bug
Fatal Exception: java.lang.IndexOutOfBoundsException: Index: 2, Size: 2
at java.util.ArrayList.get(ArrayList.java:437)
at kotlin.collections.CollectionsKt_MutableCollectionsKt.filterInPlace$CollectionsKt_MutableCollectionsKt(MutableCollections.kt:289)
at kotlin.collections.CollectionsKt__MutableCollectionsKt.removeAll(MutableCollections.kt:274)
at com.snowplowanalytics.core.tracker.ServiceProvider.removePlugin(ServiceProvider.kt:373)
at com.snowplowanalytics.core.tracker.PluginsControllerImpl.removePlugin(PluginsControllerImpl.kt:32)
at com.snowplowanalytics.core.globalcontexts.GlobalContextsControllerImpl.remove(GlobalContextsControllerImpl.kt:51)
at commonlib.snowplow.DefaultSnowplowAnalyticsTracker.setGlobalUserContext(DefaultSnowplowAnalyticsTracker.kt:106)

To Reproduce
Steps to reproduce the behavior or code snippets that produce the issue.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Device informatoin (please complete the following information):
We are using 6.0.1 library
Additional context
Add any other context about the problem here.

@Prithuld Prithuld added the type:defect Bugs or weaknesses. The issue has to contain steps to reproduce. label Apr 22, 2024
@miike
Copy link

miike commented Apr 22, 2024

@Prithuld Could you please include information about your usage / configuration to allow us to replicate this issue? (particularly around global contexts)

@Prithuld
Copy link
Author

As per analysis we see we are calling it from different Dispatchers(IO), but we did not change this part of code very recently

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:defect Bugs or weaknesses. The issue has to contain steps to reproduce.
Projects
None yet
Development

No branches or pull requests

2 participants