-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Python / PIL] Crashes when importing #23358
Comments
I can reproduce the issue in my setup. This seems to be a python pillow issue.
Here is the output from lldb
|
@kmilos could you share any info about this issue? |
downgrading pillow helps (before bc3d348) |
same as #23316
|
Using the old import library from libimagequant 4.3.3-1 (with the new DLL) also fixes the issue, which points to cargo-c creating broken import libs. |
reverting cargo-c doesn't work as the produced import libs with older cargo-c are broken differently with newer rust it seems (it links against an empty string dll which it then doesn't find) So I'm not sure what to do. |
I'll disable libimagequant support in pillow for now until we know more. |
I've created a reproducer: https://github.com/lazka/cargo-c-crash |
Sorry @Biswa96, I'm afraid I can't really help here... |
Since the cause is likely cargo-c moving from the toolchain import lib generator to using a rust crate, manually re-creating the importlib with dlltool might be a workaround. edit: it is |
Deployed a workaround #23364 Closing this. Upstream issue: lu-zero/cargo-c#443 |
Description / Steps to reproduce the issue
rst2pdf
python -c "from PIL import Image"
After recent update. Not sure if on all envs, I don't have others installed.
Expected behavior
Doesn't crash.
Actual behavior
Crashes somewhere in PIL it looks like.
Verification
Windows Version
MINGW64_NT-10.0-26100
MINGW environments affected
Are you willing to submit a PR?
No response
The text was updated successfully, but these errors were encountered: