-
|
I was helping a user debug an issue in vips-ffm where they forgot to call vips_init and then tried to load an image from a file, which caused a JVM crash, originating in the I understand that the user should call vips_init first (via I felt like there was potentially a missing guard in the function, but I understand if calling libvips functions without doing the init call could be "undefined behaviour" too. libvips version: 8.17.1 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
|
Hi again @lopcode, libvips will call init for you on some code paths as a convenience, but it's not really supported. You're supposed to call init. Could you call it in vips-ffm somewhere during module load? That's what the ruby / python / etc. bindings do. |
Beta Was this translation helpful? Give feedback.
Ended up figuring out a way to do this cleanly with static initialisers, so there's no need to call the init function manually in vips-ffm any more. Thanks for the tip!