-
-
Notifications
You must be signed in to change notification settings - Fork 422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Crash with glib #1471
Comments
Your error message looks like this one: #1126. And I really don't understand how you can to the conclusion that this is caused by |
Apologies for not being detailed enough. It also isn't a race condition. I can set a breakpoint or delay and it still crashes when calling Swapping the order of MagickNET and IronPDF initialization only delays the problem. While the crash might be avoided, it still fails as described in #1472 . I'll try to figure out my options... |
If I exclude the call to
|
Maybe related to this, I've noticed that IronPDF comes with a number of other dependencies besides Chrome:
Could there be any incompatibilities? |
Could we close one of the two issues because this all seems to be related to IronPDF? p.s. Would you be willing to share the versions of the SixLabors libraries? |
Yeah, it seems so, but I'm going to close both as it's not reproducible in Docker, as mentioned in #1472 |
Magick.NET version
"Magick.NET-Q8-x64" Version="13.4.0"
Environment (Operating system, version and so on)
Linux (Mint 21.2 (Ubuntu-Based))
Description
When running in multi-threaded context (e.g. ASPNET Core), using MagickNET is hard crashing when another process is depending on glib (I think).
As described in https://rachelbythebay.com/w/2017/01/30/env/ and in glib manual:
The app crashes particularly when reaching
Environment.SetEnv("MAGICK_TEMPORARY_PATH", TemporaryDirectory);
.Here's a log excerpt:
Steps to Reproduce
https://gist.github.com/ccremer/ced17eb8c177003bd81ba727c2f5bda7
Included in the gist is IronPDF, a library to render PDFs. Without this library, MagickNET doesn't crash, but since IronPDF depends on Chrome, and Chrome itself on glib as well, the program will crash when you start it up.
However, if you swap the order of the boot from
to
then it works.
Still, calling
setenv
is forbidden in this context.Is it possible we can skip this and setup the required environment variables by ourselves, without MagickNET trying to do it again?
The text was updated successfully, but these errors were encountered: