Closed KernelDeimos closed 1 month ago
Without a GDB trace, it will be hard to find the exact reason. Anyway, I see a bunch of precompiled libraries here https://github.com/discord/lilliput/tree/master/deps/linux/lib, including FFmpeg, OpenCV, and all dependencies etc. go-fitz/mupdf does the similar with libmupdfthird
which also includes libjpeg, harfbuzz etc. So, in the end, you get a mix of incompatible static libraries with probably different versions.
You can just use go-fitz with -tags extlib
, i.e. external library, where bundled libraries will not be used, or check if that other library provides a way to use external and not bundled libraries.
To make matters worse I was also doing a static build, which somehow I didn't think to mention here. I was trying to achieve a really small docker image using a mutli-stage build, which is what necessitated static linking. I've since given up again so I'll try this again later and see how it works out.
Closing, nothing I can do here.
Simply importing
go-fitz
causes lilliput to segfault when it tries to resize an image. This is unfortunate because I'd like to use these two packages together.I posted a duplicate issue on lilliput as well because I imagine it will take some investigation to determine the cause.
Here's the stack trace immediately following my call to
.Transform(...)
on lilliput: