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

Support request: WSL #156

Open
vinnymeller opened this issue Apr 26, 2020 · 6 comments
Open

Support request: WSL #156

vinnymeller opened this issue Apr 26, 2020 · 6 comments
Labels
bug help welcome :) WSL Windows Subsystem for Linux

Comments

@vinnymeller
Copy link

General information:

  • OS name: Linux subsystem for windows
  • OS architecture: 64 bits
  • Resolutions:
    • Monitor 1: 2k
    • Monitor 2: 2k
  • Python version: 3.6.9
  • MSS version: cloned from master today version

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

@vinnymeller
Copy link
Author

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 BoboTiG added bug GNU/Linux Windows WSL Windows Subsystem for Linux and removed GNU/Linux Windows labels Apr 26, 2020
@BoboTiG
Copy link
Owner

BoboTiG commented Apr 26, 2020

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?

@BoboTiG BoboTiG changed the title SIGSEGV (Address boundary error) Not working in WSL Apr 26, 2020
@vinnymeller
Copy link
Author

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

@BoboTiG BoboTiG changed the title Not working in WSL Support request: WSL Apr 27, 2020
@Talador12
Copy link

Talador12 commented Jan 16, 2024

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
Copy link

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
Copy link

Talador12 commented Feb 6, 2024

Looks like Pillow has had the same issues
python-pillow/Pillow#5130 (comment)
and
python-pillow/Pillow#6312
and
python-pillow/Pillow#6392

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug help welcome :) WSL Windows Subsystem for Linux
Projects
None yet
Development

No branches or pull requests

3 participants