You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We've updated our Xamarin.Forms app to Realm 11.4.0 (together with bunch of other changes) and after we were just about to make a release the release build on UWP would fail with the following error
Severity Code Description Project File Line Suppression State
Error MCG0017: MCG0017:NotWinRTType Cannot marshal generic Windows Runtime types with a non Windows Runtime type as a generic type argument. Check the generic arguments of type 'System.Collections.Generic.KeyValuePair`2<Realms.Native.String
Value, Realms.Native.StringValue>'. RealmTest.UWP
After a lot of digging, we realized that the culprit was in the Realm DB update PR. After that, I created an empty Xamarin.Forms app, installed Realm 11.4.0 and ran the UWP app in the release mode and received the exact same error.
We downgraded realm just one version to 11.3.0 and the issue is gone. You can find the sample app attached to the issue.
Repro steps
Download the sample
Select Release build with x64 UWP target
Try to run the app
Observe a compilation failure with the above mentioned error
Version
11.4.0
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Xamarin
Client OS and version
Windows 11 Pro Version 22H2, OS build 22621.2215, Windows Feature Experience Pack 1000.22662.1000.0
Thanks for reporting this. The issue is that I started relying on KeyValuePair<TKey, TValue> being a blittable struct when its generic arguments are blittable and marshaling it in #3261, but on UWP the type apparently is annotated for WinRT marshaling. We should have a fix out shortly.
What happened?
We've updated our Xamarin.Forms app to Realm 11.4.0 (together with bunch of other changes) and after we were just about to make a release the release build on UWP would fail with the following error
After a lot of digging, we realized that the culprit was in the Realm DB update PR. After that, I created an empty Xamarin.Forms app, installed Realm 11.4.0 and ran the UWP app in the release mode and received the exact same error.
We downgraded realm just one version to 11.3.0 and the issue is gone. You can find the sample app attached to the issue.
Repro steps
Version
11.4.0
What Atlas Services are you using?
Atlas Device Sync
What type of application is this?
Xamarin
Client OS and version
Windows 11 Pro Version 22H2, OS build 22621.2215, Windows Feature Experience Pack 1000.22662.1000.0
Code snippets
RealmTest.zip
Stacktrace of the exception/crash you're getting
No response
Relevant log output
The text was updated successfully, but these errors were encountered: