Ask Your Question

rplidarNode double free or corruption (!prev)

asked 2021-04-29 02:05:49 -0500

vincent_yangyang gravatar image

I git the rplidar_ros from github, and then I catkin_makesuccessfully.But when I launchroslaunch rplidar_ros rplidar.launch,the error goes

double free or corruption (!prev)

[rplidarNode-2] process has died [pid 4372, exit code -6, cmd /home/sunyang/ros_learner/sy_ws/devel/lib/rplidar_ros/rplidarNode __name:=rplidarNode __log:=/home/sunyang/.ros/log/09635cd6-a8b6-11eb-8d56-3ca06773b371/rplidarNode-2.log]. log file: /home/sunyang/.ros/log/09635cd6-a8b6-11eb-8d56-3ca06773b371/rplidarNode-2*.log

some errors I have excluded:

1.USB authority. I can connect the rplidar but cannot start it successfully. And I also change serial_port authority withsudo chmod 777 /dev/ttyUSB0.But error still exist.

2.The rplidar a1 is still working. I can peacefully work in other computers T^T.

I use ubuntu18.04 with ros-melodic.

Any help or comments will be highly appreciated, thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-04-29 02:41:02 -0500

vincent_yangyang gravatar image

updated 2021-04-29 02:45:31 -0500

problem solved :) after I runsource devel/setup.bash.

It seems ridiculous. I thought I would never need to run source devel/setup.bash if I edited .bashrc first


The more sensible reason is that I download the latest package from github through

git clone
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2021-04-29 02:05:49 -0500

Seen: 102 times

Last updated: Apr 29 '21