scpeters-test / sdformat

Simulation Description Format (SDF) parser and description files.
http://sdformat.org
Other
1 stars 0 forks source link

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

Closed scpeters-test closed 11 years ago

scpeters-test 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!

scpeters-test commented 11 years ago

Original comment by Ming Gao (Bitbucket: mikegao88).


scpeters-test commented 11 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters).


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.

scpeters-test commented 11 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters).


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.

scpeters-test 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.

scpeters-test commented 11 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters).


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.

scpeters-test 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.