GetStream / stream-chat-flutter

Flutter Chat SDK - Build your own chat app experience using Dart, Flutter and the Stream Chat Messaging API.
https://getstream.io/chat/sdk/flutter/
Other
938 stars 342 forks source link

Drift isolates are created twice #2038

Closed senkia24 closed 1 week ago

senkia24 commented 1 month ago

Which packages are you using?

stream_chat, stream_chat_flutter, stream_chat_flutter_core, stream_chat_persistance, stream_chat_localizations

On what platforms did you experience the issue?

iOS, Android

What version are you using?

stream_chat_localizations: ^7.2.2 stream_chat_flutter_core: ^7.3.0 stream_chat_persistence: ^7.3.0 stream_chat_flutter: ^7.2.2

What happened?

After switching the app to AppLifecycleState.detached, when I open it again, isolate is duplicated. Then my app's memory usage is increased and there is drift error occured.

Steps to reproduce

1. Go to app state to AppLifecycleState.detached
2. Open it again
3. ShareDB opened twice

Supporting info to reproduce

This main is fcm background isolate active_isolates_after_detached

Open app after detached state. active_isolates_open_app_after_detached

detached_log drift_errors

Relevant log output

No response

Flutter analyze output

No response

Flutter doctor output

No response

Code of Conduct

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open for 20 days with no activity.

github-actions[bot] commented 1 week ago

This issue was closed because it has been inactive for 7 days since being marked as stale.