Robotics StackExchange | Archived questions

Hello! I have got a strange problem here and I am not able to understand what is going on. Please help!

I am running ROS kinetic on ubuntu mate 16.04 lts on Raspberry pi 3. I have 3 packages in my src file at the moment, beginnertutorials, rplidar, hectorslam. The problem appears to be with hectorslam, but I have experienced it with rplidar as well. Whenever I do **catkinmake, after a certain percentage(not fixed!) of make process the system (Raspberry Pi 3) gets **hanged and there is no way to get around it except restarting. Need help asap please. Thanks

Asked by rosfun on 2017-02-20 08:58:57 UTC

Comments

Hi - first comment suggest you make your titles a little more meaningful. Secondly the issue you describe is very vague. Can you at least provide the the output from catkin_make.

I expect you need to increase your shared memory size. Also try running catkin_make -j1 (i.e. just use one core)

Mark

Asked by MarkyMark2012 on 2017-02-20 09:22:12 UTC

Sorry for that. I'll be careful next time. As I said before, the system is hanged! I cannot do anything and its just stuck. I am attaching an image here http://imgur.com/a/IM9ey .

Asked by rosfun on 2017-02-20 09:47:41 UTC

@MarkyMark2012 I think I found the problem . I watched the memory using "watch -n 0.5 free -m" as the build process went on. Turns out that the memory is running out.here is the picture when memory almost runs out and rapsberry pi freezes. Any solution?

Asked by rosfun on 2017-02-20 11:53:47 UTC

@MarkyMark2012 I have resolved the issue by adding a swap partition following steps given in this link .

Asked by rosfun on 2017-02-20 12:55:16 UTC

Cool - pleased to hear it. Thought swap size might have been the issue. M

Asked by MarkyMark2012 on 2017-02-20 13:12:23 UTC

@rosfun Could you please explain you solved the problem ?? I'm having the same issue, I did not understand what's going on the link you shared

Asked by hamzh.albar@gmail.com on 2018-07-16 18:59:39 UTC

I can't see the images - However I expect the solution was to increase the swap space

Asked by MarkyMark2012 on 2018-07-18 08:23:39 UTC

Answers