Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinite loop when appending filename to pages that are too narrow #419

Open
slobo opened this issue Aug 9, 2022 · 0 comments
Open

Infinite loop when appending filename to pages that are too narrow #419

slobo opened this issue Aug 9, 2022 · 0 comments

Comments

@slobo
Copy link

slobo commented Aug 9, 2022

Thanks for the great library. We had our scanner spit out a very narrow page, and when we tried to merge that documents with --footer the merge got stuck. The last message it prints out before consuming 100% CPU is

Page filename footer needs truncating to fit available space

Looking through the source, seems that truncateIfRequired maybe doesn't exit one of the while loops in these situations.

https://github.com/torakiki/sejda/blob/master/sejda-sambox/src/main/java/org/sejda/impl/sambox/component/FilenameFooterWriter.java#L94

I'll note that we are using this with sejda-console 3.2.85, feel free to ignore this report if you've fixed this in the latest pro release.

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant