google-deepmind / google-deepmind/mujoco

Running mujoco.viewer in a Wayland session results in borderless window

Open
#1,427 25 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
C++
Stars
15.2k
Forks
1.8k
Avg merge
10d 16h
Merged PRs (30d)
25

Description

Running the `mujoco.viewer` python binding results in a borderless window. The program will continue to work normally, but cannot be closed except by a keyboard interrupt. I have attached an image showing how the windowed screen looks like:

![image](https://github.com/google-deepmind/mujoco/assets/8935211/660b1b30-0a4d-4bc9-8f2a-33b93c7e0066)

Running the command also results in the following warnings:

```bash
~$ python3 -m mujoco.viewer
/home/zmk5/.local/lib/python3.10/site-packages/glfw/__init__.py:916: GLFWError: (65544) b'Wayland: Window position retrieval not supported'
warnings.warn(message, GLFWError)
/home/zmk5/.local/lib/python3.10/site-packages/glfw/__init__.py:916: GLFWError: (65544) b'Wayland: Standard cursor shape unavailable'
warnings.warn(message, GLFWError)
```

I've tested this on sample code located [here](https://github.com/kevinzakka/mjctrl/blob/main/diffik.py) and results in the same borderless window and warnings.

- Include the following context:
- Operating system: Ubuntu 22.04.3 (amd64)
- MuJoCo version: 3.1.1
- For Python issues, what bindings are you using (i.e `mujoco`, `dm_control`, `mujoco-py`)?
- This is with the `mujoco` Python bindings.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.