-
Notifications
You must be signed in to change notification settings - Fork 107
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeInitializationException in PointCollection regression in 0.8.2 #971
Comments
Sorry for posting unfinished issue at first, GitHub submitted prematurely. @anawishnoff Any chance you could add 21H1 (19043) to the Windows version table in the issue template? Having to add that row manually every time for the current public release is getting a bit old at this point. |
@Marv51 Created microsoft/microsoft-ui-xaml#5693 to fix the missing OS version :) |
@Scottj1s Possible C#/WinRT projection issue? |
Looks very much like a regression in #849. However, setting |
Setting CsWinRTIIDOptimizerOptOut won't help here - the problem is in Microsoft.WinUI.dll (WinUI 3 projection assembly). The IIDOptimizer should be rewriting the type reference to ABI.Windows.Foundation.Point as coming from winrt.runtime.dll, not Microsoft.WinUI.dll |
@j0shuams Did you already have a chance to look at this? Are you able to reproduce the crash? This issue is very important for me as it makes the |
@Marv51 Hi, I have just returned from vacation and am starting in on this. Thanks for your patience. |
Describe the bug
Crashing exception in PointCollection introduced in 0.8.2
Steps to reproduce the bug
Adding this line to an empty WinUI 3 desktop project results in an exception:
System.TypeInitializationException: The type initializer for '<SignatureCache>System.Collections.Generic.IList'1<Windows.Foundation.Point>' threw an exception.'
With inner exception:
TypeLoadException: Could not load type 'ABI.Windows.Foundation.Point' from assembly 'Microsoft.WinUI, Version=3.0.0.0, Culture=neutral, PublicKeyToken=de31ebe4ad15742b'.
Stack Trace
Version Info
NuGet package version:
WinUI 3 - Windows App SDK 0.8: 0.8.2
Was working in 0.8.1
Windows app type:
Additional context
Clear regression, most likely CsWinRT related. Impact: Crash on launch, blocks us completely.
The text was updated successfully, but these errors were encountered: