-
Notifications
You must be signed in to change notification settings - Fork 683
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
Using WinUI 2.6.1 in a .net core 3.1 app (XAML island) crashes at startup on older Windows version #5435
Comments
@lhak Would you be able to share a repro project? |
I found a way to reproduce this issue quite easily. Unfortunately, there is no prerelease package of winui that corresponds to the latest release so the winui dll has to be manually copied from the appx package. These are the steps:
The app should now start properly on the latest Windows release but will crash on Windows 1903 with the stacktrace shown above. |
@lhak can you try with this package ? https://www.nuget.org/packages/Microsoft.UI.Xaml/2.6.1-prerelease.210709001 |
@jevansaks agree that #5297 added this? |
Technically, but the switch to OS AcrylicBrush was the precipitating change. :) In any case we should change that logic to only run on 1903 or later because it's trying to set the "new" TintLuminosityOpacity property. I'm on vacation until 7/21 but it's a trivial fix so hopefully someone else can pick it up. |
Well, the code crashes on 1903 even though TintLuminosityOpacity is available on that version. I looked at how this setting was previously handled for the winui AcrylicBrush and I found out that by changing the direct calls to something like this:
the code does not crash anymore and seems to still set the value correctly. However, I am not sure why this works. |
Is this still an issue with 2.6.2 ? |
@asklar Yes, still the same issue |
thanks for confirming. @jevansaks could you take a look? I'm not sure why setting the property via the DP would work but setting it through the accessor would crash. |
From the Terminal team, I've identified the root cause of this issue inside Windows and sent mail to the appropriate folks for triage and prioritization. |
…11031) The upgrade to 2.6 revealed #11003 and microsoft/microsoft-ui-xaml#5435, and is impeding progress on PGO. This reverts commit cfdf03c. Reverts #10996
I can confirm the latest release "2.7.0-prerelease.210913003" fixes this issue for me. |
🎉This issue was addressed in #5781, which has now been successfully released as Handy links: |
Describe the bug
The application based on .net core 3.1 crashes during launch on Windows version 1903 when using WinUI 2.6.1 while version 2.6.0 works fine (just replacing the winui dll in the output directory is sufficient to make it work). The bug does not occur on the latest Windows version (21H1). Attached is the stack trace from windbg:
Steps to reproduce the bug
Steps to reproduce the behavior:
Expected behavior
The application should launch properly
Screenshots
Version Info
NuGet package version:
[Microsoft.UI.Xaml 2.6.1]
Windows app type:
Additional context
The text was updated successfully, but these errors were encountered: