gazebosim / sdformat

Simulation Description Format (SDFormat) parser and description files.
http://sdformat.org
Apache License 2.0
167 stars 95 forks source link

Gazebo crashes when spawning model after upgrading sdformat from 1.4.6-1 to 1.4.7-1 #21

Closed osrf-migration closed 11 years ago

osrf-migration commented 11 years ago

Original report (archived issue) by Ming Gao (Bitbucket: mikegao88).


Hello! My OS is ubuntu 12.04 32bit. I use gazebo (version: 1.9.1-1) through gazebo_ros package (version: 2.3.0-0precise-20130820-1229-+0000) in ros hydro. Today I upgraded the sdformat package, and the gazebo crashes when spawning an urdf model into a simulated environment using the spawn_model method of the gazebo_ros package. The error information is:

Warning [parser.cc:356] No element in file[data-stringSegmentation fault (core dumped)

[gazebo-1] process has died [pid 1269, exit code 139, cmd /opt/ros/hydro/lib/gazebo_ros/gzserver worlds/willowgarage.world name:=gazebo log:=/home/xxx/.ros/log/2d712c3c-0bef-11e3-860e-001c259d41ed/gazebo-1.log].

^C[gazebo_gui-2] killing on exit

Segmentation fault (core dumped)

And there is no log file. When I downgrade the installation, everything is OK again.

To reproduce the problem (assuming gazebo and ros hydro have been installed):

  1. Install hector_quadrotor package (https://github.com/tu-darmstadt-ros-pkg/hector_quadrotor)

  2. roslaunch gazebo_ros willowgarage_world.launch

  3. roslaunch hector_quadrotor_gazebo spawn_quadrotor.launch

Thanks!

osrf-migration commented 11 years ago

Original comment by Ming Gao (Bitbucket: mikegao88).


osrf-migration commented 11 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


That was my mistake. I broke ABI compatibility with sdformat 1.4.7. I'm going to re-release gazebo 1.9.1. For the time being, you can download the sdformat 1.4.6 deb from http://gazebosim.org/assets/distributions and manually install with dpkg. Re-building will take at least 6 hours.

osrf-migration commented 11 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


I've just re-released gazebo 1.9.1 (as 1.9.1-2), which should fix the problem. I've pinged the ROS maintainers to rebuild all packages that depend on gazebo. Please re-open if the problem persists.

osrf-migration commented 11 years ago

Original comment by François-Michel De Rainville (Bitbucket: fmder).


@scpeters Has this been tagged? I cannot find branch/tag gazebo_1.9.1-2 anywhere in the gazebo repository

The gazebo_1.9.1 tags is dated from the 20th of august.

Gazebo 2.0.0 is giving me troubles.

osrf-migration commented 11 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


gazebo_1.9.1-2 was not a re-tag, it was a rebuild of the gazebo_1.9.1 tag against the updated sdformat 1.4.7.

I think gazebo 2.0.0's issues will be a separate issue from this. If gazebo issue 888 is relevant, it might be easier to move this discussion there.

osrf-migration commented 11 years ago

Original comment by François-Michel De Rainville (Bitbucket: fmder).


Never mind, I installed branch gazebo_1.9 on top of sdformat 1.4.9 and it seems to be solved. At least, it has not segfaulted yet.