Skip to content
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

Update to latest Nuget Packages for WAS/WinUI #1762

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

matthewacme
Copy link

I found an interesting bug, which I don't think is your fault or mine, but instead is a Microsoft Bug.

tldr; Microsoft pushed out an update in November to Windows 11 machines, that causes our app to crash unless all graphic drawing project libraries are upgraded to use the latest AppSDK, BuildTools, and ImplementaionLibrary, if multiple libraries are attempting to simultaneously draw graphic.

We had upgraded to the latest WAS / WinUI build packages for our C# WinUI project.

  • "Microsoft.WindowsAppSDK.1.6.241114003"
  • "Microsoft.Windows.SDK.BuildTools.10.0.26100.1742"
  • "Microsoft.Windows.ImplementationLibrary.1.0.240803.1"
  • "Microsoft.Web.WebView2.1.0.2651.64"

    NOTE: The WebView2 component is a new dependency that must be added to a project that is referencing WAS 1.6.241114003

We are using LiveCharts2 in the Windows implementation of MyRadar (www.myradar.com, if you want to see the project that it is being used on).

Part of the MyRadar system is our own in-house C++ Graphic Engine that draws the weather and CONUS maps. It was built against

"Microsoft.WindowsAppSDK.1.5.240627000"
"Microsoft.Windows.SDK.BuildTools.10.0.26100.1742"
"Microsoft.Windows.ImplementationLibrary.1.0.240122.1"

And of course your current nuget packages in the dev branch are

"Microsoft.WindowsAppSDK.1.5.240627000"
"Microsoft.Windows.SDK.BuildTools.10.0.26100.1742"
"Microsoft.Windows.ImplementationLibrary.1.0.240122.1"

So each of the various components were using slightly different versions of the dependent libraries and on all our our Dev machine and most of our QA team's machines this was no issue...

BUT

We had received a report from customer that they were experiencing a crash of MyRadar anytime they tried to view a page that had a LiveCharts2 chart on it. And, as luck would have it, we finally had one of our QA machines start reproducing the crash.

It took me while but I was able to definitively prove that on some machines (but not all) the 2024-12 Cumulative Update for Windows 11 Version 23H2 causes an error of multiple libraires are attempting to do "Drawing" on the Main UI Thread in the same Application process at the same time, IF they have differing WAS, BuildTools, or ImplementationLibrary versions

So, I have taken your Dev Branch (as of last Friday afternoon) and upgraded it to use the latest versions of those libraries.

AND it appears that the culprit is the 23H2 update (as opposed to the 24H2 update) that causes the error.

@matthewacme
Copy link
Author

Oh and also I had to update your projects references to the latest SkiaSharpView nuget to make the QA machine happy as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant