Gazebo | Ignition | Community
Ask Your Question
0

Gazebo Garden keeps crashing from malloc_consolidate: invalid chunk size

asked 2023-06-14 10:44:06 -0600

ssicari gravatar image

updated 2023-06-14 21:59:39 -0600

azeey gravatar image

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 ...
(more)
edit retag flag offensive close merge delete

Comments

Have you done a clean install of Gazebo since your upgrade? Also, it would actually be helpful to post the full error message.

azeey gravatar imageazeey ( 2023-06-14 10:51:15 -0600 )edit

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

ssicari gravatar imagessicari ( 2023-06-14 10:56:15 -0600 )edit

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?

ssicari gravatar imagessicari ( 2023-06-15 09:17:17 -0600 )edit

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

ssicari gravatar imagessicari ( 2023-06-15 09:34:15 -0600 )edit

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

ssicari gravatar imagessicari ( 2023-06-15 09:58:11 -0600 )edit

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

ssicari gravatar imagessicari ( 2023-06-15 10:06:22 -0600 )edit

I just meant a clean install of Gazebo. Maybe try apt -qq list "*sdformat*" "*gz-*" | grep installed to see what's installed.

azeey gravatar imageazeey ( 2023-06-15 10:56:05 -0600 )edit

Yeah I just finished the clean install and everything seems to be working properly now, haven't had any crashes. Thank you

ssicari gravatar imagessicari ( 2023-06-15 10:57:36 -0600 )edit

Awesome! Glad it's working.

azeey gravatar imageazeey ( 2023-06-15 11:06:19 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2023-06-14 22:04:37 -0600

azeey gravatar image

The error is really strange and points to a std::string constructor, which makes me think that you somehow have libraries built for Ubuntu 20.04 running on 22.04. I recommend uninstalling everything and installing it again.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2023-06-14 10:44:06 -0600

Seen: 261 times

Last updated: Jun 14 '23