moveit_tutorials icon indicating copy to clipboard operation
moveit_tutorials copied to clipboard

terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc

Open Diode-LED opened this issue 4 years ago • 5 comments

Description

Overview of your issue here.

Your environment

  • ROS Distro: Melodic
  • OS Version: Ubuntu 18.04
  • Binary build
  • If binary, which release version?
  • If source, which git commit or tag?

Steps to reproduce

I am learning moveit tutorials and try the C++ interface code The cmd is this roslaunch moveit_tutorials move_group_interface_tutorial.launch

Expected behaviour

Loading robot model 'panda'... terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc

Backtrace or Console output

started roslaunch server http://pickle:42391/

SUMMARY

PARAMETERS

  • /rosdistro: melodic
  • /rosversion: 1.14.10

NODES / move_group_interface_tutorial (moveit_tutorials/move_group_interface_tutorial)

ROS_MASTER_URI=http://localhost:11311

process[move_group_interface_tutorial-1]: started with pid [7739] [ INFO] [1617182919.275873359]: Loading robot model 'panda'... terminate called after throwing an instance of 'std::bad_alloc' what(): std::bad_alloc [move_group_interface_tutorial-1] process has died [pid 7739, exit code -6, cmd /home/pickle/melodic_package/ws_moveit1/devel/lib/moveit_tutorials/move_group_interface_tutorial __name:=move_group_interface_tutorial __log:=/home/pickle/.ros/log/713c113c-9203-11eb-b739-00d86171be7f/move_group_interface_tutorial-1.log]. log file: /home/pickle/.ros/log/713c113c-9203-11eb-b739-00d86171be7f/move_group_interface_tutorial-1*.log all processes on machine have died, roslaunch will exit shutting down processing monitor... ... shutting down processing monitor complete done

Diode-LED avatar Mar 31 '21 09:03 Diode-LED

Thanks for reporting an issue. Because we're a volunteer community, providing a pull request with suggested changes is always welcomed.

welcome[bot] avatar Mar 31 '21 09:03 welcome[bot]

Did you follow the build instructions for ROS and MoveIt correctly? It looks like something is wrong with your setup.

felixvd avatar Apr 03 '21 05:04 felixvd

Did you follow the build instructions for ROS and MoveIt correctly? It looks like something is wrong with your setup.

I just do that follow the turtorials. And the last time, I do it in the right way and it can work corectly. But last week I want to try again. The cpp project write this in terminal to me. And I run the other cpp node which not with moveit can run.

And I also try to find the problem from the code. I delete the code and just remain the rosnode init. But it still error.

And I try to search in the net what is std::bad_alloc It said this is memory not enough. But I think this not the problem. And I try many methods still not deal with it

KairongWu avatar Apr 05 '21 01:04 KairongWu

So it worked on the same machine before? Did anything change in the meantime? If you cannot even initialize a node, the problem is not with MoveIt. Try installing ROS from scratch or posting this on ROS Answers, where more people will see the question.

felixvd avatar Apr 05 '21 02:04 felixvd

I mean in other workspace cpp node can run. Just the cpp node in moveit_turtorial wrong error even I delete many code just remain the rosnode init function.

I will try to posting this on ROS Answers, thanks for you answer.

KairongWu avatar Apr 05 '21 13:04 KairongWu