Skip to content

Error parsing JSON: X get_image failed: error 8 (73, 0, 967) #64

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

Open
Andy1996247 opened this issue Dec 2, 2023 · 11 comments
Open

Error parsing JSON: X get_image failed: error 8 (73, 0, 967) #64

Andy1996247 opened this issue Dec 2, 2023 · 11 comments
Labels
bug Something isn't working

Comments

@Andy1996247
Copy link

[Self-Operating Computer]
Hello, I can help you with anything. What would you like done?
[User]
google the word HI
Error parsing JSON: X get_image failed: error 8 (73, 0, 967)
[Self-Operating Computer][Error] something went wrong :(
[Self-Operating Computer][Error] AI response
Failed take action after looking at the screenshot

what could be the problem?

@michaelhhogue
Copy link
Collaborator

What operating system are you on? Also, do you have multiple monitors?

@michaelhhogue michaelhhogue added the bug Something isn't working label Dec 2, 2023
@Andy1996247
Copy link
Author

What operating system are you on? Also, do you have multiple monitors?

Ubuntu 22. And yes I run 2 monitors.

@michaelhhogue
Copy link
Collaborator

There are some known issues with multi-monitor setups. #57 proposes a change that uses only the active monitor on Linux.

@joshbickett
Copy link
Contributor

#57 was merged, but not sure if it ever fixed the issue. Let us know if you're still having the issue which in that case a new PR would be great

@michaelhhogue
Copy link
Collaborator

@joshbickett @Andy1996247 #57 didn't fix this issue. The active monitor needs to be selected in the screenshot when there are multiple monitors connected. Will look into this tonight.

@SebastianHausler
Copy link

#57 was merged, but not sure if it ever fixed the issue. Let us know if you're still having the issue which in that case a new PR would be great

Same issue for me. Fresh ubuntu-22.04.3-desktop-amd64.iso VM and only one monitor, but I'm using a 4k monitor. Not sure if this is a problem. Used pip install self-operating-computer to install.

@ph47s74x
Copy link

#57 was merged, but not sure if it ever fixed the issue. Let us know if you're still having the issue which in that case a new PR would be great

Same issue for me. Fresh ubuntu-22.04.3-desktop-amd64.iso VM and only one monitor, but I'm using a 4k monitor. Not sure if this is a problem. Used pip install self-operating-computer to install.

I am using Ubuntu 20.04.2 and had a similar issue.

I used this issues responses to solve it;

issue: #80

This seems to be related to Pillow and ImageGrab on machines (possibly just virtual machines) that have Wayland enabled.

Here is the fix that worked for me on Ubuntu 22.04.3 LTS in a virtualbox.

https://stackoverflow.com/questions/75752576/pillow-imagegrab-grab-not-working-on-a-virtual-machine

# Open this file
/etc/gdm3/custom.conf
# Set this value to disable Wayland
WaylandEnable=false

then

# Restart gdm3
sudo systemctl restart gdm3

@Andy1996247
Copy link
Author

#57 was merged, but not sure if it ever fixed the issue. Let us know if you're still having the issue which in that case a new PR would be great

Same issue for me. Fresh ubuntu-22.04.3-desktop-amd64.iso VM and only one monitor, but I'm using a 4k monitor. Not sure if this is a problem. Used pip install self-operating-computer to install.

I am using Ubuntu 20.04.2 and had a similar issue.

I used this issues responses to solve it;

issue: #80

This seems to be related to Pillow and ImageGrab on machines (possibly just virtual machines) that have Wayland enabled.
Here is the fix that worked for me on Ubuntu 22.04.3 LTS in a virtualbox.
https://stackoverflow.com/questions/75752576/pillow-imagegrab-grab-not-working-on-a-virtual-machine

# Open this file
/etc/gdm3/custom.conf
# Set this value to disable Wayland
WaylandEnable=false

then

# Restart gdm3
sudo systemctl restart gdm3

thankyou this worked

@joshbickett
Copy link
Contributor

@michaelhhogue since #80 is a fix for this issue. I wonder if we could incorporate that fix into the project some how to avoid these issues in the future. Let me know if you have thoughts

@michaelhhogue
Copy link
Collaborator

@joshbickett It probably would be best to add this to the README or in a separate file that a link could point to. Even MSS, which I've looked into as a better screenshot solution, would still produce this error. From what I've found, it would take a lot of weird dependencies to actually add support for Wayland to resolve this issue automatically.

If no one else opens one, I'll probably do a PR for this after I'm done working on LLaVA support.

@joshbickett
Copy link
Contributor

Ok sounds good. I wonder if it makes sense to create a linux-readme.md or something like that which we can link to from the readme.md for a more in-depth install? Not sure what the standard is in these situations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants