#5035·libvips

`VIPS_INIT` randomly hangs for ~6s

Author: JulianioloCreated May 8, 2026Updated May 21, 2026
Labelsbug

Bug report

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: Basically just calling VIPS_INIT. I have this happening in a pretty complex application, but everything I do before VIPS_INIT is setting up some spdlog loggers and doing std::set_terminate.

Environment (please complete the following information)

  • OS: Windows 11
  • Vips: 8.16.0 (conan)

Additional context It happens pretty much randomly, sometimes multiple times in succession, then other times it is not possible to have it hang at all. Thus I am often not able to replicate this. I also have an exception set in Windows Defender for the folder of the executable (technically a parent folder), so I don't think it should be that?

I managed to capture it it with a profiler (verysleepy) once, this is what the callstack looks like:

Image

I tried to investigate myself, but I was not able to locate the definition of vips_g_input_stream_get_type. Where is that defined?

I was not able to upgrade to a later version of libvips yet, maybe that fixed it already?