mono / SkiaSharp

SkiaSharp is a cross-platform 2D graphics API for .NET platforms based on Google's Skia Graphics Library. It provides a comprehensive 2D API that can be used across mobile, server and desktop models to render images.
MIT License
4.53k stars 540 forks source link

[BUG] System.AccessViolationException when using SKCodec.GetScaledDimensions() #2645

Closed mpbraithwaite closed 10 months ago

mpbraithwaite commented 1 year ago

Description

We are using .net6 We have switched to use version 2.88.6

Now when a call is made to SKCodec.GetScaledDimensions we receive a System.AccessViolationException. The System.AccessViolationException crashes the entire application.

When using version 2.88.5 we do not receive this error. The function returns the SKSizel object as expected.

Code

using SkiaSharp;

var imageBase64 = "/9j/4AAQSkZJRgABAgAAZABkAAD/4QBsRXhpZgAASUkqAAgAAAADADEBAgAHAAAAMgAAABICAwACAAAAAQABAGmHBAABAAAAOgAAAAAAAABHb29nbGUAAAMAAJAHAAQAAAAwMjIwAqAEAAEAAACuAQAAA6AEAAEAAAA/AQAAAAAAAP/uAA5BZG9iZQBkwAAAAAH/2wCEAAYEBAQFBAYFBQYJBgUGCQoIBgYICgwKCgoKCgwPDAwMDAwMDwwODg8ODgwSEhQUEhIaGhoaGh4eHh4eHh4eHh4BBwcHDAsMFw8PFxoUERQaHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHv/AABEIAT8BrgMBEQACEQEDEQH/xACfAAEAAQUBAQEAAAAAAAAAAAAAAQIEBQYHAwgJAQEBAQEBAQEAAAAAAAAAAAAAAQIDBAUGEAABAwIEAwQIAggEBQMFAAABAAIDEQQhEgUGMUEHUWEiE3GBkaEyQhQIUpKxwdFicoIjM+HxUxWiQyQ0FvCyJcLSc0Q1EQEBAQEAAgICAgIBBQAAAAAAARECIQMxEkEEUSJhMoGR4UJSE//aAAwDAQACEQMRAD8A+qUBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE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Z5vd/rXcl73yhAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBBjtclkZYPDGF2bA0FQB3rPfw36/wDZqrOC8te9S9xHAFZWLaRzuwqKtp3GnAqMsbcPd2H2IrFXJObgVWVo/tQeDi7HKCo1FOd54tIPoRqKqnLwxUVQ8kccVrGa8CGmtaD0lK1yrtxTAYhYemPbM8HwgnvCzY3FWZ9MQfYp4EtLs3BGapdSuC1GK2HY0cb9yWQkcGhrswLjSrgMBj2rv6v9nm/Z/wBa7OvY+WICAgICAgICAgICAgICAgICAgICAgICAgICD//Z";
var image = System.Convert.FromBase64String(imageBase64);

using var stream = new SKMemoryStream(image);
SKCodec codec = SKCodec.Create(stream, out SKCodecResult sKCodecResult);

_ = codec.GetScaledDimensions(0.4f);

Expected Behavior

That we would receive an SKSizel object.

Actual Behavior

Application crash.

Version of SkiaSharp

Other (Please indicate in the description)

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 10 and 11. Havent got past using this version on developer laptops so far.

Devices

No response

Relevant Screenshots

image

Relevant Log Output

No response

Code of Conduct

intenzive commented 1 year ago

We are experiencing the same behavior after updating to 2.88.6.

cvium commented 1 year ago

We are also experiencing this issue and have been forced to downgrade to 2.88.5, which is rather unfortunate given the CVE.

EDIT: The problem also exists in 2.88.6-preview.1.2, which updates libjpeg-turbo and harfbuzz. PNG works fine, so I'm guessing the cause is somewhere in libjpeg-turbo

i255 commented 1 year ago

I am also affected by this issue. There is no workaround as I can see. Please give us a stable solution for the CVE. Upgrading only the WebP library would be sufficient.

mpbraithwaite commented 12 months ago

Anyone know how the tickets ae triaged and prioritized in this project? I was hoping we might have a fix for this issue. Thanks.

Webreaper commented 12 months ago

Pretty sure @mattleibow maintains this in his spare time as/when he can. So I don't think there's any guarantees, although I suspect he'll have it on his radar.

i255 commented 12 months ago

Spare time? SkiaSharp documentation hosted on learn.microsoft.com apparently creates a misleading belief, that the project is supported by Microsoft.

mpbraithwaite commented 10 months ago

Hi,

Have just upgraded to the latest 2.88.7 version and it looks like the app crashing behaviour on GetScaledDimensions is fixed.

Will continue with some more testing and if all looks good will resolve this ticket.

Thanks

mattleibow commented 10 months ago

That is very good to hear! Thanks for following up.

mpbraithwaite commented 10 months ago

After internal testing I am able to close this ticket. We no longer see this behaviour with version 2.88.7