Closed Joost-Jens-Luminis closed 1 month ago
Is something else interfering with this._linePaint
(maybe disposing of it)?
this._linePaint is a property that is created on startup of the class and never disposed of during the runtime of the class. There is also only one draw action running at the same time ever, so nothing is changed on linePaint while canvas.DrawPath is doing it's thing..
It turns out it was a driver issue. The client had out-of-date drivers.
Description
Some of our users are running into the following error:
System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
We have unfortunately been unable to reproduce it on our systems.The stacktrace from the even log brings us to the following line of code causing the issue:
The following snippet is the method in which the DrawCanvas method is called. We are certain this is done on the main thread and we don't have a threading issue here:
Code
Expected Behavior
No response
Actual Behavior
No response
Version of SkiaSharp
2.88.3 (Current)
Last Known Good Version of SkiaSharp
2.88.2 (Previous)
IDE / Editor
Visual Studio (Windows)
Platform / Operating System
Windows
Platform / Operating System Version
It's a WinUI 3 application running on Windows 10 Pro 22H2 (OS Build: 19045.4651). We are also using version 2.88.8 of the Skiasharp.Views.Winui.
Devices
No response
Relevant Screenshots
No response
Relevant Log Output
Code of Conduct