ros-simulation / gazebo_ros_pkgs

Wrappers, tools and additional API's for using ROS with Gazebo
http://wiki.ros.org/gazebo_ros_pkgs
766 stars 772 forks source link

segmentation fault core dumped with ROS Melodic, Gazebo 9 #1041

Closed HareshKarnan closed 4 years ago

HareshKarnan commented 4 years ago

I installed ROS Melodic using apt on my fresh Ubuntu 18.04 installation. I've installed the nvidia driver 430.50 for the RTX 2060. I set the device to nvidia. glxgears works fine.

When I launch a toyota HSR robot simulation, I get the following segfault error :

GNU gdb (Ubuntu 8.1-0ubuntu3.2) 8.1.0.20180409-git Copyright (C) 2018 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: http://www.gnu.org/software/gdb/bugs/. Find the GDB manual and other documentation resources online at: http://www.gnu.org/software/gdb/documentation/. For help, type "help". Type "apropos word" to search for commands related to "word"... Reading symbols from gzserver...(no debugging symbols found)...done. [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] process[base_path_planner-45]: started with pid [17479] process[omni_path_follower-46]: started with pid [17484] [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] process[pose_integrator-47]: started with pid [17485] process[base_rviz_wrapper-48]: started with pid [17490] process[grid_map_server-49]: started with pid [17493] process[tmc_map_merger-50]: started with pid [17494] process[laser_2d_localizer-51]: started with pid [17496] process[move_base-52]: started with pid [17504] process[action_move_base-53]: started with pid [17505] process[scan_to_cloud_converter-54]: started with pid [17509] process[viewpoint_controller-55]: started with pid [17510] process[marker_based_localizer-56]: started with pid [17513] process[safety_velocity_limiter-57]: started with pid [17518] [ INFO] [1581092159.377732985]: Initializing nodelet with 12 worker threads. process[velocity_switcher-58]: started with pid [17536] process[marker-59]: started with pid [17539] process[placement_area_detector-60]: started with pid [17553] process[tabletop_segmentator_node-61]: started with pid [17561] process[restoredb-62]: started with pid [17571] process[env_db-63]: started with pid [17577] process[action_manager-64]: started with pid [17578] process[action_planner-65]: started with pid [17586] No module named PySide.QtCore process[task_manager-66]: started with pid [17589] process[action_take-67]: started with pid [17598] process[action_give-68]: started with pid [17599] process[action_pick_up-69]: started with pid [17600] [restoredb-62] process has finished cleanly log file: /home/haresh/.ros/log/1f341380-49c5-11ea-ba0b-d43b0411f666/restoredb-62*.log process[action_put-70]: started with pid [17602] process[hsrb/interactive_teleop-71]: started with pid [17603] [ WARN] [1581092159.530993538]: No allowable_position_error parameter process[hsrb/pseudo_velocity_controller-72]: started with pid [17605] process[hsrb/interactive_teleop_joy-73]: started with pid [17607] process[hsrb/pseudo_endeffector_controller-74]: started with pid [17608] [ WARN] [1581092159.568450539]: No allowable_orientation_error parameter [ WARN] [1581092159.570543798]: No num_limit_retry_counter parameter process[hsrb/joy_node-75]: started with pid [17609] process[hsrb_web_server_node-76]: started with pid [17614] process[rosbridge_websocket-77]: started with pid [17617] process[rosapi-78]: started with pid [17622] process[tf2_web_republisher-79]: started with pid [17623] process[interactive_marker_proxy-80]: started with pid [17624] process[remote_exec_manager-81]: started with pid [17625] process[task_carry-82]: started with pid [17629] process[heartbeat_watcher-83]: started with pid [17631] process[web_video_server-84]: started with pid [17635] process[web_video_server2-85]: started with pid [17648] process[depthcloud_encoder_node-86]: started with pid [17650] process[tf2_buffer_server-87]: started with pid [17653] process[rviz-88]: started with pid [17658] [ WARN] [1581092159.941286187]: Not set 'map_filter_distance_goal_limit' or invalid. Use default value [ WARN] [1581092160.028567241]: Not set 'sub_goal_interval' or invalid. Use default value [ WARN] [1581092160.031831849]: Not set 'path_length_ratio_threshold' or invalid. Use default value registered capabilities (classes):

[INFO] [1581092165.812510, 0.000000]: Calling service /gazebo/set_model_configuration Thread 13 "gzserver" received signal SIGSEGV, Segmentation fault. [Switching to Thread 0x7fffb1ffb700 (LWP 18242)] 0x00007ffebbffbd80 in typeinfo for hsrb_base_controllers::OmniBaseTrajectoryControl () from /opt/ros/melodic/lib//libhsrb_base_controllers.so (gdb) enter Undefined command: "enter". Try "help". (gdb) next Single stepping until exit from function _ZTIN21hsrb_base_controllers25OmniBaseTrajectoryControlE, which has no line number information. [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] [ERROR] [1581092170.803879797]: poll failed with error Interrupted system call [tcsetpgrp failed in terminal_inferior: Inappropriate ioctl for device] Couldn't get registers: No such process. Couldn't get registers: No such process. (gdb) [Thread 0x7ffec0dc3700 (LWP 18512) exited] [Thread 0x7ffec15c4700 (LWP 18506) exited] [Thread 0x7ffec20b4700 (LWP 18497) exited] [Thread 0x7ffe820a4700 (LWP 18451) exited] [Thread 0x7ffe828a5700 (LWP 18450) exited] [Thread 0x7ffe88adc700 (LWP 18445) exited] [Thread 0x7ffe892dd700 (LWP 18444) exited] [Thread 0x7ffe8a574700 (LWP 18442) exited] [Thread 0x7ffe8b7fe700 (LWP 18441) exited] [Thread 0x7ffe8bfff700 (LWP 18440) exited] [Thread 0x7ffe9883a700 (LWP 18439) exited] [Thread 0x7ffe9903b700 (LWP 18438) exited] [Thread 0x7ffe9983c700 (LWP 18436) exited] [Thread 0x7ffeb583d700 (LWP 18425) exited] [Thread 0x7ffeb719c700 (LWP 18423) exited] [Thread 0x7ffec2ed4700 (LWP 18419) exited] [Thread 0x7ffefcbf5700 (LWP 18410) exited] [Thread 0x7ffefd3f6700 (LWP 18409) exited] [Thread 0x7ffefdbf7700 (LWP 18408) exited] [Thread 0x7ffefe3f8700 (LWP 18407) exited] [Thread 0x7ffefe7f9700 (LWP 18331) exited] [Thread 0x7ffefebfa700 (LWP 18330) exited] [Thread 0x7ffeff3fc700 (LWP 18329) exited] [Thread 0x7ffefeffb700 (LWP 18328) exited] [Thread 0x7ffeff7fd700 (LWP 18327) exited] [Thread 0x7ffeffbfe700 (LWP 18326) exited] [Thread 0x7ffefffff700 (LWP 18325) exited] [Thread 0x7fff1c7f8700 (LWP 18324) exited] [Thread 0x7fff247f8700 (LWP 18323) exited] [Thread 0x7fff387f8700 (LWP 18322) exited] [Thread 0x7fff5c5f8700 (LWP 18321) exited] [Thread 0x7fff1cff9700 (LWP 18320) exited] [Thread 0x7fff1d7fa700 (LWP 18319) exited] [Thread 0x7fff1dffb700 (LWP 18318) exited] [Thread 0x7fff1e7fc700 (LWP 18317) exited] [Thread 0x7fff1effd700 (LWP 18316) exited] [Thread 0x7fff1f7fe700 (LWP 18315) exited] [Thread 0x7fff1ffff700 (LWP 18314) exited] [Thread 0x7fff24ff9700 (LWP 18313) exited] [Thread 0x7fff257fa700 (LWP 18312) exited] [Thread 0x7fff25ffb700 (LWP 18311) exited] [Thread 0x7fff267fc700 (LWP 18310) exited] [Thread 0x7fff26ffd700 (LWP 18309) exited] [Thread 0x7fff277fe700 (LWP 18308) exited] [Thread 0x7fff27fff700 (LWP 18307) exited] [Thread 0x7fff38ff9700 (LWP 18306) exited] [Thread 0x7fff397fa700 (LWP 18305) exited] [Thread 0x7fff39ffb700 (LWP 18304) exited] [Thread 0x7fff3a7fc700 (LWP 18287) exited] [Thread 0x7fff3affd700 (LWP 18286) exited] [Thread 0x7fff3b7fe700 (LWP 18285) exited] [Thread 0x7fff3bfff700 (LWP 18284) exited] [Thread 0x7fff5cff9700 (LWP 18283) exited] [Thread 0x7fff5d7fa700 (LWP 18282) exited] [Thread 0x7fff5dffb700 (LWP 18281) exited] [Thread 0x7fff5e7fc700 (LWP 18280) exited] [Thread 0x7fff5effd700 (LWP 18279) exited] [Thread 0x7fff5f7fe700 (LWP 18278) exited] [Thread 0x7fff5ffff700 (LWP 18277) exited] [Thread 0x7fff84c48700 (LWP 18276) exited] [Thread 0x7fff8cff9700 (LWP 18253) exited] [Thread 0x7fff8d7fa700 (LWP 18251) exited] [Thread 0x7fff8dffb700 (LWP 18250) exited] [Thread 0x7fff8e7fc700 (LWP 18249) exited] [Thread 0x7fff8effd700 (LWP 18248) exited] [Thread 0x7fff8f7fe700 (LWP 18247) exited] [Thread 0x7fff87fff700 (LWP 18246) exited] [Thread 0x7fff8ffff700 (LWP 18245) exited] [Thread 0x7fffb0ff9700 (LWP 18244) exited] [Thread 0x7fffb17fa700 (LWP 18243) exited] [Thread 0x7fffb27fc700 (LWP 18241) exited] [Thread 0x7fffb2ffd700 (LWP 18240) exited] [Thread 0x7fffb37fe700 (LWP 18239) exited] [Thread 0x7fffb3fff700 (LWP 18238) exited] [Thread 0x7fffb8f95700 (LWP 18237) exited] [Thread 0x7fffb9796700 (LWP 18236) exited] [Thread 0x7fffb9f97700 (LWP 18235) exited] [Thread 0x7fffba798700 (LWP 18234) exited] [Thread 0x7fffbb79a700 (LWP 18232) exited] [Thread 0x7fffbbf9b700 (LWP 18231) exited] [Thread 0x7fffc0913700 (LWP 18226) exited] [Thread 0x7ffff7f27a00 (LWP 17477) exited] Traceback (most recent call last): File "/opt/ros/melodic/lib/controller_manager/spawner", line 207, in if name == 'main': main() File "/opt/ros/melodic/lib/controller_manager/spawner", line 185, in main resp = load_controller(name) File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 439, in call return self.call(*args, **kwds) File "/opt/ros/melodic/lib/python2.7/dist-packages/rospy/impl/tcpros_service.py", line 529, in call raise ServiceException("transport error completing service call: %s"%(str(e))) rospy.service.ServiceException: transport error completing service call: unable to receive data from sender, check sender's logs for details [INFO] [1581092170.940468, 0.000000]: Shutting down spawner. Stopping and unloading controllers... [INFO] [1581092170.941897, 0.000000]: Stopping all controllers... Service call failed: unable to connect to service: [Errno 104] Connection reset by peer [ERROR] [1581092170.952732, 0.000000]: SetModelConfiguration service failed. Exiting. [WARN] [1581092170.954048, 0.000000]: Controller Spawner error while taking down controllers: unable to connect to service: [Errno 104] Connection reset by peer

