-
Notifications
You must be signed in to change notification settings - Fork 89
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
Crash on Wayland, XGetImage failed #76
Comments
Thanks for the report, @Igetin . I can reproduce the problem on Ubuntu 20.04 with Gnome under Wayland. This is probably an issue in the python library mss, which I'm leveraging to get the screenshot on the multiple platform. Just to be sure, can you please also run the following snippet, e.g. by typing it in python3 console, can you confirm that you experience the same behavior as described below? If I run only the following lines... import mss
fn = mss.mss().shot(mon=-1, output="screenshot.png")
print(fn) ...under X it works (filename is printed, screenshot saved), while under Wayland I get the following error: Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/holger/.local/lib/python3.8/site-packages/mss/factory.py", line 41, in mss
return linux.MSS(**kwargs)
File "/home/holger/.local/lib/python3.8/site-packages/mss/linux.py", line 226, in __init__
self.root = self.xlib.XDefaultRootWindow(MSS.display)
File "/home/holger/.local/lib/python3.8/site-packages/mss/linux.py", line 175, in validate
raise ScreenShotError(err, details=details)
mss.exception.ScreenShotError: XDefaultRootWindow() failed |
I opened an issue for Beside waiting to get it fixed in that dependency, I'll think about a (temporary) workaround, e.g. by falling back to |
I added a fallback for wayland. However, that workaround uses |
The |
NormCap crashes when trying to run it under Wayland:
The text was updated successfully, but these errors were encountered: