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

XIO: fatal IO error 22 (Invalid argument) on X server ":0" after 143 requests (136 known processed) with 12 events remaining. #81

Open
song-hl opened this issue Sep 20, 2022 · 1 comment

Comments

@song-hl
Copy link

song-hl commented Sep 20, 2022

I use in a docker container with

from pyvirtualdisplay import Display
disp = Display().start()
#  my code
disp.stop()

after runing,I got the output as follow:

XIO:  fatal IO error 22 (Invalid argument) on X server ":0"
      after 143 requests (136 known processed) with 12 events remaining.

but when i use xvfb-run python code.py, the fatal IO error would not appear.
How can I fix it?

@ponty
Copy link
Owner

ponty commented Sep 18, 2023

I can't reproduce your use case.
I did this based on the report:

$ cat Dockerfile 
FROM ubuntu:22.04

RUN apt-get update && apt-get install -y xvfb
RUN apt-get install -y python3 python3-pip
RUN pip3 install pyvirtualdisplay

$ docker build  .  -t xvfb-test
$ docker run --rm -it xvfb-test bash

#  python3 -c "from pyvirtualdisplay import Display;disp = Display().start();print(3);disp.stop()"
3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants