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

[Bug]: GetInstanceAsync never completes. GetInstance works fine.

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

      What happened?

      Pretty self-explanatory, but GetInstanceAsync never completes. I have a Xamarin app repo for you to debug with, just need an email to give you access. It's a simple sandbox app with no fancy threading or anything.. and GetInstance always works so I don't think it's my code. LoginAsync does work in the same method but only after the first time the app runs for some reason.

      Root issue may be related to my other bug about LoginAsync also hanging? https://github.com/realm/realm-dotnet/issues/3090

      Repro steps

      1. LoginAsync anonymously
      2. Get PartitionSyncConfiguration
      3. GetInstanceAsync supplying the sync config

      Result: never completes

      Version

      10.18.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

      Xamarin.iOS running iOS 16

      Code snippets

      In my sandbox, update the sync version to async and you will see it hang. In FolderClientService:

      // need to use sync version for now.. async hangs
      _projectRealm = Realms.Realm.GetInstance(_projectSyncConfig);

      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
      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: