-
Notifications
You must be signed in to change notification settings - Fork 742
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
Skia rendering issues in Windows 10 and Windows 11 in VMWare #17526
Comments
@MartinZikmund do you know if it still happens? I don't recall seeing this recently. |
@lemalcs can you please test against the latest releases of Uno Platform to see if this is still a problem? |
Hi @MartinZikmund , I made these upgrades to the sample project:
I built the project using Visual Studio 2022 Preview 17.13.0.
However, there are still issues in rendering.
The same happens with fresh Uno projects.
On Windows 10 x64 (RTM) (Virtual machine)On Windows 11 x64 (RTM) (Virtual machine)On Windows 7 x64 (Virtual machine)The application crashed with this message:
On Development MachineI used a machine with Windows 11 23H2 to build and test the project. Here, the application renders well. Thanks in advance for your help. |
Thanks for the update. Could you provide the VM software that you are using? This looks like an incorrect OpenGL implementation of some kind. |
I'm using VMWare Workstation 17 Pro, version 17.0.0 build-20800274. |
Thanks. It is likely that VMWare contains faulty or outdated graphics drivers that cause this OpenGL issue to happen, we've seen that a while back for virtualbox and other related hypervisors. Do you know if this happens in Hyper-V ? |
Windows Sandbox is using the same hardware acceleration that the host machine is using, so it's likely that the rendering will be working fine. Searching for it, we had a similar issue (#10484) when using GTK on VMs. One if the ways to work around it is to use software rendering with this in your if (host is UI.Runtime.Skia.Wpf.WpfHost wpf)
{
wpf.RenderSurfaceType = UI.Runtime.Skia.Wpf.RenderSurfaceType.Software
}
host.Run(); |
Discussed in #17411
Originally posted by lemalcs July 8, 2024
Hello, I have a Skia project built with Uno Platform but I'm finding rendering issues when running it on some Windows versions.
When you click outside the dark rectangle, it disappears, but shows up again, when you focus on the text boxes.
The expected behavior is that the whole window background is light or dark, depending on the current OS theme.
On Windows 10 x64 Version 1507 (RTM) (OS build 10240)
On Windows 11 Pro (x64) Version 23H2 build 22631.3593:
Interestingly on Windows 7 SP1 x64, it is rendered with any issues:
This is the command I used to publish the project (.NET desktop runtime 8 dependant):
dotnet publish -f net8.0-desktop -c Release -o ./publish
My development environment
dotnet --list-sdks:
When I run the same application in my development environment, it renders as expected:
With dark theme
With light theme
Here is the sample project I used for the tests; it's an almost fresh project I just added two text boxes, two labels, and one button.
Is there any workaround for this problem or something I'm missing around?
I appreciate any help you can provide.
Thanks in advance.
The text was updated successfully, but these errors were encountered: