Uploaded image for project: 'Realm Cocoa SDK'
  1. Realm Cocoa SDK
  2. RCOCOA-2121

"Cannot start a sync session for user '' because this user has been removed" after deleting user

      How frequently does the bug occur?

      Sometimes

      Description

      After deleting a user, the app crashes. It didn't happen a week ago, but today the error occurs consistently.

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      libc++abi: terminating with uncaught exception of type std::logic_error: Cannot start a sync session for user '64c31c5e274b08f41bf7de09' because this user has been removed.
      (lldb)
      

      Can you reproduce the bug?

      Sometimes

      Reproduction Steps

      1. Login anonymously (top left button) (swipe down the sheet)
      2. Delete account (bottom button)
      Button(role: .destructive) {
          app.currentUser?.delete { error in
              self.error = error
          }
      } label: {
          Text("Delete Account")
      }
      

      Repo

      Version

      13.17.0 and 13.15.1

      What Atlas Services are you using?

      Atlas Device Sync

      Are you using encryption?

      No

      Platform OS and version(s)

      macOS 13.4.1

      Build environment

      Xcode version: 14.3.1
      Dependency manager and version: Swift

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: