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

asked 2017-02-20 07:58:57 -0500

rosfun gravatar image

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, beginner_tutorials, rplidar, hector_slam. The problem appears to be with hector_slam, but I have experienced it with rplidar as well. Whenever I do catkin_make, 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

edit retag flag offensive close merge delete



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)


MarkyMark2012 gravatar image MarkyMark2012  ( 2017-02-20 08:22:12 -0500 )edit

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 .

rosfun gravatar image rosfun  ( 2017-02-20 08:47:41 -0500 )edit

@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?

rosfun gravatar image rosfun  ( 2017-02-20 10:53:47 -0500 )edit

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

rosfun gravatar image rosfun  ( 2017-02-20 11:55:16 -0500 )edit

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

MarkyMark2012 gravatar image MarkyMark2012  ( 2017-02-20 12:12:23 -0500 )edit

@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

hamzh.albar@gmail.com gravatar image hamzh.albar@gmail.com  ( 2018-07-16 18:59:39 -0500 )edit

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

MarkyMark2012 gravatar image MarkyMark2012  ( 2018-07-18 08:23:39 -0500 )edit