From: Hedayat V. <hed...@ai...> - 2008-04-13 14:19:30
|
<!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"> <p>Hi Yuan,<span></span></p> <p style="margin-bottom: 0cm; margin-top: 0pt;"><span></span></p> <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>"Yuan Xu" <a class="moz-txt-link-rfc2396E" href="mailto:xuy...@gm..."><xuy...@gm...></a></b></i> wrote on 04/13/2008 05:51:38 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:18a...@ma..." type="cite"> <pre wrap="">Hi Hedayat, > Hi Yuan, > I'll check it ASAP. Thanks. </pre> </blockquote> You're welcome. A little testing till now. Two issues now:<br> 1. if I run simspark and monitorspark and then connect an agent, the agent won't appear in correct color (it's gray instead of blue). If I close the monitorspark and run it again, it's OK.<br> 2. Sometimes when I connect the first agent, monitorspark crashes.<br> <br> This is what I get from gdb:<br> Program received signal SIGSEGV, Segmentation fault.<br> [Switching to Thread -1208244496 (LWP 25167)]<br> 0x0615dc50 in __dynamic_cast () from /usr/lib/libstdc++.so.6<br> (gdb) bt<br> #0 0x0615dc50 in __dynamic_cast () from /usr/lib/libstdc++.so.6<br> #1 0x0021c779 in boost::shared_dynamic_cast<oxygen::BaseNode, zeitgeist::Leaf><br> (r=@0x860983c) at /usr/include/boost/shared_ptr.hpp:209<br> #2 0x00549410 in RubySceneImporter::ReadDeltaGraph (this=0x80c0978, <br> sexp=0x8561518, root=@0xbfe3e8a8)<br> at ../../../rcssserver3D/plugin/rubysceneimporter/rubysceneimporter.cpp:873<br> #3 0x00549327 in RubySceneImporter::ReadDeltaGraph (this=0x80c0978, <br> sexp=0x8560348, root=@0xbfe3e938)<br> at ../../../rcssserver3D/plugin/rubysceneimporter/rubysceneimporter.cpp:882<br> #4 0x00549327 in RubySceneImporter::ReadDeltaGraph (this=0x80c0978, <br> sexp=0x8546288, root=@0xbfe3e9ac)<br> at ../../../rcssserver3D/plugin/rubysceneimporter/rubysceneimporter.cpp:882<br> #5 0x0054aea3 in RubySceneImporter::ParseScene (this=0x80c0978, <br> scene=0x8608cd4 "(RDS 0 1)((nd)(nd(nd))(nd(nd))(nd(nd))(nd)(nd(nd))(nd(nd))(nd(nd))(nd)(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd))(nd(nd(nd)(nd(nd)(nd(nd)))))(nd(nd(nd)(nd("..., size=548, <br> root=@0xbfe3e9f4, parameter=@0xbfe3e9ec)<br> at ../../../rcssserver3D/plugin/rubysceneimporter/rubysceneimporter.cpp:223<br> #6 0x00544298 in RubySceneImporter::ParseScene (this=0x80c0978, <br> scene=@0xbfe3ea9c, root=@0xbfe3ea88, parameter=@0xbfe3ea80)<br> at ../../../rcssserver3D/plugin/rubysceneimporter/rubysceneimporter.cpp:173<br> #7 0x005adf7a in SparkMonitorClient::ParseMessage (this=0x80ab3c8, <br> msg=@0xbfe3eaf4)<br> at ../../../rcssserver3D/plugin/sparkmonitor/sparkmonitorclient.cpp:235<br> #8 0x005ae74c in SparkMonitorClient::StartCycle (this=0x80ab3c8)<br> at ../../../rcssserver3D/plugin/sparkmonitor/sparkmonitorclient.cpp:109<br> #9 0x002c3323 in oxygen::SimulationServer::ControlEvent (this=0x80c47b8, <br> event=oxygen::SimulationServer::CE_StartCycle)<br> at ../../../rcssserver3D/lib/oxygen/simulationserver/simulationserver.cpp:270<br> #10 0x002c5aab in oxygen::SimulationServer::Cycle (this=0x80c47b8, <br> inputCtr=@0xbfe3ebcc)<br> at ../../../rcssserver3D/lib/oxygen/simulationserver/simulationserver.cpp:348<br> #11 0x002c4e46 in oxygen::SimulationServer::Run (this=0x80c47b8, argc=1, <br> argv=0xbfe3ed34)<br> at ../../../rcssserver3D/lib/oxygen/simulationserver/simulationserver.cpp:330<br> #12 0x08049346 in main (argc=1, argv=0xbfe3ed34)<br> at ../../../rcssserver3D/app/monitorspark/main.cpp:141<br> <br> <br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap="">I just wander whether we can remove the follow codes in inputsystemsdl.cpp: 00082 if (!SDL_WasInit(SDL_INIT_VIDEO)) 00083 { 00084 if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_NOPARACHUTE) < 0) 00085 { 00086 GetLog()->Error() << "ERROR: (InputSystemSDL) SDL not initialized!\n"; 00087 return false; 00088 } 00089 SDL_SetVideoMode(0,0,0,0); 00090 static SDL_SysWMinfo pInfo; 00091 SDL_VERSION(&pInfo.version); 00092 SDL_GetWMInfo(&pInfo); It works in my system without these codes, but I am not sure in other system. </pre> </blockquote> The comment above the following code says that video should be initialized for input system to work. BTW, by removing the last four lines the window won't appear. So I think it's safe to retain SDL initialization here.<br> <br> Thanks,<br> Hedayat<br> <br> <blockquote style="border-left: 2px solid rgb(16, 16, 255); color: navy; background-color: rgb(245, 245, 245); padding-left: 15px;" cite="mid:18a...@ma..." type="cite"> <pre wrap=""> -- Best wishes! Xu Yuan School of Automation Southeast University, Nanjing, China mail: <a class="moz-txt-link-abbreviated" href="mailto:xuy...@gm...">xuy...@gm...</a> <a class="moz-txt-link-abbreviated" href="mailto:xy...@ya...">xy...@ya...</a> web: <a class="moz-txt-link-freetext" href="http://xuyuan.cn.googlepages.com">http://xuyuan.cn.googlepages.com</a> -------------------------------------------------- ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. <a class="moz-txt-link-freetext" href="http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone">http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone</a> _______________________________________________ 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> |