From: Hedayat V. <hed...@ai...> - 2008-03-25 10:07:38
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html style="direction: ltr;"> <head> <meta content="text/html;charset=UTF-8" http-equiv="Content-Type"> </head> <body style="direction: ltr;" bgcolor="#ffffff" text="#000000"> Hi!<br> Well, I think I know the problem ;) This is because currently PrePhysicsUpdate is called in parallel to SimControlThreads and in FRP this function clears mContactList. This problem was mentioned by Yuan before, but I didn't applied the fix since it would need 2 more wait functions (which might have a negative effect on the performance). OK, I'll enable the fix. Would you please check the current CVS head to see if the problem is really fixed?<br> <br> (This problem can be fixed by modifying FRP itself, but the problem might appear elsewhere in future.)<br> <br> Any suggestions for a better structure? (Yuan has proposed a change in the structure, but it could slightly modify the server behavior in multi-threaded mode).<br> <br> Thanks,<br> Hedayat<br> <br> <span><br> <style type="text/css">blockquote {color: navy !important; background-color: RGB(245,245,245) !important; padding: 0 15 10 15 !important; margin: 15 0 0 0; border-left: #1010ff 2px solid;} blockquote blockquote {color: maroon !important; background-color: RGB(235,235,235) !important; border-left-color:maroon !important} blockquote blockquote blockquote {color: green !important; background-color: RGB(225,225,225) !important; border-left-color:teal !important} blockquote blockquote blockquote blockquote {color: purple !important; background-color: RGB(215,215,215) !important; border-left-color: purple !important} blockquote blockquote blockquote blockquote blockquote {color: teal !important; background-color: RGB(205,205,205) !important; border-left-color: green !important}</style><i><b>Hesham <a class="moz-txt-link-rfc2396E" href="mailto:hes...@gm..."><hes...@gm...></a></b></i> wrote on 03/25/2008 02:01:28 AM:</span><br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:1d7...@ma..." type="cite">Hi<br> <br> I get this error on my system in the multi-threaded mode, some times after a few secs some times after a few minutes. Any idea what's the problem? (I'm using ODE 0.9)<br> <br> Program received signal SIGSEGV, Segmentation fault.<br> [Switching to Thread 0xb5a7fb90 (LWP 9138)]<br> ForceResistancePerceptor::Percept (this=0x825ee38, predList=@0xb5a7f1a4)<br> at forceresistanceperceptor.cpp:79<br> 79 Vector3f forceVec(i->second.f1[0], i->second.f1[1], i->second.f1[2]);<br> (gdb) bt<br> #0 ForceResistancePerceptor::Percept (this=0x825ee38, predList=@0xb5a7f1a4)<br> at forceresistanceperceptor.cpp:79<br> #1 0xb78a7d85 in oxygen::AgentAspect::QueryPerceptors (this=0xb3984ad8)<br> at agentaspect/agentaspect.cpp:96<br> #2 0xb79096c8 in oxygen::AgentControl::EndCycle (this=0x80914a8)<br> at simulationserver/agentcontrol.cpp:166<br> #3 0xb78ff4ee in oxygen::SimulationServer::SimControlThread (this=0x80a9818, <br> controlNode=@0xb5a7f304) at simulationserver/simulationserver.cpp:557<br> #4 0xb7903912 in boost::detail::function::void_function_obj_invoker0<boost::_bi::bind_t<void, boost::_mfi::mf1<void, oxygen::SimulationServer, boost::shared_ptr<oxygen::SimControlNode> >, boost::_bi::list2<boost::_bi::value<oxygen::SimulationServer*>, boost::_bi::value<boost::shared_ptr<oxygen::SimControlNode> > > >, void>::invoke (function_obj_ptr=<br> {obj_ptr = 0x8141f10, const_obj_ptr = 0x8141f10, func_ptr = 0x8141f10, data = "\020"}) at /usr/include/boost/bind/mem_fn_template.hpp:149<br> #5 0xb761302c in boost::function0<void, std::allocator<boost::function_base> >::operator() () from /usr/lib/libboost_thread-mt.so.1.33.1<br> #6 0xb7612c42 in ?? () from /usr/lib/libboost_thread-mt.so.1.33.1<br> #7 0xb7e21192 in start_thread () from /lib/libpthread.so.0<br> #8 0xb747c02e in clone () from /lib/libc.so.6<br> <br> Cheers,<br> Hesham<br> <br> <div><span class="gmail_quote">On 24/03/2008, <b class="gmail_sendername">Yuan Xu</b> <<a moz-do-not-send="true" href="mailto:xuy...@gm...">xuy...@gm...</a>> wrote:</span> <blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi all,<br> <br> I updated the new preview of rcssserver3d-0.5.7 in<br> <a moz-do-not-send="true" href="http://xuyuan.cn.googlepages.com/rcssserver3d-0.5.7-preview.tar.gz">http://xuyuan.cn.googlepages.com/rcssserver3d-0.5.7-preview.tar.gz</a><br> <br> Could you take a look at it?<br> if there is not any problem, I will publish it tomorrow.<br> <br> Thanks,<br> Xu Yuan<br> <br> <br> -------------------------------------------------------------------------<br> This SF.net email is sponsored by: Microsoft<br> Defy all challenges. Microsoft(R) Visual Studio 2008.<br> <a moz-do-not-send="true" href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a><br> _______________________________________________<br> Simspark Generic Physical MAS Simulator<br> simspark-devel mailing list<br> <a moz-do-not-send="true" href="mailto:sim...@li...">sim...@li...</a><br> <a moz-do-not-send="true" href="https://lists.sourceforge.net/lists/listinfo/simspark-devel">https://lists.sourceforge.net/lists/listinfo/simspark-devel</a><br> </blockquote> </div> <br> <pre wrap=""> <hr size="4" width="90%"> ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. <a class="moz-txt-link-freetext" href="http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/">http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/</a> </pre> <pre wrap=""> <hr size="4" width="90%"> _______________________________________________ Simspark Generic Physical MAS Simulator simspark-devel mailing list <a class="moz-txt-link-abbreviated" href="mailto:sim...@li...">sim...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/simspark-devel">https://lists.sourceforge.net/lists/listinfo/simspark-devel</a> </pre> </blockquote> </body> </html> |