Skip to content

Crash Timeline.applyPlugins package:segment_analytics/timeline.dart:104 #157

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

Open
awaisjamil-mp opened this issue Apr 28, 2025 · 9 comments

Comments

@awaisjamil-mp
Copy link

Concurrent modification during iteration: Instance(length:6) of '_GrowableList'.
Concurrent modification during iteration: Instance(length:6) of '_GrowableList'.
0 ListIterator.moveNext dart:_internal/iterable.dart:348
1 Timeline.applyPlugins package:segment_analytics/timeline.dart:104
2 Timeline.process package:segment_analytics/timeline.dart:91
3 Analytics._process package:segment_analytics/analytics.dart:385
4 Analytics.track package:segment_analytics/analytics.dart:215

@JulianP911
Copy link

We are currently experiencing the same error which is generating a number of important issues to users who have the application with the package, we are waiting for your help.

Image

@awaisjamil-mp
Copy link
Author

any update???

@neelkanth-kaushik
Copy link
Contributor

Hi @awaisjamil-mp @JulianP911 ,

We attempted to reproduce the issue by integrating a single plugin, but no errors were encountered during the process. To assist further, could you provide more context—such as the specific plugin(s) used, configuration details, and exact steps to reproduce the error?

This information will help us investigate the issue more effectively.

Thanks.

@awaisjamil-mp
Copy link
Author

awaisjamil-mp commented May 20, 2025

We are using 4 plugins on app startup we add plugins and on the very first event segment throws this error.

Facebook, tiktok, adjust and GoogleAnalytics plugin all of these are custom Destination Plugin that I have created.

@awaisjamil-mp
Copy link
Author

Image

here is the number of impacted user on our app

@neelkanth-kaushik
Copy link
Contributor

Hi @awaisjamil-mp , while we investigate the root cause, can you please make the following change in analytics_flutter/packages/core/lib/timeline.dart and let us know if it fixes your error?

Image

@awaisjamil-mp
Copy link
Author

do you want me to fork it?

@neelkanth-kaushik
Copy link
Contributor

neelkanth-kaushik commented May 20, 2025

@awaisjamil-mp To test whether the proposed change resolves your issue, I recommend temporarily modifying the file located at /username/.pub-cache/hosted/pub.dev/segment_analytics-1.1.3/lib/timeline.dart, or the equivalent path in your environment where the dependencies are downloaded after running flutter pub get.

If the patch works as expected, you’re welcome to proceed with your own preferred solution or wait for the official release. In either case, please leave a comment here to confirm whether the modification resolved the issue on your end—it would be greatly appreciated.

@awaisjamil-mp
Copy link
Author

Yes it seems to work. What will be ETA for this release? a hotfix maybe?

neelkanth-kaushik added a commit that referenced this issue May 20, 2025
MichaelGHSeg pushed a commit that referenced this issue May 20, 2025
* Patch for Github Issue #144

* Patch for Github issue #147

* Patch for Github issue #147

* Patch for Github issue #144

* Patch for Github issue #147

* Patch for Github issue #147

* Patch for Github issue #138

* Patch for Github issue #138

* Patch for Github Issue #152

* Patch for Github Issue #152

* Testing patch for Github Issue #157

* Patch for Github Issue #157
MichaelGHSeg added a commit that referenced this issue May 20, 2025
* Patches for Github Issues (#159)

* Patch for Github Issue #144

* Patch for Github issue #147

* Patch for Github issue #147

* Patch for Github issue #144

* Patch for Github issue #147

* Patch for Github issue #147

* Patch for Github issue #138

* Patch for Github issue #138

* Patch for Github Issue #152

* Patch for Github Issue #152

* Testing patch for Github Issue #157

* Patch for Github Issue #157

* Updating for 1.1.7 release

* Removing unnecessary library name

---------

Co-authored-by: Neelkanth Kaushik <nkaushik@twilio.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants