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

Windows 11 WSLg Gazebo Black Screen #2670

Open
Ryanf55 opened this issue Nov 7, 2024 · 7 comments
Open

Windows 11 WSLg Gazebo Black Screen #2670

Ryanf55 opened this issue Nov 7, 2024 · 7 comments

Comments

@Ryanf55
Copy link
Contributor

Ryanf55 commented Nov 7, 2024

Environment

  • Host OS: Windows 11
  • WSL2 running Ubuntu 22.04 guest
  • Lenovo Thinkpad X1 GEN12
  • Gazebo Version: Harmonic
  • Using the WSLg workflow
  • LIBGL_ALWAYS_SOFTWARE is NOT set ( I want GPU rendering)

Expected behavior

gz sim shapes.sdf`

On another (beefier) Windows 10 computer ( Dell precision 7770, NVIDIA RTX A3000 GPU) , this works in WSL2

Actual Behavior

The Lenovo Thinkpad starts gazebo, but the renderer is black.

Logs

Coming soon

@Ryanf55
Copy link
Contributor Author

Ryanf55 commented Nov 7, 2024

Working Logs from my Dell

dell_gz_harmonic_shapes_v4.txt

@Ryanf55
Copy link
Contributor Author

Ryanf55 commented Nov 7, 2024

Edit: Today, it works. Uploading logs, closing the issue unless it pops back up.

Here's the thinkpad X1 carbon logs

gz_harmonic_thinkpad_logs.txt

@Ryanf55 Ryanf55 closed this as completed Nov 7, 2024
@github-project-automation github-project-automation bot moved this from Inbox to Done in Core development Nov 7, 2024
@Ryanf55
Copy link
Contributor Author

Ryanf55 commented Nov 28, 2024

It's back today, here's logs!

image
$ gz sim shapes.sdf
QStandardPaths: wrong permissions on runtime directory /run/user/1000/, 0755 instead of 0700
libEGL warning: failed to open /dev/dri/renderD128: Permission denied

libEGL warning: NEEDS EXTENSION: falling back to kms_swrast

gz_harmonic_thinkpad_logs.txt
ogre2.log.txt

$ LANG=C lspci -nn | grep VGA
 >>> No output
 $  echo "$DISPLAY"
>>:0
$ LANG=C glxinfo -B
name of display: :0
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Microsoft Corporation (0xffffffff)
    Device: D3D12 (Intel(R) Graphics) (0xffffffff)
    Version: 23.2.1
    Accelerated: yes
    Video memory: 18528MB
    Unified memory: yes
    Preferred profile: core (0x1)
    Max core profile version: 4.2
    Max compat profile version: 4.2
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.1
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (Intel(R) Graphics)
OpenGL core profile version string: 4.2 (Core Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
OpenGL core profile shading language version string: 4.20
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 4.2 (Compatibility Profile) Mesa 23.2.1-1ubuntu3.1~22.04.2
OpenGL shading language version string: 4.20
OpenGL context flags: (none)
OpenGL profile mask: compatibility profile

OpenGL ES profile version string: OpenGL ES 3.1 Mesa 23.2.1-1ubuntu3.1~22.04.2
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.10
$ ps aux | grep Xorg
>>> ryan       52313  0.0  0.0   4028  2152 pts/5    S+   15:33   0:00 grep --color=auto Xorg
ryan@ryan-thinkpad:~$ sudo env LANG=C X -version
env: ‘X’: No such file or directory

Gazebo version (binary)

gz-harmonic/unknown,now 1.0.0-1~jammy amd64 [installed]
ryan@ryan-thinkpad:~$ uname -a
Linux ryan-thinkpad 5.15.167.4-microsoft-standard-WSL2 #1 SMP Tue Nov 5 00:21:55 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
ryan@ryan-thinkpad:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.5 LTS
Release:        22.04
Codename:       jammy

@Ryanf55 Ryanf55 reopened this Nov 28, 2024
@nesserine-laribi
Copy link

hello i have the same problem as you did you solve it please ?

@Ryanf55
Copy link
Contributor Author

Ryanf55 commented Jan 13, 2025

It's unresolved.

@traversaro
Copy link
Contributor

Sorry, I forgot to reply. The actual error from ogre2.log seems:

15:27:37: Added resource location '/usr/share/gz/gz-rendering8/media/materials/textures/' of type 'FileSystem' to resource group 'General'
15:27:37: Can't assign material [Default] because this Material does not exist. Have you forgotten to define it in a .material script?
15:27:37: Can't assign material scene::Material(65501) because this Material does not exist. Have you forgotten to define it in a .material script?
15:27:37: Can't assign material scene::Material(65495) because this Material does not exist. Have you forgotten to define it in a .material script?
15:27:37: Can't assign material scene::Material(65489) because this Material does not exist. Have you forgotten to define it in a .material script?
15:27:37: Can't assign material scene::Material(65483) because this Material does not exist. Have you forgotten to define it in a .material script?
15:27:37: Can't assign material scene::Material(65476) because this Material does not exist. Have you forgotten to define it in a .material script?
15:27:37: Can't assign material scene::Material(65483) because this Material does not exist. Have you forgotten to define it in a .material script?
15:27:37: Can't assign material scene::Material(65465) because this Material does not exist. Have you forgotten to define it in a .material script?
15:27:37: OGRE EXCEPTION(3:RenderingAPIException): Fixed Function pipeline is no longer allowed nor supported. The material scene::Material(65518) must use shaders in HlmsLowLevel::calculateHashFor at ./OgreMain/src/OgreHlmsLowLevel.cpp (line 160)
15:27:37: OGRE EXCEPTION(3:RenderingAPIException): Fixed Function pipeline is no longer allowed nor supported. The material scene::Material(65518) must use shaders in HlmsLowLevel::calculateHashFor at ./OgreMain/src/OgreHlmsLowLevel.cpp (line 160)
15:27:37: Couldn't apply datablock '[Hash 0x1dc5a795]' to this renderable. Using default one. Check previous log messages to see if there's more information.
15:27:37: OGRE EXCEPTION(3:RenderingAPIException): Fixed Function pipeline is no longer allowed nor supported. The material scene::Material(65518) must use shaders in HlmsLowLevel::calculateHashFor at ./OgreMain/src/OgreHlmsLowLevel.cpp (line 160)
15:27:37: OGRE EXCEPTION(3:RenderingAPIException): Fixed Function pipeline is no longer allowed nor supported. The material scene::Material(65518) must use shaders in HlmsLowLevel::calculateHashFor at ./OgreMain/src/OgreHlmsLowLevel.cpp (line 160)
15:27:37: Couldn't apply datablock '[Hash 0x1dc5a795]' to this renderable. Using default one. Check previous log messages to see if there's more information.
15:27:37: Can't assign material scene::Material(65458) because this Material does not exist. Have you forgotten to define it in a .material script?
15:27:37: OGRE EXCEPTION(3:RenderingAPIException): Fixed Function pipeline is no longer allowed nor supported. The material Default/TransGreen must use shaders in HlmsLowLevel::calculateHashFor at ./OgreMain/src/OgreHlmsLowLevel.cpp (line 160)
15:27:37: OGRE EXCEPTION(3:RenderingAPIException): Fixed Function pipeline is no longer allowed nor supported. The material Default/TransGreen must use shaders in HlmsLowLevel::calculateHashFor at ./OgreMain/src/OgreHlmsLowLevel.cpp (line 160)
15:27:37: Couldn't apply datablock '[Hash 0x1a9fb58f]' to this renderable. Using default one. Check previous log messages to see if there's more information.
15:27:37: Vertex Shader: 100000001VertexShader_vs
Fragment Shader: 100000001PixelShader_ps
 GLSL validation result : 
active samplers with a different type refer to the same texture image unit
15:27:38: WARNING: Deleting mapped buffer without having it unmapped. This is often sign of a resource leak or a bad pattern. Umapping the buffer for you...
15:27:38: WARNING: Deleting mapped buffer without having it unmapped. This is often sign of a resource leak or a bad pattern. Umapping the buffer for you...
15:27:38: WARNING: Deleting mapped buffer without having it unmapped. This is often sign of a resource leak or a bad pattern. Umapping the buffer for you...
15:27:38: WARNING: Deleting mapped buffer without having it unmapped. This is often sign of a resource leak or a bad pattern. Umapping the buffer for you...

It would be interesting to get the ogre2.log in case of a working installation to compare the two.

@traversaro
Copy link
Contributor

Note that mesa 24 had a lot of fixes to d3d12 (see #920 (comment)), so it may be worth to give it a shot to update mesa and see how it goes with a recent mesa.

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

No branches or pull requests

3 participants