Gazebo | Ignition | Community
Ask Your Question

[ignition] Flashing Image, Can't Quit

asked 2021-08-06 09:58:00 -0500

tovli gravatar image

updated 2021-08-06 09:58:43 -0500

Issue: Simulation World Display flashes, and cannot quit ignition application.

System Configuration:
- Invocation: ign gazebo shapes.sdf - Ignition Gazebo, version 6.0.0~pre1
- Ubuntu 20.04.2 Desktop (in VMware Fusion Virtual Machine)
- Linux rosdesk 5.11.0-25-generic #27~20.04.1-Ubuntu SMP Tue Jul 13 17:41:23 UTC 2021
x86_64 x86_64 x86_64 GNU/Linux
- VMware Fusion Player 12.1.1
- MacOS Big Sur 11.0.1
- 2018 MacMini 3.2 GHz 6-Core Intel Core i7, 32GB, Radeon RX 580 eGPU 8GB

Image Flashes:

Image Visible

Image Not Visible

Quit brings up OK/Cancel, Click OK, wait forever - must kill process to quit.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2021-08-21 06:39:33 -0500

srmainwaring gravatar image

updated 2021-08-21 06:41:50 -0500

To run ignition-gazebo with accelerated 3D graphics on an Ubuntu VMware guest you need to set the Mesa environment variables that disable some of the OpenGL extensions.

The following applies to a macOS Big Sur 11.4 host (AMD Radeon Pro W5700X 16GB) with an Ubuntu guest on VMware. You may need to experiment with the choice of valid extensions depending upon the OpenGL support of your GPU.

Set up a script you can source containing these environment variables or add them to your .bashrc:

# set_mesa_env

# Configure the Mesa Environment

# Core Mesa environment variables
export MESA_DEBUG=1
  -GL_ARB_buffer_storage \
  -GL_ARB_multi_draw_indirect \
  -GL_ARB_texture_buffer_range \
  -GL_ARB_compute_shader \
  -GL_ARB_ES3_compatibility \

Then source them:

source set_mesa_env

Additional debug info can be obtained by setting the LIBGL_* and GALLIUM_HUD environment variables:

# LibGL environment variables 
export LIBGL_DEBUG=verbose
export LIBGL_SHOW_FPS=false
export LIBGL_DRI2_DISABLE=false
export LIBGL_DRI3_DISABLE=false

# Gallium environment variables
export GALLIUM_HUD="simple,\

Setting LIBGL_ALWAYS_SOFTWARE=true is an alternative to unsetting Accerated 3D Graphics in the virtual machine settings if you want run ignition gazebo using software OpenGL.

Running the shapes.sdf example:

 ign gazebo -v 4 shapes.sdf

image description

PBS materials are supported: this using the panda_world from Ignition Fuel: Panda joint control world

 ign gazebo -v 4 panda_world.sdf

image description

If you build ignition-edifice from source you can test using the ign-rendering examples: simple_demo will run with either ogre or ogre2 as a render engine. The ogre2demo illustrates that there is still something not quite right with the OpenGL settings. It will render if you reduce the number of spot lights to a 3 x 2 grid, but fails to render correctly with a 3 x 3 grid. I'm still chasing down why that is, but any suggestions welcomed.

image description

edit flag offensive delete link more

answered 2021-08-06 10:09:09 -0500

tovli gravatar image

updated 2021-08-06 10:27:36 -0500

It seems to work just fine, (and quit just fine), with OpenGL support turned off in the VMware Fusion settings:

VMware Fusion Settings Display - OpenGL Off

Ignition With OpenGL Off

edit flag offensive delete link more
Login/Signup to Answer

Question Tools



Asked: 2021-08-06 09:58:00 -0500

Seen: 278 times

Last updated: Aug 21 '21