-
Notifications
You must be signed in to change notification settings - Fork 675
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
ColorPicker: Crash in XAML islands when exiting app #3541
Comments
Seems related to #7260? My workaround is to manually load threadpoolwinrt.dll before Windows.UI.Xaml.dll is loaded. |
That sounds plausible, but unfortunately I'm unsure if we will be getting a fix :( Maybe @namazso can quickly look at the crash and see if it's the same (but the stacktrace does look similar). @Scottj1s is there any chance to "backport" the fix from #7260, if the issue is the same? I can confirm this issue happens on both the WinUI 2 and system XAML color picker. My current (terrible) workaround is calling TerminateProcess on my own process instead of gracefully exiting. An update to WinUI 2.8 with the fix would let me drop this nasty workaround. |
Bump, still an issue |
Unfortunately, the WinUI team is currently spending its time on WinUI 3. To help with this focus, new bugs filed against WinUI 2 are closed in this repo unless they're a security issue or are business critical. |
However, the issues of WinUI 3 have been virtually left unattended, and closing old issues is nothing but a self-deceiving act. I wonder how much you value the feedback from the community. |
Describe the bug
When using ColorPicker in XAML islands, if the app is exited within a short timespan of tearing down a XAML island (or directly after), it will cause an access violation in
Windows.UI.Xaml.dll
.Steps to reproduce the bug
Microsoft.Toolkit.Wpf.UI.XamlHost
NuGet package.<compatibility>
add<maxversiontested Id="10.0.19041.0" />
Expected behavior
The app should not crash
Screenshots
Version Info
NuGet package version:
[Microsoft.Toolkit.Wpf.UI.XamlHost 6.1.2]
Windows app type:
Additional context
This also happens in my C++-based XAML islands app, so this is not an issue specific to the WCT WPF host, it just makes reproduction easier.
The text was updated successfully, but these errors were encountered: