Closed singhsays closed 7 months ago
This line was commented on as it started crashing from some versions. I wanted to get back to this sometime. As I see, it still crashes, you tested this on what OS?
Thanks for looking into this. I tested it on a MacOS M3 Macbook (arm64) and Debian 12 (amd64). I see that it fails on ImageDPI which I didn't test. I tested ImagePNG. Let me look more into it.
I'll revert the change to ImageDPI till I can figure it out and fix
Ok, I merged this for ImagePNG. I still have no idea what happens in ImageDPI, if at least it crashes with "double free".
Without this change pixmap allocation is held till GC, increasing memory usage, which adds up quickly with a large pdf with lots of pages
e.g. alloc_space:
isuse_space: