Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Windows - unable to load dll - they are all there though #364

Unanswered
andreas-it-dev asked this question in Q&A
Discussion options

Hi,
i've got an issue on windows 11 and am unsure if i screwed up, if it is a bug or some weird windows thing..

this is the error message when trying to process an image from within rails:

VIPS-WARNING **: 06:59:07.223: unable to load "C:\Ruby31-x64\msys64\ucrt64/lib/vips-modules-8.13\vips-heif.dll" -- 'C:\Ruby31-x64\msys64\ucrt64/lib/vips-modules-8.13\vips-heif.dll': Das angegebene Modul wurde nicht gefunden.
GModule-CRITICAL **: 06:59:07.224: g_module_make_resident: assertion 'module != NULL' failed
VIPS-WARNING **: 06:59:07.236: unable to load "C:\Ruby31-x64\msys64\ucrt64/lib/vips-modules-8.13\vips-jxl.dll" -- 'C:\Ruby31-x64\msys64\ucrt64/lib/vips-modules-8.13\vips-jxl.dll': Das angegebene Modul wurde nicht gefunden.
GModule-CRITICAL **: 06:59:07.236: g_module_make_resident: assertion 'module != NULL' failed
VIPS-WARNING **: 06:59:07.248: unable to load "C:\Ruby31-x64\msys64\ucrt64/lib/vips-modules-8.13\vips-magick.dll" -- 'C:\Ruby31-x64\msys64\ucrt64/lib/vips-modules-8.13\vips-magick.dll': Das angegebene Modul wurde nicht gefunden.
GModule-CRITICAL **: 06:59:07.248: g_module_make_resident: assertion 'module != NULL' failed
VIPS-WARNING **: 06:59:07.260: unable to load "C:\Ruby31-x64\msys64\ucrt64/lib/vips-modules-8.13\vips-openslide.dll" -- 'C:\Ruby31-x64\msys64\ucrt64/lib/vips-modules-8.13\vips-openslide.dll': Das angegebene Modul wurde nicht gefunden.
GModule-CRITICAL **: 06:59:07.260: g_module_make_resident: assertion 'module != NULL' failed
VIPS-WARNING **: 06:59:07.273: unable to load "C:\Ruby31-x64\msys64\ucrt64/lib/vips-modules-8.13\vips-poppler.dll" -- 'C:\Ruby31-x64\msys64\ucrt64/lib/vips-modules-8.13\vips-poppler.dll': Das angegebene Modul wurde nicht gefunden.
GModule-CRITICAL **: 06:59:07.273: g_module_make_resident: assertion 'module != NULL' failed
Completed 500 Internal Server Error in 2051ms (ActiveRecord: 13.3ms | Allocations: 295138)

however, the files are all there:

image

if that is important: vips sits at c:\vips-dev:

image

and i have c:\vips-dev\bin in my path:

image

any help is highly appreciated.

thanks

You must be logged in to vote

Replies: 2 comments 1 reply

Comment options

did some more tests. vips itself works, but fails via ruby

image

You must be logged in to vote
0 replies
Comment options

I was able to reproduce this, it looks like a packaging issue in MSYS2 where the optional dynamic modules are distributed when you install libvips via pacman with:

$ pacman -S mingw-w64-ucrt-x86_64-libvips

(which is done automatically during gem install ruby-vips, see #332)

But the dependencies of these optional dynamic modules are not installed. To fix this you can do either:

$ pacman -S --asdeps mingw-w64-ucrt-x86_64-libheif mingw-w64-ucrt-x86_64-libjxl mingw-w64-ucrt-x86_64-imagemagick mingw-w64-ucrt-x86_64-openslide mingw-w64-ucrt-x86_64-poppler

Or simply remove (or rename) the directory where these dynamic modules resides (i.e. C:\Ruby31-x64\msys64\ucrt64\lib\vips-modules-8.13).

Note that if you want to use the libvips from https://github.com/libvips/build-win64-mxe, you can do:

$ pacman -Rcns mingw-w64-ucrt-x86_64-libvips

And set the RUBY_DLL_PATH env accordingly (e.g. to C:\vips-dev-8.14\bin).

You must be logged in to vote
1 reply
Comment options

Ah that makes more sense. That PR is probably still useful -- we shouldn't be calling make_resident if module load fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /