Bug 707842 - limit error: too many nested graphics states
Summary: limit error: too many nested graphics states
Status: UNCONFIRMED
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-06-25 10:27 UTC (History)
0 users

See Also:
Customer:
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