You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SKImage.FromPicture method throws System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Description
SKImage.FromPicture method throws
System.AccessViolationException: 'Attempted to read or write protected memory. This is often an indication that other memory is corrupt.'
Call Stack:
The issue is reproduced using any V3 version of the SkiaSharp package.
The code works as expected when using the V2 version.
The issue is reproduced both on Windows and Linux (reproduced via Docker).
Code
Visual Studio solution that reproduces the issue: SkiaSharpIssue.zip
Program.cs
SkiaSharpIssue.csproj
Expected Behavior
Expected behavior of the code is that the file 'picture.png' should be created.
Actual Behavior
Actual behavior of the code is that the System.AccessViolationException is thrown.
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
Devices
Relevant Screenshots
No response
Relevant Log Output
Code of Conduct
The text was updated successfully, but these errors were encountered: