SkiaSharp
SkiaSharp copied to clipboard
[BUG] .net maui SkiaSharp crashes
Description
Skiasharp crashes when the Maui application is created with WindowsSdkPackageVersion 10.0.19041.41. The application works perfectly with 10.0.19041.34.
Code
The best way to share code for larger projects is a link to a GitHub repository: https://github.com/user/repo/tree/bug-123
But, you can also share a short block of code here:
// some C# code here
You can also share some XAML:
<!-- xaml code here -->
Expected Behavior
No response
Actual Behavior
No response
Version of SkiaSharp
2.88.3 (Current)
Last Known Good Version of SkiaSharp
Other (Please indicate in the description)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
Windows 11
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
No response
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
We've found some similar issues:
- #2648 , similarity score: 84%
If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.
Note: You can give me feedback by 👍 or 👎 this comment.
👎 The problem is caused by the use of WindowsSdkPackageVersion 10.0.19041.41 and not by a missing .UseSkiaSharp().
It is this issue https://github.com/mono/SkiaSharp/issues/2999 It is fixed in the Main Branch but no Skiasharp 3 nuget is Released yet.
Thanks for the hint. I really searched for days, but obviously overlooked this entry. If I see it correctly, the current Maui CommunityToolkit versions require this WindowsSDK version, i.e. without a problem solution it is not possible to switch to current versions. Question to the great SkiaSharp team: When will there be a bug-fixed version? Thank you very much for your great work.
Closing this for now as the issue is fixed for both v2 and v3 in the latest preview.