ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  skiasharp package incompatible?
Posted by David S on May-16-2025 00:05
I installed the latest version of skiasharp (3.119) in my .net 8 project, and now I'm getting this error when making a chart:

Error producing chart. : Method not found: 'System.ReadOnlySpan`1<Byte> SkiaSharp.SKPixmap.GetPixelSpan()'.

Is this a known bug?  Thanks.

  Re: skiasharp package incompatible?
Posted by Peter Kwan on May-16-2025 04:18
Hi David S,

SkiaSharp 3.119 is incompatible with the SkiaSharp 2.88 used in ChartDirector. There are several code breaking changes in SkiaSharp 3.119. See:

https://github.com/dotnet/machinelearning/issues/7413

We are using SkiaSharp 2.88 instead of SkiaSharp 3.x because SkiaSharp 3.x is too new and does not even have documentation. SkiaSharp is published by Microsoft and there are only documentation up to 2.88. See:

https://learn.microsoft.com/en-us/dotnet/api/skiasharp

If you can, you may consider to use SkiaSharp 2.88 instead. If you must use SkiaSharp 3.x, nuget will automatically apply SkiaSharp 3.x to ChartDirector too, causing the crash. In this case, I can modify the ChartDirector nuget package to prevent nuget from changing the ChartDirector SkiaSharp version.

Best Regards
Peter Kwan