memoonliteOriginal post
Rank 3: Container
Hello everyone! I'd like to report a problem regarding the Realtime SDK on Flutter. Sometimes, but not always, an exception is thrown by the Realtime SDK after connecting:
Plain text
E/flutter ( 4989): #0 _CompactIterator.moveNext (dart:collection-patch/compact_hash.dart:714:7)E/flutter ( 4989): #1 RealtimeMixin._createSocket.<anonymous closure> (package:appwrite/src/realtime_mixin.dart:91:49)E/flutter ( 4989): #2 _RootZone.runGuarded (dart:async/zone.dart:1582:10)E/flutter ( 4989): #3 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)E/flutter ( 4989): #4 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:7)E/flutter ( 4989): #5 _BufferingStreamSubscription._close (dart:async/stream_impl.dart:291:7)E/flutter ( 4989): #6 _ForwardingStream._handleDone (dart:async/stream_pipe.dart:99:10)E/flutter ( 4989): #7 _ForwardingStreamSubscription._handleDone (dart:async/stream_pipe.dart:161:13)E/flutter ( 4989): #8 _RootZone.runGuarded (dart:async/zone.dart:1582:10)E/flutter ( 4989): #9 _BufferingStreamSubscription._sendDone.sendDone (dart:async/stream_impl.dart:392:13)E/flutter ( 4989): #10 _BufferingStreamSubscription._sendDone (dart:async/stream_impl.dart:402:7)(Exception continues in message below this post, because of Discord stupid message limit)
I'm using version 12.0.3 of the Appwrite SDK. Does anyone know what could cause this problem?
Summary
Developers are encountering a Concurrent modification during iteration error with the Realtime SDK on Flutter. The issue seems to arise inconsistently after connecting, with stack traces indicating modification during iteration. This problem has been noted using Appwrite SDK version 12.0.3. No specific solutions were provided in the thread.