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

Bad state: Stream has already been listened to. #7

Open
ZianFahrudy opened this issue Mar 6, 2023 · 1 comment
Open

Bad state: Stream has already been listened to. #7

ZianFahrudy opened this issue Mar 6, 2023 · 1 comment

Comments

@ZianFahrudy
Copy link

ZianFahrudy commented Mar 6, 2023

alt tag
E/flutter ( 2950): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: Stream has already been listened to.
E/flutter ( 2950): #0 _StreamController._subscribe (dart:async/stream_controller.dart:676:7)
E/flutter ( 2950): #1 _ControllerStream._createSubscription (dart:async/stream_controller.dart:827:19)
E/flutter ( 2950): #2 _StreamImpl.listen (dart:async/stream_impl.dart:471:9)
E/flutter ( 2950): #3 new _AddStreamState (dart:async/stream_controller.dart:892:34)
E/flutter ( 2950): #4 new _StreamControllerAddStreamState (dart:async/stream_controller.dart:942:9)
E/flutter ( 2950): #5 _StreamController.addStream (dart:async/stream_controller.dart:576:9)
E/flutter ( 2950): #6 _AsyncStarStreamController.addStream (dart:async-patch/async_patch.dart:99:39)
E/flutter ( 2950): #7 QiscusSDK.onMessageRead (package:qiscus_chat_sdk/src/qiscus.dart)
qiscus.dart:1
E/flutter ( 2950):
E/flutter ( 2950):
E/flutter ( 2950): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: Stream has already been listened to.
E/flutter ( 2950): #0 _StreamController._subscribe (dart:async/stream_controller.dart:676:7)
E/flutter ( 2950): #1 _ControllerStream._createSubscription (dart:async/stream_controller.dart:827:19)
E/flutter ( 2950): #2 _StreamImpl.listen (dart:async/stream_impl.dart:471:9)
E/flutter ( 2950): #3 new _AddStreamState (dart:async/stream_controller.dart:892:34)
E/flutter ( 2950): #4 new _StreamControllerAddStreamState (dart:async/stream_controller.dart:942:9)
E/flutter ( 2950): #5 _StreamController.addStream (dart:async/stream_controller.dart:576:9)
E/flutter ( 2950): #6 _AsyncStarStreamController.addStream (dart:async-patch/async_patch.dart:99:39)
E/flutter ( 2950): #7 QiscusSDK.onMessageDelivered (package:qiscus_chat_sdk/src/qiscus.dart)
qiscus.dart:1
E/flutter ( 2950):
E/flutter ( 2950):
2
I/flutter ( 2950): on do back!
I/flutter ( 2950): initiate chat!
[log] set user! Fita
E/flutter ( 2950): [ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Bad state: Stream has already been listened to.
E/flutter ( 2950): #0 _StreamController._subscribe (dart:async/stream_controller.dart:676:7)
E/flutter ( 2950): #1 _ControllerStream._createSubscription (dart:async/stream_controller.dart:827:19)
E/flutter ( 2950): #2 _StreamImpl.listen (dart:async/stream_impl.dart:471:9)
E/flutter ( 2950): #3 new _AddStreamState (dart:async/stream_controller.dart:892:34)
E/flutter ( 2950): #4 new _StreamControllerAddStreamState (dart:async/stream_controller.dart:942:9)
E/flutter ( 2950): #5 _StreamController.addStream (dart:async/stream_controller.dart:576:9)
E/flutter ( 2950): #6 _AsyncStarStreamController.addStream (dart:async-patch/async_patch.dart:99:39)
E/flutter ( 2950): #7 QiscusSDK.onMessageRead (package:qiscus_chat_sdk/src/qiscus.dart)
qiscus.dart:1
E/flutter ( 2950):
E/flutter ( 2950):

@ZianFahrudy
Copy link
Author

ZianFahrudy commented Mar 6, 2023

Kasus nya ketika login -> chatroomscreen -> onback -> login -> chatroomscreen.
Pesan terakhir terkirim tapi tidak ter-load jika onback dan login kembali.
Thanks, qiscus team.

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

1 participant