You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
user.Logout caused app crash due to `libc++abi: terminating due to uncaught exception of type std::logic_error: Cannot start a sync session for user '' because this user has been removed.
#8342
Closed
fuermosi777 opened this issue
Aug 27, 2023
· 2 comments
Followed in SwiftUI quick start guide but user.logout always crashes the app due to the error mentioned in the title.
Stacktrace & log output
libc++abi: terminating due to uncaught exception of type std::logic_error: Cannot start a sync session for user '64eacfbc24629d791762efd7' because this user has been removed.
The error message could be improved, but you can't create a sync session for a logged-out user either. So the user.state check should instead look like user.state == .loggedIn.
How frequently does the bug occur?
Always
Description
Followed in SwiftUI quick start guide but user.logout always crashes the app due to the error mentioned in the title.
Stacktrace & log output
Can you reproduce the bug?
Always
Reproduction Steps
In the
ContentView
, I have the following code:The
LoginView()
didn't show up whenuser.logout()
is tapped. The app crashes.Version
v10.42.0
What Atlas Services are you using?
Atlas Device Sync
Are you using encryption?
No
Platform OS and version(s)
iOS 16.4
Build environment
Xcode version: Version 14.3.1 (14E300c)
Dependency manager and version: ...
The text was updated successfully, but these errors were encountered: