-
Type: Task
-
Resolution: Works as Designed
-
Priority: 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
- LoginAsync anonymously
- Get PartitionSyncConfiguration
- 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
Just hangs unfortunately
Relevant log output
No response