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

Getting ZPIXMAX error in version 4.0.0 #92

Closed
klausrollmann opened this issue Jan 23, 2019 · 5 comments · Fixed by #93
Closed

Getting ZPIXMAX error in version 4.0.0 #92

klausrollmann opened this issue Jan 23, 2019 · 5 comments · Fixed by #93

Comments

@klausrollmann
Copy link

klausrollmann commented Jan 23, 2019

General informations:

  • OS name: Debian GNU/Linux
  • OS version: sid
  • OS architecture: 64 bits
  • Resolutions:
    • Monitor 1: 1280x900
  • Python version: 3.5.3
  • MSS version: 4.0.0

For GNU/Linux users:

  • Display server protocol and version, if known: X server
  • Desktop Environment: Gnome_

Description of the warning/error

After upgrading to version 4.0.0 I started getting error ZIPXMAP in grab.

Full message

  File "/home/user/image.py", line 149, in refresh
    im = np.asarray(sct.grab(monitor))
  File "/home/user/.local/lib/python3.5/site-packages/mss/linux.py", line 389, in grab
    ZPIXMAP,
ctypes.ArgumentError: argument 3: <class 'TypeError'>: wrong type

Other details

Downgrading to version 3.3.2 solved the problem.

@BoboTiG
Copy link
Owner

BoboTiG commented Jan 25, 2019

Thanks for the report! And sorry for the regression, tests were passing locally and on the CI :/

I will push the fix very soon and release the 4.1.0 version.

@BoboTiG
Copy link
Owner

BoboTiG commented Jan 25, 2019

Coul you test from the master branch and confirm it is fixed?

@klausrollmann
Copy link
Author

I tested and it is working properly. Thanks :)

@BoboTiG
Copy link
Owner

BoboTiG commented Jan 26, 2019

Great! I will make a new release today then ;)

@BoboTiG
Copy link
Owner

BoboTiG commented Jan 26, 2019

The 4.0.1 version is released!

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

Successfully merging a pull request may close this issue.

2 participants