Program terminated with signal SIGSEGV, Segmentation fault. The program no longer exists. [hsrb/controller_spawner-25] process has died [pid 17338, exit code 1, cmd /opt/ros/melodic/lib/controller_manager/spawner joint_state_controller arm_trajectory_controller head_trajectory_controller omni_base_controller --timeout 60 name:=controller_spawner __log:=/home/haresh/.ros/log/1f341380-49c5-11ea-ba0b-d43b0411f666/hsrb-controller_spawner-25.log]. log file: /home/haresh/.ros/log/1f341380-49c5-11ea-ba0b-d43b0411f666/hsrb-controller_spawner-25*.log [spawn_hsrb_model-4] process has died [pid 17191, exit code 1, cmd /opt/ros/melodic/lib/gazebo_ros/spawn_model -urdf -param robot_description -model hsrb -x 5 -y 6.6 -z 0 -Y 0.0 -J arm_lift_joint 0.05 -J arm_flex_joint 0.0 -J arm_roll_joint -1.57 -J wrist_flex_joint -1.57 -J wrist_roll_joint 0.0 -J head_pan_joint 0.0 -J head_tilt_joint 0.0 -J hand_motor_joint 1.2 name:=spawn_hsrb_model __log:=/home/haresh/.ros/log/1f341380-49c5-11ea-ba0b-d43b0411f666/spawn_hsrb_model-4.log]. log file: /home/haresh/.ros/log/1f341380-49c5-11ea-ba0b-d43b0411f666/spawn_hsrb_model-4*.log

chapulina commented 4 years ago

Hi @HareshMiriyala , please ask questions at http://answers.gazebosim.org/ . This issue tracker is for bug reports and feature requests. See you on Gazebo Answers!