-
Notifications
You must be signed in to change notification settings - Fork 567
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
get_pixmap method stuck on one page and runs forever #3125
Comments
I think this is probably a duplicate of #3072. |
Hi @julian-smith-artifex-com ! |
Ah, interesting. #3072 is definitely fixed in 1.23.22 so this looks like a new (but probably related) problem. Can you supply your input file and python code that shows the problem? |
same problem here. 1.23.22 did not fix the issue for me either. |
Just to be clear - we will need a reproducer for this problem if we are to investigate and fix it. If anyone has an example file that they can post, please do so here. |
Unfortunately I am not able to share files that created this issue for me, but I can tell you that reverting to 1.21.0 has removed the problem. I will try to get a redacted file to you to test the issue with the current version. |
Thank you, i'm looking forward to receiving your redacted file. |
@julian-smith-artifex-com how do you recommend creating a redacted file for testing this issue? |
You could use Alternatively, could you email the document directly to me at |
An update on this: a build of PyMuPDF with the latest MuPDF in git, does not hang. So the problem will be fixed in PyMuPDF very soon after the next MuPDF |
Fixed in 1.24.0. |
Description of the bug
I have a script that takes a PDF document URL, iterates through all the pages, generates a pixmap for each page, and uses it to create an image. However, the get_pixmap method gets stuck indefinitely on a particular page, and I'm unable to resolve it even after attempting to add timeouts.
How to reproduce the bug
Code snippet:
The issue occurs on a specific page in the PDF file, and it's worth noting that other pages also contain numerous graphic elements.
Here is the page on which this method stucks (please, note that other pages have also a lot of graphic elements).
I would appreciate any insights into what might be causing this problem or any guidance on how to handle it, perhaps with the use of timeouts or alternative approaches.
PyMuPDF version
1.23.21
Operating system
MacOS
Python version
3.10
The text was updated successfully, but these errors were encountered: