[skia] Issue with SKXamlCanvas
- Process Crashes when Exceptions are Thrown in PaintSurface
Event Triggered by Background Thread
#15123
Labels
area/skia ✏️
Categorizes an issue or PR as relevant to Skia
difficulty/medium 🤔
Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI
kind/bug
Something isn't working
project/third-party 3️⃣
Categorizes an issue or PR as relevant to 3rd party libraries
Current behavior
I am writing to report an issue I am experiencing with the use of SKXamlCanvas. The problem arises when any exception is thrown within the PaintSurface event, particularly when this event is triggered by a background thread. This situation leads to a crash of my process.
Expected behavior
The expected behavior is that the application should continue to function normally and be able to collect the exception, even if any exception is thrown in the PaintSurface event. Ideally, this could be achieved through the TaskScheduler.UnobservedTaskException event.
How to reproduce it (as minimally and precisely as possible)
To reproduce this issue, please follow the steps below:
You can find my demo in https://github.com/lindexi/lindexi_gd/tree/dde76effc23ebb9ee974b6ec276b242c39a50bdf/JagobawearjiNeewhiqakerki
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
I fixed the issues in mono/SkiaSharp#2720
Reference: #15097
Reference: dotnet/runtime#76367
The text was updated successfully, but these errors were encountered: