microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
9.9k stars 296 forks source link

Multiple OpenGL GUI application instances freeze and crash #1169

Open rkourdis opened 6 months ago

rkourdis commented 6 months ago

Windows build number:

10.0.22621.0

Your Distribution version:

22.04

Your WSL versions:

WSL version: 2.0.14.0
Kernel version: 5.15.133.1-1
WSLg version: 1.0.59
MSRDC version: 1.2.4677
Direct3D version: 1.611.1-81528511
DXCore version: 10.0.25131.1002-220531-1700.rs-onecore-base2-hyp
Windows version: 10.0.22621.2861

Steps to reproduce:

To reproduce:

  1. pip3 install mujoco==3.1.1
  2. Open one Ubuntu terminal and run: python3 -m mujoco.viewer. Observe that MuJoCo opens and the GUI is responsive to mouse input.
  3. Open another window and run: python3 -m mujoco.viewer again. Observe that:
    • The two windows cannot be moved anymore.
    • Both windows are not responding to mouse input.
    • The "Not Responding" popup appears for "Remote Desktop".
  4. Close one of the terminal windows (which will force the GUI application to exit) and observe that the other instance is responsive again.

Another method to reproduce that does not depend on MuJoCo is to open two windows of rviz2. This has been tested with a newly installed version of ROS2 Humble.

However, opening two windows of glxgears works fine.


Tested on a machine with Ryzen 7 6800U w/ integrated graphics. The AMD driver version is 23.12.1.

WSL logs:

pulseaudio.log weston.log stderr.log

WSL dumps:

No dumps present.

Expected behavior:

No response

Actual behavior:

When running more than one OpenGL application with keyboard / mouse input, both applications freeze (mouse input fails to control either and Windows treats them as "Not Responding") until one of the two is exited.