App Crashes when ChatThreadListController is synchronized in ChatThreadListVC or our own VC #3363
Labels
🐞 Bug
An issue or PR related to a bug
🌐 SDK: StreamChat (LLC)
Tasks related to the StreamChat LLC SDK
What did you do?
I tried 3 scenarios.
What did you expect to happen?
The app should not crash
What happened instead?
The app crashed with the following error:
"StreamChat/DatabaseContainer.swift:255: Fatal error: Background context is read only, but calling actions() created changes"
GetStream Environment
GetStream Chat version:
GetStream Chat frameworks: StreamChat, StreamChatUI
iOS version:
Swift version:
Xcode version: 15.1
Device: iPhone Pro 15 Simulator
Additional context
I added some breakpoints and this is the stack triggering the fatal error
Also, if I disconnect the streamClient after enter background, the app will not crash when foreground. However, if I reconnect after foreground, it still crashed.
The text was updated successfully, but these errors were encountered: