Gazebo | Ignition | Community
Ask Your Question
1

BadDrawable error on first run of gzserver after install

asked 2013-07-22 06:14:06 -0500

kennytilton gravatar image

Gazebo noob here, running Ubunto 12.10 (unupdated because of something I remember from instructions on setting up a laptop at a competition).

Following the excellent instructions here http://gazebosim.org/wiki/1.6/install to build from binaries all goes well until the intial run of gzserver. That results in:

kenny@ubuntu:~$ gzserver Gazebo multi-robot simulator, version 1.8.7 Copyright (C) 2013 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org

Warning [ModelDatabase.cc:331] Getting models from[http://gazebosim.org/models/]. This may take a few seconds. Msg Waiting for master Msg Connected to gazebo master @ http://127.0.0.1:11345 Msg Publicized address: 192.168.77.128 X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) Major opcode of failed request: 55 (X_CreateGC) Resource id in failed request: 0x4400002
Serial number of failed request: 30
Current serial number in output stream: 32

Running gzserver againthen brings up the server OK:

kenny@ubuntu:~$ gzserver Gazebo multi-robot simulator, version 1.8.7 Copyright (C) 2013 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org

Msg Waiting for master Msg Connected to gazebo master @ http://127.0.0.1:11345 Msg Publicized address: 192.168.77.128

In another terminal window I runsetup and then gzclient:

kenny@ubuntu:~$ gzclient Gazebo multi-robot simulator, version 1.8.7 Copyright (C) 2013 Open Source Robotics Foundation. Released under the Apache 2 License. http://gazebosim.org

Msg Waiting for master Msg Connected to gazebo master @ http://127.0.0.1:11345 Msg Publicized address: 192.168.77.128 X Error of failed request: BadDrawable (invalid Pixmap or Window parameter) Major opcode of failed request: 55 (X_CreateGC) Resource id in failed request: 0x5000002 Serial number of failed request: 30 Current serial number in output stream: 32 Segmentation fault (core dumped)

OK, that is consistent.

Any ideas on what I should try first? The instructions for building from source include some prerequisites to download install such as Ogre3D. Possibly building from source would work? I could also try Gazebo 1.9 or Debian 12.04.

Suggestions welcome

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2013-07-23 16:53:27 -0500

gerkey gravatar image

The crash with a BadDrawable error usually indicates that you're running X with software rendering. And that's usually because the driver for your GPU isn't installed or failed to load. If you run glxinfo, you'll probably find a string similar to: OpenGL renderer string: Software Rasterizer in the output.

For best results, we recommend using an NVIDIA GPU along with the proprietary drivers from NVIDIA (under Ubuntu, the driver included in the nvidia-current package usually works well). Other cards and configurations also work, but NVIDIA hardware offers the best support under Linux. If you're using a laptop, you might not have many options. On a desktop, get yourself a gamer-level NVIDIA card.

In principle, Gazebo should work fine, but slowly, with software rendering. But in practice, Gazebo frequently crashes on start in the way that you've described.

edit flag offensive delete link more
0

answered 2013-07-22 07:22:43 -0500

kennytilton gravatar image

FWIW, Gazebo 1.9 is going much better, though I got an error when the client came up about compiz failing. All my app windows then had no title bars. :( Got that sorted out with ccsm.

I just noticed that the Gazebo instructions do recommend using the latest version, but when one then clicks thru to the 1.9 installation instructions it says something scary about using it at one's own risk. That is why I went with the next latest version.

hth, kt

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-07-22 06:14:06 -0500

Seen: 7,143 times

Last updated: Jul 23 '13