wslg: rviz/Gazebo Not Rendering 3d Space on Intel Laptop

Environment

Windows build number: Microsoft Windows NT 10.0.22000.0
Your Distribution version: Ubuntu 20.04
Your WSLg version: 1.0.26

Steps to reproduce

  1. Install ROS Noetic
  2. run an instance of roscore in one terminal
  3. run rosrun rviz rviz or rosrun gazebo_sim gazebo
  4. UI is displayed for the two applications but not the 3d rendered space.

WSL logs:

weston.log pulseaudio.log

versions.txt: WSLg ( x86_64 ): 1.0.19+Branch.main.Sha.2a47bf20c239b523d7413f315cbc9ee60dfde831 Mariner: VERSION=“1.0.20210224” FreeRDP: 5f083fa0b97d433d6204985f6047886e29c1c61e weston: 16de531f00aa3dfd17e0de74c8f49e9fd7cec617 pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5 mesa:

Expected behavior

The applications should render the robot/simulation or at least the 3d grid.

Actual behavior

Gazebo: image

rviz: image

This works fine on my intel/nvidia based machine but on my Intel laptop it consistently shows this behaviour where previously it worked fine.

CPU: Intel Core i7-8565U GPU: Intel UHD Graphics 620

I’ve tried with the latest Intel drivers which claim to support WSLg and the newer beta drivers with the same behaviour.

About this issue

  • Original URL
  • State: open
  • Created 3 years ago
  • Reactions: 8
  • Comments: 34

Most upvoted comments

Looks like the latest Intel Graphics Driver 30.0.101.1404, 2022-03-08 finally fixes the issue. Tested on latest Windows 11, Ubuntu 20.04, Mesa 21.3.7 (kisak-mesa stable PPA).

Hello, I did a quick test on driver 30.0.101.1960. For me, the situation has not changed on Iris Xe: Gazebo is still black (and the meshes are not displayed in Rviz but this is a separate issue). rmorassi, I would tend to think that you had not GPU acceleration enabled when you did your test. At least, Rviz cannot be fully ok for now when GPU acceleration is on (wslg issue https://github.com/microsoft/wslg/issues/554) - this is true for Intel Iris, Intel UHD and Nvidia MX at least (that I tested).

Is there anything happening towards solution? Feeling like this has been dead for too long now, being crucial feature for WSLg users that develop robotic systems using Gazebo.

I think the title of this bug should be made more generic to clarify acceleration is not working on Intel UHD. Seems like a fairly important thing to fix.

I have i7-12700H, Iris Xe, latest version of Win11 and Ubuntu 20.04, and the latest driver 31.0.101.4032. Rviz2 works but gazebo is still black screen.

image

Edit: The latest Intel Graphics Driver 30.0.101.1960 does not fix the issue. The information in the message below is incorrect.

Original message: Hello everyone, Looks like the latest Intel Graphics Driver 30.0.101.1960 (10th May 2022) fixes the issue for the Intel® Iris® Xe. Rviz and Gazebo are working well and I don’t have any black screens on WSL2.

Since my new laptop has both an Nvidia MX450 and an Iris Xe, I had a try with the Iris Xe. I confirm that Gazebo remains black/empty with the Iris Xe (while it worked ok on my older laptop with same driver and Intel UHD 630). However, glxgears is working ok (gears are displayed and GPU acceleration provided by Iris Xe). Rviz is showing as well (but impacted by the global problem I mentionned earlier - STLs not being displayed). So now, It looks more like a Gazebo - Intel Iris problem only.

I have intel Iris Xe, and upgrade to: Intel Graphics Driver 30.0.101.1404 and stil had not luck. Even tried the later version than that. Still get blank screen

Tested on latest Windows 11, Ubuntu 20.04, Mesa 21.3.8

Looks like the latest Intel Graphics Driver 30.0.101.1404, 2022-03-08 finally fixes the issue. Tested on latest Windows 11, Ubuntu 20.04, Mesa 21.3.7 (kisak-mesa stable PPA).

I tested it on Windows 11, Ubuntu 20.04, Intel 630. Indeed 30.0.101.1404 finally brings something new. Gazebo works great now (fast and smooth and GPU usage about 70%). However Rviz is not fully ok for me. The grid and axes are displayed now but my robot is not showing with GPU acceleration on. I tried with Mesa 21.0.3, 21.2.6 and kisak (turtle) 21.3.7 (same as suggested by svetoslavenchev) but same result: grid and axes displayed but not my robot (while it is correctly displayed with GPU off: GALLIUM_DRIVER=llvmpipe).