-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
SDK FY21-Q3.
-
1956
Goals
Update nuget to 4.3.0
Expected Results
Not to crash
Actual Results
RealmException: Keychain returned unexpected status code: -34018 is thrown
Realms.Exceptions.RealmException: Keychain returned unexpected status code: -34018 at Realms.NativeException.ThrowIfNecessary (System.Func`2[T,TResult] overrider) [0x0000a] in C:\jenkins\workspace\realm_realm\Realm\Realm\Native\NativeException.cs:57 at Realms.Sync.SharedRealmHandleExtensions.Configure (System.Nullable`1[T] userPersistenceMode, System.Byte[] encryptionKey, System.Boolean resetMetadataOnError, System.String basePath) [0x0007c] in C:\jenkins\workspace\realm_realm\Realm\Realm\Handles\SharedRealmHandleExtensions.cs:234 at Realms.Sync.SharedRealmHandleExtensions.DoInitialFileSystemConfiguration () [0x0000d] in C:\jenkins\workspace\realm_realm\Realm\Realm\Handles\SharedRealmHandleExtensions.cs:198 at Realms.Sync.User.get_Current () [0x00000] in C:\jenkins\workspace\realm_realm\Realm\Realm\Sync\User.cs:49 at App1.MainPage.OnAppearing () [0x00008] in /Users/danield/Projects/realmBug/App1/App1/App1/MainPage.xaml.cs:22 at Xamarin.Forms.Page.SendAppearing () [0x00045] in D:\a\1\s\Xamarin.Forms.Core\Page.cs:406 at Xamarin.Forms.Platform.iOS.PageRenderer.ViewDidAppear (System.Boolean animated) [0x00045] in D:\a\1\s\Xamarin.Forms.Platform.iOS\Renderers\PageRenderer.cs:202 at at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr) at UIKit.UIApplication.Main (System.String[] args, System.IntPtr principal, System.IntPtr delegate) [0x00005] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.10.0.17/src/Xamarin.iOS/UIKit/UIApplication.cs:86 at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) [0x0000e] in /Library/Frameworks/Xamarin.iOS.framework/Versions/13.10.0.17/src/Xamarin.iOS/UIKit/UIApplication.cs:65 at App1.iOS.Application.Main (System.String[] args) [0x00001] in /Users/danield/Projects/realmBug/App1/App1/App1.iOS/Main.cs:16
Steps to Reproduce
Created new xamarin forms application and added realm nuget 4.3.0 and simply calling User.Current is enough to crash.
Code Sample
https://github.com/ddomengeaux/realm-keychain-bug.git
Version of Realm and Tooling
- Realm Object Server Version: 3.28.2
- Flavor: Realm Cloud
- Client SDK Version: 4.3.0
- Client OS & Version: iOS 13.3