Crash during CXX compile

17 views
Skip to first unread message

Pito Salas

unread,
Jan 15, 2024, 12:06:51 PMJan 15
to LINOROBOT
I am having a weird problem that maybe you have seen. I am running on a Raspberry Pi, ROS Noetic, Ubuntu 20.04.64 bit.

I am running catkin make and ask it to build only linorobot, the raspberry Pi crashes after going through 60% of the recompile. It seems to crash on this

[ 66%] Building CXX object gpg_bran4/lino_pid/CMakeFiles/pid_listen.dir/src/lino_pid_core.cpp.o

Why would a compile cause a crash? This is reproducible. 

Thanks!

Pito

Chris Albertson

unread,
Jan 15, 2024, 12:20:02 PMJan 15
to Pito Salas, LINOROBOT
What could cause this


Running out of memory and not having a swap file or a big enough swap file.   Or less likely, running out of space on the SD card (file system full)

If the Make command is doing a parallel make with something like -p6 option then remove that.  Or try cross compiling on a larger desktop system or add a swap file

That is my guess.  It could be something else

--
You received this message because you are subscribed to the Google Groups "LINOROBOT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linorobot+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/linorobot/bdb76e0e-b263-425b-b18a-7880704a6bb1n%40googlegroups.com.

Pito Salas

unread,
Jan 15, 2024, 1:33:24 PMJan 15
to Chris Albertson, LINOROBOT, Pito Salas
You hit it on the nose! I had forgotten to create a swap file but doing that didn’t solve it. Then I noticed that all I had here was a Raspberry Pi 3 Model B Rev 1.2 with less than 1G of RAM. So I changed it to -j1 and now it worked.

Question: do you like me have multiple raspis lying around and never sure which one is in a particular robot (or at least I don’t pay attention to it?) What guideline do you use for model raspi to use for a ROS robot using camera, lidar, IMU? In terms of model and/or RAM?

Thanks!

Reply all
Reply to author
Forward
0 new messages