Hi Joel, thanks for your reply.<div><br></div><div>I haven't tested it again on my computer. We installed ROS on another laptop, also a Core2Duo but with more RAM (4Gb) and it is working perfect now.</div><div><br></div>
<div>I suppose it could be a memory issue since it seems slam_gmapping is taking over 800Mb of RAM and I only have 1Gb, I'll get back to you once I try running slam_gmapping again on my MacBook.</div><div><br></div><div>
Thanks for all your help,</div><div><br></div><div>Gonçalo Cabrita</div><div>ISR - University of Coimbra</div><div>Portugal</div><div><div><br><div class="gmail_quote">On Wed, Jul 28, 2010 at 10:48 AM, Joel Cartwright <span dir="ltr"><<a href="mailto:J.J.Cartwright@hw.ac.uk">J.J.Cartwright@hw.ac.uk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Gonçalo,<br>
<br>
Have you checked your /var/log/messages for lines like the following?<br>
<br>
Out of Memory: Killed process [PID] [process name].<br>
<br>
If you have lines like those, then it is the Linux kernel that is<br>
killing your process with SIGKILL.<br>
<br>
Joel<br>
<br>
Gonçalo Cabrita wrote, On 28/07/10 00:38:<br>
<div><div></div><div class="h5">> Hi Brian,<br>
><br>
> I tried gdb and valgrind and both tell me that slam_gmapping is getting a SIGKILL and that's it.<br>
><br>
> Tomorrow in the morning I'll install Ubuntu and ROS on my home Mac to see what happens.<br>
><br>
> I'm running the same Ubuntu on my Mac that we have on the Eee PCs with the same version of ROS installed. The Eee PCs are able to run slam_gmapping without ever crashing (not so bad after all, although the maps do come out a bit weird).<br>

><br>
> I'll let you know of my progress!<br>
><br>
> Gonçalo Cabrita<br>
> ISR - University of Coimbra<br>
> Portugal<br>
><br>
> On Jul 27, 2010, at 8:20 PM, Brian Gerkey wrote:<br>
><br>
>> hi Gonçalo,<br>
>><br>
>> It's odd that slam_gmapping is receiving a SIGKILL.  Can you try<br>
>> running it in gdb, outside roslaunch?  Something like:<br>
>><br>
>> $ roscd gmapping<br>
>> $ gdb bin/slam_gmapping<br>
>> ...<br>
>> (gdb) r<br>
>><br>
>> If it still dies from SIGKILL, then there's nothing that gdb is going<br>
>> to be able to tell you.  If it dies from something else, then you<br>
>> should try to get a backtrace from gdb.<br>
>><br>
>> You might try running inside valgrind, to see if you get a different result:<br>
>><br>
>> $ roscd gmapping<br>
>> $ valgrind -v bin/slam_gmapping<br>
>><br>
>>      brian.<br>
>><br>
>> 2010/7/27 Gonçalo Cabrita<<a href="mailto:goncabrita@gmail.com">goncabrita@gmail.com</a>>:<br>
>>> Thanks for your quick reply Brian.<br>
>>> slam_gmapping is crashing randomly, it can crash a few seconds or a few<br>
>>> minutes after it started. Also I've noticed that slam_gmapping crashing is<br>
>>> causing the internet connection to crash as well.<br>
>>><br>
>>> I did what you suggested and this is what I got:<br>
>>> I did a launch file as instructed:<br>
>>> <launch><br>
>>>    <master auto="start"/><br>
>>>    <node pkg="gmapping" type="slam_gmapping" respawn="false"<br>
>>> name="slam_gmapping" output="screen" launch-prefix="xterm -e gdb --args"><br>
>>>    </node><br>
>>> </launch><br>
>>> I open a roscore, set use_sim_time to true and then I launch slam_gmapping:<br>
>>> $ roslaunch slam_gmapping.launch<br>
>>> I get the gdb xterm window...<br>
>>> (gdb) set logging on<br>
>>> (gdb) run<br>
>>> Now I start my rosbag play....<br>
>>> The output in the gdb.txt file is:<br>
>>> Starting program:<br>
>>> /home/blazz/ros/stacks/slam_gmapping/gmapping/bin/slam_gmapping>  gdb_output<br>
>>> [Thread debugging using libthread_db enabled]<br>
>>> [New Thread 0xb7fdcb70 (LWP 2249)]<br>
>>> [New Thread 0xb77dbb70 (LWP 2250)]<br>
>>> [New Thread 0xb6fdab70 (LWP 2251)]<br>
>>> [New Thread 0xb65ffb70 (LWP 2258)]<br>
>>> [New Thread 0xb5dfeb70 (LWP 2261)]<br>
>>> [New Thread 0xb55fdb70 (LWP 2304)]<br>
>>> [New Thread 0xb4dfcb70 (LWP 2305)]<br>
>>> [Thread 0xb4dfcb70 (LWP 2305) exited]<br>
>>> [Thread 0xb55fdb70 (LWP 2304) exited]<br>
>>> [Thread 0xb5dfeb70 (LWP 2261) exited]<br>
>>> [Thread 0xb65ffb70 (LWP 2258) exited]<br>
>>> [Thread 0xb6fdab70 (LWP 2251) exited]<br>
>>> [Thread 0xb77dbb70 (LWP 2250) exited]<br>
>>> [Thread 0xb7fdcb70 (LWP 2249) exited]<br>
>>> Program terminated with signal SIGKILL, Killed.<br>
>>> The program no longer exists.<br>
>>> The output doesn't give too much info... Does it help?<br>
>>> Gonçalo Cabrita<br>
>>> ISR - University of Coimbra<br>
>>> Portugal<br>
>>> On Tue, Jul 27, 2010 at 4:40 PM, Brian Gerkey<<a href="mailto:gerkey@willowgarage.com">gerkey@willowgarage.com</a>><br>
>>> wrote:<br>
>>>><br>
>>>> hi Gonçalo,<br>
>>>><br>
>>>> A shot in the dark: you might be exhausting available memory.  In any<br>
>>>> case, try running slam_gmapping in gdb to see what's causing it to die<br>
>>>><br>
>>>> (<a href="http://www.ros.org/wiki/roslaunch/Tutorials/Roslaunch%20Nodes%20in%20Valgrind%20or%20GDB" target="_blank">http://www.ros.org/wiki/roslaunch/Tutorials/Roslaunch%20Nodes%20in%20Valgrind%20or%20GDB</a>).<br>

>>>><br>
>>>>         brian.<br>
>>>><br>
>>>> 2010/7/27 Gonçalo Cabrita<<a href="mailto:goncabrita@gmail.com">goncabrita@gmail.com</a>>:<br>
>>>>> Hi everyone!<br>
>>>>> I'm trying to generate a map according to the tutorials and I've ran<br>
>>>>> into a<br>
>>>>> bit of a problem. I'm trying to run slam_gmapping on my MacBook Core2Duo<br>
>>>>> running Ubuntu 10.04 with ROS and I'm allways getting the same error,<br>
>>>>> slam_gmapping crashes after a while after starting to run...<br>
>>>>> ...<br>
>>>>> *************RESAMPLE***************<br>
>>>>> Deleting Nodes: 3 4 5 7 10 12 17 19 21 24 26 27 Done<br>
>>>>> Deleting old particles...Done<br>
>>>>> Copying Particles and  Registering  scans... Done<br>
>>>>> update frame 422<br>
>>>>> update ld=1.00063 ad=0.0320879<br>
>>>>> Laser Pose= 5.26866 0.0983503 0.0260777<br>
>>>>> m_count 4<br>
>>>>> Average Scan Matching Score=110.945<br>
>>>>> neff= 29.3825<br>
>>>>> Registering Scans:Done<br>
>>>>> /home/blazz/ros/ros/bin/rosrun: line 35:  1862 Killed<br>
>>>>>   $exepath "$@"<br>
>>>>> This is running on other machines in the lab but not in my Mac. I've<br>
>>>>> tried<br>
>>>>> re-installing ROS but the problem persists.<br>
>>>>> What additional information should I provide to help solve this<br>
>>>>> problem???<br>
>>>>> Thanks for your help,<br>
>>>>> Gonçalo Cabrita<br>
>>>>> ISR - University of Coimbra<br>
>>>>> Portugal<br>
>>>>> _______________________________________________<br>
>>>>> ros-users mailing list<br>
>>>>> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
>>>>> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
>>>>><br>
>>>>><br>
>>>> _______________________________________________<br>
>>>> ros-users mailing list<br>
>>>> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
>>>> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> ros-users mailing list<br>
>>> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
>>> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
>>><br>
>>><br>
>> _______________________________________________<br>
>> ros-users mailing list<br>
>> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
>> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
><br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
><br>
<br>
</div></div><font color="#888888">--<br>
Research Associate<br>
Ocean Systems Laboratory<br>
Heriot-Watt University, UK<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br></div></div>