momijizukamori / bookbinder-js

A JS application to format PDFs for bookbinding.
Mozilla Public License 2.0
99 stars 26 forks source link

Imposer stops on certain files without producing output when using "Duplex" #49

Open lordminx opened 1 year ago

lordminx commented 1 year ago

So, I'm having a recurring issue with certain files: When starting the imposition, the "Generate Output" button turns gray and gives the usual "Generating, this might take a while" message, then goes back to "Generate Output", without having produced any files or giving any errors.

By accident, I've produced two files that allow testing it: One works, the second, identical but for a single image added, does not.

Both are pdf 1.6 files generated using Scribus 1.5.8, in case that matters.

Works: blank-notebook-with-index.pdf

Doesn't work: blank-notebook-with-index-with-image.pdf

Imposer Settings: A4, Quarto, Duplex, Signature length 5

Tested in Firefox 114.0.1 on Linux.

(When setting the Imposer to single sided, the second file works but produces a 600MB zip file for some reason, with every file ballooning to 60 MB, where they are ~200KB for file number 1. My guess: Something in file number 2 is causing some loop to run wild, resulting in huge file and thus memory sizes? And if it tries to dublex them, the imposer runs into some file size/memory limit and the thread is silently killed? )

sithel commented 6 months ago

is this still a problem? I might have fixed the large file size issue... let me know?