Skip to content
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 with ImageMagick 7.1.0-62/6.9.12-77 #611

Closed
JayBraker opened this issue Feb 16, 2023 · 3 comments
Closed

Access Violation with ImageMagick 7.1.0-62/6.9.12-77 #611

JayBraker opened this issue Feb 16, 2023 · 3 comments

Comments

@JayBraker
Copy link

I'm experiencing a similar issue to #586 when attempting to instanciate wand.image.Image:

Type "help", "copyright", "credits" or "license" for more information.
>>> from wand.image import Image
>>> from pathlib import Path     
>>> Image(filename=Path('.\in\123456_u.pdf').absolute)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Users\User\AppData\Roaming\Python\Python310\site-packages\wand\image.py", line 9053, in __init__
    wand = library.NewMagickWand()
OSError: exception: access violation writing 0x0000000000000008
>>>

I'm running Python 3.10.8 64bit with ImageMagick 7.1.0-62
The issue also occurs with ImageMagick 6.9.12-77 (both 64bit, installed with dev headers)

@emcconville 's workaround works fine:

Type "help", "copyright", "credits" or "license" for more information.
>>> from pathlib import Path     
>>> from wand.image import Image                                              
>>> from wand.resource import genesis as wand_genesis  
>>> wand_genesis()
>>> Image(filename=Path('.\\in\\123456_u.pdf').absolute(), resolution=150) 
<wand.image.Image: ec37aa8 'PDF' (1240x1754)>
>>> 
@emcconville
Copy link
Owner

Ensure you have the latest version of Wand. This issue should have been fixed last year, and I'm unable to reproduce issue with latest versions of ImageMagick.

@driscoll42
Copy link

Just to confirm this, I had and 0.6.7 installed with ImageMagick-7.1.1-4-Q16-HDRI-x64 on Windows and was getting the above error. Upgrading to wand 0.6.11 solved it.

@emcconville
Copy link
Owner

Cool. Thanks for confirming this. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants