BoboTiG / python-mss

An ultra fast cross-platform multiple screenshots module in pure Python using ctypes.
https://pypi.org/project/mss/
MIT License
1.04k stars 94 forks source link

Support request: WSL #156

Open vinnymeller opened 4 years ago

vinnymeller commented 4 years ago

General information:

Description of the warning/error

'python' terminated by signal SIGSEGV (Address boundary error)

error occurs at the following point:

self.root = self.xlib.XDefaultRootWindow(MSS.display)

any help would be appreciated

Upvote & Fund

Fund with Polar

vinnymeller commented 4 years ago

FYI I got this working on normal windows for conda so I guess it isn't a big deal. but still probably good to hear about bugs

BoboTiG commented 4 years ago

Hello,

Thank you for the report and analysis. I never tested MSS on WSL, there is definitely something not working here.

What distribution did you install?

vinnymeller commented 4 years ago

Hello,

Thank you for the report and analysis. I never tested MSS on WSL, there is definitely something not working here.

What distribution did you install?

I have exactly this from the windows store: https://www.microsoft.com/store/productId/9NBLGGH4MSV6

also with this I was having an issue with xrandr that was (seemingly) fixed with the below install: sudo apt-get install x11-xserver-utils

Talador12 commented 10 months ago

For older versions of Windows running WSL

+1 on this one. I am getting ImportError: cannot import name 'WINFUNCTYPE' from 'ctypes' running this from WSL

Talador12 commented 9 months ago

For Windows 11 WSL

Getting mss.exception.ScreenShotError: XGetImage() failed on any resolution/monitor.

I am currently looking into this, instead of the older WSL above****

Talador12 commented 9 months ago

Looks like Pillow has had the same issues https://github.com/python-pillow/Pillow/issues/5130#issuecomment-1124244858 and https://github.com/python-pillow/Pillow/issues/6312 and https://github.com/python-pillow/Pillow/issues/6392

kubaq215 commented 4 months ago

For Windows 11 WSL

Getting mss.exception.ScreenShotError: XGetImage() failed on any resolution/monitor.

I am currently looking into this, instead of the older WSL above****

Any updates?