Skip to content

Issues with wsl2 + win11 #84

@Victornovikov

Description

@Victornovikov

I am trying to run the following example

from pyvirtualdisplay import Display
with Display() as disp:
    # display is active
    print(disp.is_alive()) # True
# display is stopped
print(disp.is_alive()) # False

This results in

 XStartTimeoutError
No reply from program Xvfb. command:['Xvfb', '-br', '-nolisten', 'tcp', '-screen', '0', '1400x900x24', '-displayfd', '14']
  File "/home/vn/marl-interfere/render_mpe.py", line 134, in main
    virtual_display.start()
  File "/home/vn/marl-interfere/render_mpe.py", line 144, in <module>
    main(sys.argv[1:])
pyvirtualdisplay.abstractdisplay.XStartTimeoutError: No reply from program Xvfb. command:['Xvfb', '-br', '-nolisten', 'tcp', '-screen', '0', '1400x900x24', '-displayfd', '14']

xfvb is running on the wsl2

 xdpyinfo -display :0 >/dev/null 2>&1 && echo "In use" || echo "Free"
In use

I'd appreciate any suggestions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions