Process dies when running a launch file: [drive_train-12] process has died [pid 4966, exit code -11
Hi there. Currently working on a project involving ROS and deep learning: we're trying to run a launch file which enables us to train our Jetson TX1 bot, but each time we get an error saying that a process has died.
[INFO] [1533156994.304562]: Controller Spawner: Waiting for service controllermanager/loadcontroller [drivetrain-12] process has died [pid 4966, exit code -11, cmd /home/ubuntu/FOLDERFORROS/catkinws/devel/lib/lab4autonomousdriving/drivetrain _name:=drivetrain _log:=/home/ubuntu/.ros/log/ff1fe018-95cc-11e8-b045-00044b8e904d/drivetrain-12.log]. log file: /home/ubuntu/.ros/log/ff1fe018-95cc-11e8-b045-00044b8e904d/drivetrain-12*.log
The strange part is that we cannot seem to locate the log file for drivetrain-12 (drivetrain-12-stdout.log has nothing inside of it). Ultimately, we do not know what is going on with the error or how to go about troubleshooting it. Any help/tips would be appreciated. Regardless, here is a screenshot of the location of all the logfiles:
Asked by Luis Jibaja on 2018-08-01 16:21:47 UTC
Comments
It looks like your node is crashing on startup, before it prints anything. I would try running the same command outside of roslaunch to see if you can replicate the crash:
/home/ubuntu/FOLDER_FOR_ROS/catkin_ws/devel/lib/lab4_autonomous_driving/drive_train __name:=drive_train
Asked by ahendrix on 2018-08-01 17:00:21 UTC
Thanks for the response. We're not exactly sure how to run the same command outside of roslaunch. How might we go about doing that?
Thanks again.
Asked by L. on 2018-08-01 17:22:21 UTC
/home/ubuntu/FOLDER_FOR_ROS/catkin_ws/devel/lib/lab4_autonomous_driving/drive_train __name:=drive_train
is the command that you should run to run this process outside of roslaunch (roslaunch also prints this when the process dies, which is how I found it)Asked by ahendrix on 2018-08-01 17:25:03 UTC
Thanks. This is what happens when we run the command: [rospack] Error: package 'lab4_autonomous_driving' not found [librospack]: error while executing command Segmentation fault
Asked by Luis Jibaja on 2018-08-01 17:27:50 UTC
That looks like a bug in your code. (or maybe that you haven't sourced the setup files for your workspace correctly, but that seems less likely)
Asked by ahendrix on 2018-08-01 17:53:57 UTC
Hello we found that is issue with a video writer object after we coment this lines vidFile = new VideoWriter(); vidFile->open(vid_path, CV_FOURCC('M','J','P','G'), 30, cv::Size(320,240)); the error goes off, but later when we start to use our robot we get a different errors
Asked by Luis Jibaja on 2018-08-01 19:19:33 UTC