Gazebo | Ignition | Community
Ask Your Question
0

GPU-accelerated ignition gazebo on WSLg

asked 2023-01-02 18:23:16 -0600

KSpooky gravatar image

I'm having trouble running gazebo ignition on WSL2 22.04 since it comes up with display issues. I am using wslg Running gazebo works fine but running anything in gazebo ignition leads to it crashing once it gets past the startup menu. I googled this problem and it seemed like people had it and fixed it by exporting LD_PRELOAD="/usr/lib/x86_64-linux-gnu/libstdc++.so.6" however that also did not work for me. Following this thread did help by using CPU rendering instead of GPU rendering however it is much slower and would prefer to use GPU rendering if possible. Following this video and using xserver instead did not change the problem. It seems this issue is very similar to the problem I'm having however mine crashes once it gets past the startup menu.


LIBGL_DEBUG=verbose ign gazebo
libGL: MESA-LOADER: dlopen(/usr/lib/x86_64-linux-gnu/dri/swrast_dri.so)
libGL: Can't open configuration file /etc/drirc: No such file or directory.
libGL: Can't open configuration file /home/user/.drirc: No such file or directory.
libEGL warning: MESA-LOADER: failed to open vgem: /usr/lib/dri/vgem_dri.so: cannot open shared object file: No 
such file or directory (search paths /usr/lib/x86_64-linux-gnu/dri:\$${ORIGIN}/dri:/usr/lib/dri, suffix _dri)
libEGL warning: NEEDS EXTENSION: falling back to kms_swrast
terminate called after throwing an instance of 'Ogre::UnimplementedException'
what():  OGRE EXCEPTION(9:UnimplementedException):  in GL3PlusTextureGpu::copyTo at /build/ogre-next- 
UFfg83/ogre-next-2.2.5+dfsg3/RenderSystems/GL3Plus/src/OgreGL3PlusTextureGpu.cpp (line 677)
Stack trace (most recent call last) in thread 11682:
#10 Object "[0xffffffffffffffff]", at 0xffffffffffffffff, in
#9    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f32f6b2f9ff, in
#8    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f32f6a9db42, in
#7    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f32f130b99d, in
#6    Object "/lib/x86_64-linux-gnu/libQt5Core.so.5", at 0x7f32f1309f90, in qTerminate()
#5    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f32f70762b6, in std::terminate()
#4    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f32f707624b, in
#3    Object "/usr/lib/x86_64-linux-gnu/libstdc++.so.6", at 0x7f32f706abbd, in
#2    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f32f6a317f2, in abort
#1    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f32f6a4b475, in raise
#0    Object "/lib/x86_64-linux-gnu/libc.so.6", at 0x7f32f6a9fa7c, in pthread_kill
Aborted (Signal sent by tkill() 11625 1000)`

I also sometimes get this error as well and tried to fix it by changing permissions but it blue-screened my pc.

ign gazebo
libEGL warning: failed to open /dev/dri/renderD128: Permission denied
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-04-21 09:42:34 -0600

Ayrton gravatar image

I have encountered the same problem, and this solution works well for me. link text

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2023-01-02 18:23:16 -0600

Seen: 1,808 times

Last updated: Jan 02 '23