Closed DigitalEntry closed 8 months ago
We’re going to need a lot more information please.
I would recommend creating and sharing a program that replicates the issue.
As a side note.
ImageSharp.Drawing 2.0.1 is not binary compatible with ImageSharp 4-alpha, you should use latest stable 2.1.0 with 3.1.0
You are incorrectly declaring the first drawing action as async.
Creating the same font 3 times is inefficient.
@DigitalEntry Do you have this additional information? Otherwise, we will have to close this issue.
Not at this time. I created another program to try to reproduce the error using the same code in the original program and it worked fine. I'll have to look into it more to see if I can find what's creating this error
@JimBobSquarePants So I did end up fixing the issue, I don't know what was wrong but I figured since I only changed a few things and it stopped working I could maybe try retracing my steps and see if anything I changed somehow made it stop working. I implemented a MemoryCache to cache users a little while back so I switched from MemoryCache to LazyCache just to see what would happen and that fixed my problem. I don't know how but it works fine now.
Hmmm... I wonder whether buffers in your cache were being disposed of prematurely in your application. I'll close this just now but if you have further problems don't hesitate to open a new issue.
Prerequisites
DEBUG
andRELEASE
modeImageSharp version
4.0.0-alpha.0.1
Other ImageSharp packages and versions
ImageSharp.Drawing 2.0.2-alpha.0.1
Environment (Operating system, version and so on)
Windows 11
.NET Framework version
8.0
Description
The application just crashes when trying to mutate an image. I have tried multiple images and have gotten the same error. I have tried on versions 1.0.4, 2.1.6, 3.1.0 and now 4.0.0 with all of them doing the same thing. I was able to make a few dumps of the program and got these 2 errors
Steps to Reproduce
I do not know how I would reproduce it since it doesn't happen all the time, Most of the time when trying to mutate an image the program just shuts down but then others it will work fine.
Images