-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
PipelineVisualFactory BlurEffect crash when run on VM #4855
Comments
Hello kjean667, thank you for opening an issue with us! I have automatically added a "needs triage" label to help get things started. Our team will analyze and investigate the issue, and escalate it to the relevant team if possible. Other community members may also look into the issue and provide feedback 🙌 |
@Sergio0694 any of this looks familiar to you? Is there some Win2D or other device check we may be missing for WindowsAppSDK that we wouldn't need to do in UWP? (Or maybe this is an issue there too?) |
That |
@Sergio0694 Yes, Stack trace of
As a side note, the unhandled exception does not crash the application (but is still thrown as an unhandled exception) if it is triggered from the MainWindow (class Window) object. However if the blur effect is created by a
|
I also received error reports from users for the same issue, and it doesn't seem to be limited to just VMs. The user is running Windows 11 (10.0.22621.1555) on a Dell desktop model, OptiPlex 980, and reported the same error. To test it out, I installed the WinUI3-developed app on a VM and found that the Fallback Color wasn't displayed correctly. In contrast, the UWP-developed app displayed the Blur effect correctly despite having the same code. I didn't encounter the issue on the devices I tested, but after the app was released, several errors were reported on various devices, and I'm not sure of the cause. |
Solution: #4963 (comment) |
Describe the bug
Using PipelineVisualFactory effects in XAML, such as BlurEffect or GrayscaleEffect from the CommunityToolkit.WinUI.UI.Media library, throws an unhandled exception when application is run on a virtual machine (Hyper-V).
This may cause the application to crash.
Regression
Unknown
Reproducible in sample app?
Steps to reproduce
In Visual Studio, create a new project using the template "Blank App, Packaged (WinUI 3 in Desktop)".
Add the nuget package CommunityToolkit.WinUI.UI.Media to the project.
Use the following XAML in MainWindow.xaml:
Package the application into an msix and install the package in a Windows installation running in a Hyper-V VM.
Start the application.
Check the EventLog in Windows, where the exception will be logged under the Program category.
Expected behavior
Either:
or
The application shall not crash.
Stack trace for the unhandled exception
Windows Build Number
Other Windows Build number
Windows 10 22H2 (Build 19045.2006)
App minimum and target SDK version
Other SDK version
No response
Visual Studio Version
2022
Visual Studio Build Number
17.5.1
Device form factor
Desktop
Nuget packages
CommunityToolkit.WinUI.UI.Media (7.1.2)
Microsoft.Windows.SDK.BuildTools (10.0.22621.755)
Microsoft.WindowsAppSDK (1.2.221109.1)
System.Diagnostics.EventLog (7.0.0)
Additional context
Application is built as 64-bit and run on a Hyper-V VM under Windows 10 21H2 (19044.2604) on an Intel Core i5-7500T CPU.
Help us help you
No.
The text was updated successfully, but these errors were encountered: