Bug 707842 - limit error: too many nested graphics states
Summary: limit error: too many nested graphics states
Status: RESOLVED INVALID
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: 1.24.4
Hardware: PC Linux
: P2 major
Assignee: MuPDF bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-25 10:27 UTC by eric.schoelzel
Modified: 2024-07-26 18:23 UTC (History)
2 users (show)

See Also:
Customer: 623
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description eric.schoelzel 2024-06-25 10:27:02 UTC
When trying to parse a certain pdf, we get `limit error: too many nested graphics states`. When trying `muraster`, we get a completely white output image.

It worked with an earlier version (it worked with pymupdf 1.22.1 which uses an older mupdf). I suspect that some kind of recursion limit has been introduced which we hit with that particular file.

Unfortunately, we cannot provide the original pdf as it is customer data. I tried to slice the pdf to obtain some insensitive sample file to reproduce it, however the bug disappeared when I tried this.

We originally reported this to pymupdf: https://github.com/pymupdf/PyMuPDF/issues/3608
Comment 1 Robin Watts 2024-07-26 18:23:42 UTC
We cannot solve this without an example PDF.

We can arrange to keep files private, but without a file we simply cannot make progress on this. Sorry.

Please reopen the bug if you can share a file with us.