ROS2 Ignition Gazebo [closed]

asked 2020-03-19 08:08:20 -0500

TomSon gravatar image

Hi, I try to test gazebo ignition through a Ubuntu 18.04 VM with OpenGL capabilities and I obtain this error when I launch :

ign gazebo shapes.sdf -v 4

Output log :

[GUI] [Wrn] [Application.cc:649] [QT] QQmlComponent: Component is not ready
[GUI] [Err] [Plugin.cc:132] Failed to instantiate QML file [:/EntityTree/EntityTree.qml].
* Are you sure it's been added to the .qrc file?
* Are you sure the file is valid QML? You can check with the `qmlscene` tool
[GUI] [Err] [Ogre2RenderEngine.cc:732]  Unable to create the rendering window
[GUI] [Err] [Ogre2RenderEngine.cc:732]  Unable to create the rendering window
[GUI] [Err] [Ogre2RenderEngine.cc:732]  Unable to create the rendering window
[GUI] [Err] [Ogre2RenderEngine.cc:732]  Unable to create the rendering window
[GUI] [Err] [Ogre2RenderEngine.cc:732]  Unable to create the rendering window
[GUI] [Err] [Ogre2RenderEngine.cc:732]  Unable to create the rendering window
[GUI] [Err] [Ogre2RenderEngine.cc:732]  Unable to create the rendering window
[GUI] [Err] [Ogre2RenderEngine.cc:732]  Unable to create the rendering window
[GUI] [Err] [Ogre2RenderEngine.cc:732]  Unable to create the rendering window
[GUI] [Err] [Ogre2RenderEngine.cc:732]  Unable to create the rendering window
[GUI] [Err] [Ogre2RenderEngine.cc:739] Unable to create the rendering window

/usr/lib/ruby/ignition/cmdgazebo3.rb:312: [BUG] Segmentation fault at 0x00000000000002a8
ruby 2.5.1p57 (2018-03-29 revision 63029) [x86_64-linux-gnu]

-- Control frame information -----------------------------------------------
c:0007 p:---- s:0055 e:000054 CFUNC  :call
c:0006 p:0017 s:0050 e:000049 METHOD /usr/lib/ruby/ignition/cmdgazebo3.rb:312
c:0005 p:0044 s:0044 e:000043 BLOCK  /usr/lib/ruby/ignition/cmdgazebo3.rb:329 [FINISH]
c:0004 p:---- s:0041 e:000040 CFUNC  :fork
c:0003 p:0605 s:0037 e:000036 METHOD /usr/lib/ruby/ignition/cmdgazebo3.rb:326
c:0002 p:0628 s:0019 E:001078 EVAL   /usr/bin/ign:267 [FINISH]
c:0001 p:0000 s:0003 E:001850 (none) [FINISH]

-- Ruby level backtrace information ----------------------------------------
/usr/bin/ign:267:in `<main>'
/usr/lib/ruby/ignition/cmdgazebo3.rb:326:in `execute'
/usr/lib/ruby/ignition/cmdgazebo3.rb:326:in `fork'
/usr/lib/ruby/ignition/cmdgazebo3.rb:329:in `block in execute'
/usr/lib/ruby/ignition/cmdgazebo3.rb:312:in `runGui'
/usr/lib/ruby/ignition/cmdgazebo3.rb:312:in `call'

-- Machine register context ------------------------------------------------
 RIP: 0x00007f88e4587940 RBP: 0x00007f88d804c3b0 RSP: 0x00007f88e61d8140
 RAX: 0x0000000000000000 RBX: 0x00007f88d806efa0 RCX: 0x0000000000000040
 RDX: 0x0000000000000000 RDI: 0x00007f88d806efa0 RSI: 0x00007f88d804c3b0
  R8: 0x0000000000000004  R9: 0x0000000000000000 R10: 0x000000000000003d
 R11: 0x00007f88e460f820 R12: 0x00007f88d806ec30 R13: 0x00007f88d806efa0
 R14: 0x0000558b9e52b6d0 R15: 0x00007f88e61d83a0 EFL: 0x0000000000010246

-- C level backtrace information -------------------------------------------
/usr/lib/x86_64-linux-gnu/libruby-2.5.so.2.5(0x7f89472e5aa5) [0x7f89472e5aa5]
/usr/lib/x86_64-linux-gnu/libruby-2.5.so.2.5(0x7f89472e5cdc) [0x7f89472e5cdc]
/usr/lib/x86_64-linux-gnu/libruby-2.5.so.2.5(0x7f89471af884) [0x7f89471af884]
/usr/lib/x86_64-linux-gnu/libruby-2.5.so.2.5(0x7f8947275ab2) [0x7f8947275ab2]
/lib/x86_64-linux-gnu/libc.so.6(0x7f8946d75f20) [0x7f8946d75f20]
/usr/lib/x86_64-linux-gnu/libOgreMain.so.2.1.0(_ZN4Ogre15ConstBufferPool19_changeRenderSystemEPNS_12RenderSystemE+0x60) [0x7f88e4587940]
/usr/lib/x86_64-linux-gnu/libOgreHlmsUnlit.so.2.1.0(_ZN4Ogre9HlmsUnlit19_changeRenderSystemEPNS_12RenderSystemE+0x3a) [0x7f88dfdf01aa]
/usr/lib/x86_64-linux-gnu/libOgreMain.so.2.1.0(_ZN4Ogre11HlmsManager12registerHlmsEPNS_4HlmsEb+0x59) [0x7f88e460f879]
/usr/lib/x86_64-linux-gnu ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason Gazebo Question: The Gazebo community prefers to answer questions at: http://answers.gazebosim.org by gvdhoorn
close date 2020-03-19 08:34:56.560749

Comments

It looks like a VM graphics issue.

Obviously not an answer but I've been able to get the basic demos working in docker recently. If it's of any help, the Dockerfiles are located at https://github.com/osrf/docker_images...

Prerequisite: docker, rocker and nvidia-docker installed

mkdir -p /tmp/test_ignition && cd /tmp/test_ignition
git clone https://github.com/osrf/docker_images -b ignition
cd docker_images/ignition/citadel/ubuntu/bionic
make build
rocker --x11 --nvidia ignition:citadel-bionic "ign gazebo shapes.sdf -v 4"
marguedas gravatar image marguedas  ( 2020-03-19 08:34:55 -0500 )edit

Thanks I achieve to make it run in the VM but it is all blurry and not workable at all. I launch the light.sdf to get the previous version of ogre working for that. I will try your docker.

TomSon gravatar image TomSon  ( 2020-03-19 08:47:29 -0500 )edit

I recreate my question here https://answers.gazebosim.org/questio...

TomSon gravatar image TomSon  ( 2020-03-19 08:55:02 -0500 )edit

@marguedas Do you have a link to install rocker ?

TomSon gravatar image TomSon  ( 2020-03-19 09:09:26 -0500 )edit

The rocker repository is at https://github.com/osrf/rocker.
Listed installation options are (copied from repository above):

Debian:
Debian packages are available from the ROS repositories. You can set them up in step one here then come back.
Then you can sudo apt-get install python3-rocker

PIP:
Rocker is available via pip you can install it via pip using

pip install rocker

marguedas gravatar image marguedas  ( 2020-03-19 09:30:36 -0500 )edit