-
Notifications
You must be signed in to change notification settings - Fork 506
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
Crash in ~FzColorspace() #3869
Comments
Thanks for the detailed report. We have a theory about what's going on, i'll update this ticket in the next few days hopefully. |
Unfortunately my theory didn't work. One thing to point out, is that the crash log has many threads, but PyMuPDF does not support use by multiple threads. Is this likely to be a problem here? |
There are many threads because it's a gui cpp application, but only the main thread is running python interpreter so that should not be an issue. |
Description of the bug
Not sure if this should be reported in mupdf repo instead, please let me know.
How to reproduce the bug
The trigger for this crash is somewhat convoluted. KiCad EDA package uses python scripting for it's plugins and this was discovered when one plugin is launched while another plugin that uses pymupdf is present in the installation.
Original bug report is here: openscopeproject/InteractiveHtmlBom#467
After looking at the crash it's apparent that none of the plugins have anything to do with the crash, it happens when python garbage collects some objects and in particular FzColorSpace causes the crash.
Full crash log
By bisecting the pymupdf version I found that last one that does not crash is 1.23.8.
Crash reproduces reliably.
PyMuPDF version
1.24.10
Operating system
MacOS
Python version
3.9
The text was updated successfully, but these errors were encountered: