-
Notifications
You must be signed in to change notification settings - Fork 14
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
Access Violation on Windows Build when encoding #7
Comments
Hi, thank you very much for detailed instructions. I was able to follow along even though I'm not into Windows development. As for your issue, unfortunately I wasn't able to reproduce it. For me, all examples work fine. In the meantime, I did a quick search for this issue and found out, it might be related to Cython. (source 1, 2) I will attach my prebuilt and repaired wheel below if that helps, maybe try using it. |
Right that gives the same result here, so it's probably some problem with my Cython version or environment EDIT; Seems like lossless mode does work, but for example quality=75, effort=6 does not. Also tried is on an other Windows 10 machine and it also does not work there, not sure what is wrong. Did you build with VS2022? |
My Cython version is the same as yours, installed automatically as a dependency of jxlpy. I did some encoding/decoding tests with lossless and lossy mode and everything seems fine.. |
Alright I'm running python 3.9.5 maybe if I upgrade that and I just tried with 3.9.10 and same problem my windows version is 21H1 (build 19043). But still the same behavior, the actual site of the access violation is within preprocessor guards for the MSVC compiler. (using some intrinsics) Can cython build with clang on windows? I'm stumped as to why this is happening. |
When building this wheel on Windows using:
This gives an access violation on calling
im.save
, with the call stackSo it seems to happen on the call here.
Do note to make this work you need to add the follwing to setup.py
Any ideas?
The text was updated successfully, but these errors were encountered: