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
XGetImage() failed when using mss #115
Comments
Did it worked with an older version of MSS? I tried onetime a distribution using Wayland and it worked well too 🤔 |
Could you try the current version from the |
I don't know if it worked with an older version of MSS, this is my first time using the library. running it with latest version from master, here is the output of Interestingly the traceback is a bit diferent now:
|
The new stack trace is OK actually, I will fix it later. But the issue remains. I will have to download the same Ubuntu version as yours to test, could you point me to the ISO you used? |
Hi, here is a link to the ISO. It's the default Ubuntu 18.10 64-bit download. |
Thanks for taking the time to try and reproduce this. I guess it must be configuration issue I'm having locally, I'll have to just run this in a VM. Thanks for all the help, sorry to waste your time! |
Do not hesitate to re-open the issue if you have more information I could use to reproduce :)
|
The Error Is Due to the Wrong Resolution.Just reduce the resolution and try Again (Keep it In the range(700,400) |
Another way to reproduce this error is to use another display besides :1 in linux CORRECTION: giving the size of a window larger than the vncserver has set as its geometry will result in this error, however, works fine when you specify the correct geometry :D |
So just ran into this issue myself. Have 4 monitors; 3x1080p and 1x1440p. Trying to capture the 1440p monitor, however, as soon as the width or height is set >= 1407 I get this error. |
I just have solve this issue with this reply. Thanks a lot!! |
Hey all, thanks for developing this library. I am getting the same issue as described in this thread though. Anyway, can this library be considered as usable for projects in which the screen resolution is unpredictable (given a variety of users)? |
Of course, that's the primary use case of the project. Have a look, it's used in hundreds of other projects. |
General information:
For GNU/Linux users:
Description of the warning/error
When I use any screen capture command (grab(), shot()), I get an error that XGetImage failed.
code:
pipenv install mss
and in file
process.py
, I have taken some code straight the examples in documentation:The above code outputs this:
And the stracktrace looks like this:
Other details
I have also tried running as root, and running outside of tmux. Neither of these things changed the error I'm getting. I wonder if this has something to do with using wayland? On pyscreenshot, they seem to have limited support for screenshots on wayland.
The text was updated successfully, but these errors were encountered: