C:\Users\MMMM\.julia\artifacts\GUID\bin\librsvg-2-2.dll is either not designed to run on Windows or it contains an error

Anytime I am trying to add a package that uses vector graphics, it fails precompilation with the window popup error:
“C:\Users\MMMM.julia\artifacts\GUID\bin\librsvg-2-2.dll is either not designed to run on Windows or it contains an error…”

Examples of failing packages:

✗ Gtk
✗ Rsvg
✗ GtkReactive
✗ Luxor
✗ Javis

I tried installing a new version of MINGW but Idk how Julia is using this dll and where is it taking it from.

I used Library() from DependencyWalker and I put the path to librsvg-2-2.dll.
Here is the result:
:black_medium_square: C:/Users/MMM/.julia/artifacts/a4fc68e8895ecbaf6a8d263c8c4ab2e6326f0ec5/bin/librsvg-2-2.dll
✗ libcairo-gobject-2.dll (NOT FOUND)
✗ libglib-2.0-0.dll (NOT FOUND)
✗ libpangocairo-1.0-0.dll (NOT FOUND)
:black_medium_square: C:\Users\MMM.julia\juliaup\julia-1.11.6+0.x64.w64.mingw32\bin\libgcc_s_seh-1.dll
:black_medium_square: C:\Users\MMM.julia\juliaup\julia-1.11.6+0.x64.w64.mingw32\bin\libwinpthread-1.dll
:black_medium_square: C:\Windows\System32\msvcrt.dll
:black_medium_square: C:\Windows\System32\KERNELBASE.dll
:black_medium_square: C:\Windows\System32\KERNEL32.DLL
:black_medium_square: C:\Windows\System32\KERNELBASE.dll
:black_medium_square: C:\Windows\System32\msvcrt.dll
:black_medium_square: C:\Windows\System32\KERNELBASE.dll
:black_medium_square: C:\Windows\System32\KERNEL32.DLL
:black_medium_square: C:\Windows\System32\KERNELBASE.dll
:black_medium_square: C:\Windows\System32\bcryptPrimitives.dll
✗ libxml2-2.dll (NOT FOUND)
:black_medium_square: C:\Windows\System32\msvcrt.dll
:black_medium_square: C:\Windows\System32\KERNELBASE.dll
✗ libgdk_pixbuf-2.0-0.dll (NOT FOUND)
:black_medium_square: C:\Windows\System32\KERNEL32.DLL
:black_medium_square: C:\Windows\System32\KERNELBASE.dll
:black_medium_square: C:\Windows\SYSTEM32\USERENV.dll
:black_medium_square: C:\Windows\System32\RPCRT4.dll
:black_medium_square: C:\Windows\System32\KERNELBASE.dll
✗ libgobject-2.0-0.dll (NOT FOUND)
:black_medium_square: C:\Windows\System32\WS2_32.dll
:black_medium_square: C:\Windows\System32\RPCRT4.dll
:black_medium_square: C:\Windows\System32\KERNELBASE.dll
✗ libcairo-2.dll (NOT FOUND)
✗ libpango-1.0-0.dll (NOT FOUND)
✗ libgio-2.0-0.dll (NOT FOUND)

Any suggestions?
Thanks!

Did you try to delete the artifact and re-install it?

I removed the librsvg-2-2.dll from the .julia/artifacts/GUID folder, remove packages that failed precompilation and reinstalled them.
Now it cannot find the module:
“Failed to precompile Javis [78b212ba-a7f9-42d4-b726-60726080707e] to “C:\Users\MMM\.julia\compiled\v1.11\Javis\jl_9101.tmp”.
ERROR: LoadError: InitError: could not load library “C:\Users\MMM.julia\artifacts\a4fc68e8895ecbaf6a8d263c8c4ab2e6326f0ec5\bin\librsvg-2-2.dll”
The specified module could not be found.”

What do I need to do to recreate the artifact?

BTW this is in a new empty environment created with ] activate .
It looks like the artifacts are global how do I trigger recreation?

There is a folder:

.julia/compiled/v1.11/<packagename>

which you can delete.

You can also delete:

.julia/packages/<packagename>

And then re-install the package.

Tried it multiple times (deleting all Gtk, Rsvg, Luxor, Javis from packages and compiled) - package fails precompilation because it cannot find the dll:
"PkgPrecompileError: The following 1 direct dependency failed to precompile:

Javis

Failed to precompile Javis [78b212ba-a7f9-42d4-b726-60726080707e] to “C:\Users\MMM\.julia\compiled\v1.11\Javis\jl_5D96.tmp”.
ERROR: LoadError: InitError: could not load library “C:\Users\MMM.julia\artifacts\a4fc68e8895ecbaf6a8d263c8c4ab2e6326f0ec5\bin\librsvg-2-2.dll”
The specified module could not be found.

during initialization of module Librsvg_jll
in expression starting at C:\Users\MMM.julia\packages\Gtk\JDeJF\src\Gtk.jl:2
in expression starting at stdin:6
ERROR: LoadError: Failed to precompile Gtk [4c0ca9eb-093a-5379-98c5-f87ac0bbbf44] to “C:\Users\MMM\.julia\compiled\v1.11\Gtk\jl_60D1.tmp”.

It looks like I need to reinstall Julia or at least remove all artifacts and start from scratch…

I think I found it - I had to remove module “Librsvg_jll” just like it said in the error message:

“during initialization of module Librsvg_jll”

Thanks, I think that solved it!

It did not. Nothing suggested above did anything to solve the problem, because it possibly couldn’t. What solved your issue was