Gazebo Garden keeps crashing from malloc_consolidate: invalid chunk size
Hello, I am running gazebo garden in conjunction with ArduPilot. I recently updated my OS from Ubuntu 20.04 to Ubuntu 22.04. Since then when I run gazebo with gz sim it crashes, about 9/10 times. When it crashes I get a list of errors that inevitably end with malloc_consolidate: invalid chunk size. I can post the full error message if the information is requested, but it is quite long and I believe the main issue is with what I mentioned above. I can not find too much information on this online and am struggling to debug it. Any help would be appreciated.
Here is the full error message:
[Msg] Gazebo Sim GUI v7.5.0
[Msg] Received world [underwater.world] from the GUI.
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
[Msg] Gazebo Sim Server v7.5.0
[Msg] Loading SDF world file[/home/ssicari/bluerov2_ignition/worlds/underwater.world].
[Msg] Serving entity system service on [/entity/system/add]
[Msg] Create service on [/world/underwater/create]
[Msg] Remove service on [/world/underwater/remove]
[Msg] Pose service on [/world/underwater/set_pose]
[Msg] Pose service on [/world/underwater/set_pose_vector]
[Msg] Light configuration service on [/world/underwater/light_config]
[Msg] Physics service on [/world/underwater/set_physics]
[Msg] SphericalCoordinates service on [/world/underwater/set_spherical_coordinates]
[Msg] Enable collision service on [/world/underwater/enable_collision]
[Msg] Disable collision service on [/world/underwater/disable_collision]
[Msg] Material service on [/world/underwater/visual_config]
[Msg] Material service on [/world/underwater/wheel_slip]
[Msg] Thruster listening to commands on [/model/bluerov2/joint/thruster1_joint/cmd_thrust]
[Msg] Thruster listening to commands on [/model/bluerov2/joint/thruster2_joint/cmd_thrust]
[Msg] Thruster listening to commands on [/model/bluerov2/joint/thruster3_joint/cmd_thrust]
[Msg] Thruster listening to commands on [/model/bluerov2/joint/thruster4_joint/cmd_thrust]
[Msg] Thruster listening to commands on [/model/bluerov2/joint/thruster5_joint/cmd_thrust]
[Msg] Thruster listening to commands on [/model/bluerov2/joint/thruster6_joint/cmd_thrust]
[Msg] [bluerov2] Advertising on /model/bluerov2/joint/thruster1_joint/cmd_thrust.
[Msg] [bluerov2] Advertising on /model/bluerov2/joint/thruster2_joint/cmd_thrust.
[Msg] [bluerov2] Advertising on /model/bluerov2/joint/thruster3_joint/cmd_thrust.
[Msg] [bluerov2] Advertising on /model/bluerov2/joint/thruster4_joint/cmd_thrust.
[Msg] [bluerov2] Advertising on /model/bluerov2/joint/thruster5_joint/cmd_thrust.
[Msg] [bluerov2] Advertising on /model/bluerov2/joint/thruster6_joint/cmd_thrust.
[Msg] Loaded level [3]
[Msg] Serving world controls on [/world/underwater/control], [/world/underwater/control/state] and [/world/underwater/playback/control]
[Msg] Serving GUI information on [/world/underwater/gui/info]
[Msg] World [underwater] initialized with [default_physics] physics profile.
[Msg] Serving world SDF generation service on [/world/underwater/generate_world_sdf]
[Msg] Serving world names on [/gazebo/worlds]
[Msg] Resource path add service on [/gazebo/resource_paths/add].
[Msg] Resource path get service on [/gazebo/resource_paths/get].
[Msg] Resource path resolve service on [/gazebo/resource_paths/resolve].
[Msg] Resource paths published on [/gazebo/resource_paths].
[Msg] Server control service on [/server_control].
[GUI] [Msg] Loading config [/home/ssicari/.gz/sim/7/gui.config]
[GUI] [Msg] Added plugin [3D View] to main window
[GUI] [Msg] Loaded plugin [MinimalScene] from path [/usr/lib/x86_64-linux-gnu/gz-gui-7/plugins/libMinimalScene.so]
[GUI] [Wrn] [Application.cc ...
Have you done a clean install of Gazebo since your upgrade? Also, it would actually be helpful to post the full error message.
No I have not done a clean install. I was saving that as a last resort, wanted to see if there would be a way to fix it without that. I added the error message to the original post
Ok, I'll give that a try. To clarify when you say everything to you mean gazebo and it's plugins? Or the entire OS?
I uninstalled and then reinstalled with the documentation, and am now receiving this error. Library error for [/usr/lib/x86_64-linux-gnu/libgz-sim7-gz.so.7.5.0]: /lib/x86_64-linux-gnu/libgz-sim7.so.7: undefined symbol: descriptor_table_gz_2fmsgs_2fheader_2eproto I am having trouble finding much of anything about it online
After uninstalling some dependencies and trying to reinstall gazebo garden and another plug in I know get this message: Library error for [/usr/lib/x86_64-linux-gnu/libgz-sim7-gz.so.7.5.0]: /usr/lib/x86_64-linux-gnu/libgz-sim7-gz.so.7.5.0: cannot open shared object file: No such file or directory
Last update for now, it appears I never did sudo apt autoremove after removing some plugins and that problem is fixed now, I will continue with the fresh install and hopefully the main issue with also be fixed. Thank you
I just meant a clean install of Gazebo. Maybe try
apt -qq list "*sdformat*" "*gz-*" | grep installed
to see what's installed.Yeah I just finished the clean install and everything seems to be working properly now, haven't had any crashes. Thank you
Awesome! Glad it's working.