dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.19k stars 1.74k forks source link

[9.0 RC2, Windows] Windows debugger crashes often with SkiaSharp 3.0 Preview 5.4, works with Preview 4.1 #25562

Open janne-hmp opened 2 hours ago

janne-hmp commented 2 hours ago

Description

Windows debugger crashes in the opening screen of my app GnollHack when SkiaSharp is updated to 3.0 Preview 5.4. The game works without debugger. The debugger works when SkiaSharp 3.0 Preview 4.1. is used instead. It does not seem to happen every time, but somewhat randomly.

Image

Image

Steps to Reproduce

  1. Build and run the game in https://github.com/hyvanmielenpelit/GnollHackMAUIEasyBuild using a debugger on Windows (make sure that SkiaSharp 3.0 Preview 5.4 is being used)
  2. Pretty often when starting the game, the debugger crashes almost immediately upon entering the starting screen

Link to public reproduction project repository

https://github.com/hyvanmielenpelit/GnollHackMAUIEasyBuild

Version with bug

9.0.0-rc.2.24503.2

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows 10.0.22621

Did you find any workaround?

No, the debugger crashes always with SkiaSharp 3.0 Preview 5.4. Need to downgrade to Preview 4.1 or Preview 3.1.

Relevant log output

No response

similar-issues-ai[bot] commented 2 hours ago

We've found some similar issues:

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.

janne-hmp commented 2 hours ago

When I disable hot reload, the debugger works again, so it seems to be incompatibility between debugger, hot reload and SkiaSharp 3.0 Preview 5.4.