SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

[BUG] .net maui SkiaSharp crashes

Open lerche27 opened this issue 1 year ago • 4 comments

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

lerche27 avatar Sep 26 '24 14:09 lerche27

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.

similar-issues-ai[bot] avatar Sep 26 '24 14:09 similar-issues-ai[bot]

👎 The problem is caused by the use of WindowsSdkPackageVersion 10.0.19041.41 and not by a missing .UseSkiaSharp().

lerche27 avatar Sep 26 '24 17:09 lerche27

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.

inforithmics avatar Sep 27 '24 05:09 inforithmics

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.

lerche27 avatar Sep 27 '24 07:09 lerche27

Closing this for now as the issue is fixed for both v2 and v3 in the latest preview.

mattleibow avatar Oct 25 '24 16:10 mattleibow