Uploaded image for project: 'Realm .NET SDK'
  1. Realm .NET SDK
  2. RNET-874

[Bug]: await LogInAsync(Credentials.Anonymous) always hangs the first time app runs

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None

      What happened?

      The first time I install and run the app, var user = await realmApp.LogInAsync(Credentials.Anonymous()); _always hangs. No output or exceptions. I can always reproduce and I've done so on multiple simulators and devices. I'm not doing anything special of weird with threading and it always works the second time I run the app.

      I have a simple Xamarin sandbox app that I'm using for testing Realm. I can invite you to the GitHub repo if you give me an email. It will compile and run with no problems.

      Repro steps

      1. Install and run the app for the first time
      2. Put a breakpoint on LoginAsync and another on the next line

      Result: App hangs. Need to re-run it and the second time it won't hang.

      Version

      10.18.0 but I can also repro on 10.17.0

      What SDK flavour are you using?

      MongoDB Atlas (i.e. Sync, auth, functions)

      What type of application is this?

      Xamarin

      Client OS and version

      iOS 16 but I saw it on previous versions (15 for sure.. I don't expect it's iOS related)

      Code snippets

      Once I give you access to my repo you can break on the LoginAsync call in FolderClientService.

      Stacktrace of the exception/crash you're getting

      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
      It just hangs unfortunately.
      

      Relevant log output

      No response

            Assignee:
            nikola.irinchev@mongodb.com Nikola Irinchev
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: