SkiaSharp icon indicating copy to clipboard operation
SkiaSharp copied to clipboard

[BUG] Crash using new Maui + Web template project (Net9 specific)

Open LucaCris opened this issue 10 months ago • 3 comments

Description

Using the new Net9 project:

Image

The Web App is ok, but the MAUI App crashes (Windows and Android tested):

Image

Code

I have a test project, private, but the key is that removing this:

<SKCanvasView @ref="canvasView" id="canvasView" OnPaintSurface="PaintSurface" @onclick="OnMouseClick" @onmousemove="(args)=>OnMouseMove(args)"
              style="width: 100%; height: 90%;user-select: none;" class="BG" />

All turns ok (except from no graphics output).

Expected Behavior

No difference between Web and MAUI, because Web is OK with the SKCanvasView present.

Actual Behavior

Exception:

Image

Version of SkiaSharp

3.116.0 (Current)

Last Known Good Version of SkiaSharp

2.88.9 (Previous)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

No response

Devices

No response

Relevant Screenshots

Working web app (FireWorks emulator):

Image

Relevant Log Output


Code of Conduct

  • [x] I agree to follow this project's Code of Conduct

LucaCris avatar Feb 09 '25 16:02 LucaCris

We've found some similar issues:

  • #2648 , similarity score: 82%
  • #3113 , similarity score: 82%

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 Feb 09 '25 16:02 similar-issues-ai[bot]

9.0.2 update did not solve this problem. Thanks for watching... 😄

LucaCris avatar Feb 16 '25 09:02 LucaCris

Up, thanks.

LucaCris avatar Mar 19 '25 16:03 LucaCris