From: Tully F. <tf...@wi...> - 2009-02-02 23:36:04
|
There have been a couple other posts relating to this and I think I finally found a way to make things work on my machine, described below. It's a hack but it does let things work. I found this solution for I discovered that in the 3.0.1 I could start Stage w/o a world file and load it using the menu. It appears to be some form of startup/race condition. The quick solution requires one additional line changed in libstage/main.cc This is not a proper fix but I hope it will get people running in the mean time. _ Against the 2.x version _ Index: libstage/main.cc =================================================================== --- libstage/main.cc (revision 7126) +++ libstage/main.cc (working copy) @@ -50,7 +50,8 @@ Stg::Init( &argc, &argv ); StgWorld* world = usegui ? new StgWorldGui(800, 700, argv[0]) : new StgWorld(); - + + world->Update(); world->Load( argv[argc-1] ); while( ! world->TestQuit() ) _ Against 3.0.1 version of stage_ --- libstage/main.cc 2008-07-30 11:21:47.000000000 -0700 +++ ../main.cc 2009-02-02 15:03:25.000000000 -0800 @@ -58,6 +58,7 @@ { const char* worldfilename = argv[optindex]; StgWorld* world = ( usegui ? new StgWorldGui( 400, 300, worldfilename ) : new StgWorld( worldfilename ) ); + world->UpdateAll(); world->Load( worldfilename ); loaded_world_file = true; } Good luck, Tully Tully Foote wrote: > I'm running a Dell Inspiron 640m with intel integrated video: lspci > ... > 00:00.0 Host bridge: Intel Corporation Mobile 945GM/PM/GMS, 943/940GML > and 945GT Express Memory Controller Hub (rev 03) > 00:02.0 VGA compatible controller: Intel Corporation Mobile 945GM/GMS, > 943/940GML Express Integrated Graphics Controller (rev 03) > 00:02.1 Display controller: Intel Corporation Mobile 945GM/GMS/GME, > 943/940GML Express Integrated Graphics Controller (rev 03) > ... > > I have xserver-xorg-video-intel Version: 2:2.4.1-1ubuntu10 which > lists support for intel i945 video chipset. > The library (libGL.so.1 is linked to libGL.so.1.2) which is crashing > are both installed by libgl1-mesa-glx > > I've done some more experiments as well. I've downloaded and compiled > Stage 3.0.1 from the tar ball. Below is the error I get there. It > looks like a similar problem, which stems from the GL library again. > It seems like it's probably specific to my hardware but if anyone has > a good suggestion on how to update/switch my drivers that would be > appreciated. > Thanks, > Tully > > tfoote@raven:~/misc/Stage-3.0.1-Source$ gdb ./libstage/stage > GNU gdb 6.8-debian > Copyright (C) 2008 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > <http://gnu.org/licenses/gpl.html> > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. Type "show > copying" > and "show warranty" for details. > This GDB was configured as "i486-linux-gnu"... > (gdb) r worlds/simple.world > Starting program: /home/tfoote/misc/Stage-3.0.1-Source/libstage/stage > worlds/simple.world > [Thread debugging using libthread_db enabled] > Stage 3.0.1 > [New Thread 0xb77868e0 (LWP 10462)] > [Loading worlds/simple.world][Include pioneer.inc][Include > map.inc][Include sick.inc] > Program received signal SIGSEGV, Segmentation fault. > [Switching to Thread 0xb77868e0 (LWP 10462)] > 0xb7e38156 in glGenLists () from /usr/lib/libGL.so.1 > (gdb) bt full > #0 0xb7e38156 in glGenLists () from /usr/lib/libGL.so.1 > No symbol table info available. > #1 0xb7fa6474 in StgModel (this=0x97b2e10, world=0x9788c00, > parent=0x0, type=Stg::MODEL_TYPE_PLAIN) at > /home/tfoote/misc/Stage-3.0.1-Source/libstage/model.cc:203 > No locals. > #2 0xb7fb7d37 in CreateModel (world=0x9788c00, parent=0x0) at > /home/tfoote/misc/Stage-3.0.1-Source/libstage/typetable.cc:7 > No locals. > #3 0xb7fb90c4 in Stg::StgWorld::Load (this=0x9788c00, > worldfile_path=0xbfeed5b2 "worlds/simple.world") at > /home/tfoote/misc/Stage-3.0.1-Source/libstage/world.cc:281 > typestr = 0x9796ac8 "model" > parent = (class Stg::StgModel *) 0x0 > parent_entity = 0 > mod = (class Stg::StgModel *) 0xb7c5b231 > creator = (stg_creator_t) 0xb7fb7cf3 <CreateModel> > entitytable = (GHashTable *) 0x9788478 > load_start_time = 18446744073425477849 > entity = 2 > load_end_time = 13243608709088220728 > __FUNCTION__ = "Load" > #4 0xb7fbfc32 in Stg::StgWorldGui::Load (this=0x9788c00, > filename=0xbfeed5b2 "worlds/simple.world") at > /home/tfoote/misc/Stage-3.0.1-Source/libstage/worldgui.cc:221 > world_section = 158897112 > window_section = -1208480700 > width = 1 > height = 134520856 > title = {static npos = 4294967295, _M_dataplus = > {<std::allocator<char>> = {<__gnu_cxx::new_allocator<char>> = {<No > data fields>}, <No data fields>}, _M_p = 0x0}} > #5 0x08048d16 in main (argc=2, argv=0xbfeebae4) at > /home/tfoote/misc/Stage-3.0.1-Source/libstage/main.cc:61 > worldfilename = 0xbfeed5b2 "worlds/simple.world" > world = (class Stg::StgWorld *) 0x9788c00 > ch = -1 > optindex = 1 > usegui = true > loaded_world_file = false > (gdb) > > I did notice this in dmesg which I didn't expect: > [ 2644.029714] stage[6311]: segfault at c ip b7d4f156 sp bf90332c > error 4 in libGL.so.1.2[b7d4e000+5000] > > > > Toby Collett wrote: >> My upgrade to hardy caused some odd crashes in the middle of opengl >> dri code. Upgrading to Intrepid actually fixed these issues for me. >> Needless to say I think there have been quite a few changes in opengl >> drivers for the last couple of releases, what graphics hardware are >> you running on? >> >> Toby >> >> 2008/11/4 Brian Gerkey <br...@ge... <mailto:br...@ge...>> >> >> I should clarify that we (Tully and I) are working with a >> slightly old >> version of Stage. >> >> Specifically, we're working with the 'stage-ros' branch, which I >> created from trunk on 2008-06-21, r6661. So it's something of a >> pre-3.0.0 version of Stage. >> >> Still, we'd appreciate any insights on this crash; has anyone >> seen it >> with Stage 3.0.x? >> >> We're trying now with the latest Stage release to see if we can >> reproduce the problem. >> >> brian. >> >> On Nov 3, 2008, at 8:21 PM, Tully Foote wrote: >> >> > Hi, >> > I just upgraded my computer to Intrepid and when I tried to run >> > stage it >> > crashed on startup. It looks like maybe the GL interface >> changed? Has >> > anyone else seen this problem? >> > >> > Thanks, >> > Tully >> > >> > To reproduce: >> > * Clean download from svn >> > * make and make install >> > * I had to copy the installed directory >> shared/stage/worlds/bitmap to >> > shared/worlds/ otherwise it couldn't find cave.png >> > * $ ./bin/stage share/worlds/simple.world >> > Stage 3.dev >> > [Loading share/worlds/simple.world][Include pioneer.inc][Include >> > map.inc][Include sick.inc]Segmentation fault >> > >> > * gdb ./bin/stage >> > GNU gdb 6.8-debian >> > Copyright (C) 2008 Free Software Foundation, Inc. >> > License GPLv3+: GNU GPL version 3 or later >> > <http://gnu.org/licenses/gpl.html> >> > This is free software: you are free to change and redistribute it. >> > There is NO WARRANTY, to the extent permitted by law. Type "show >> > copying" >> > and "show warranty" for details. >> > This GDB was configured as "i486-linux-gnu"... >> > (gdb) r share/worlds/simple.world >> > Starting program: >> /home/tfoote/pkg-ros/3rdparty/stage/stage/bin/stage >> > share/worlds/simple.world >> > [Thread debugging using libthread_db enabled] >> > Stage 3.dev >> > [New Thread 0xb76c1710 (LWP 2321)] >> > [Loading share/worlds/simple.world][Include pioneer.inc][Include >> > map.inc][Include sick.inc] >> > Program received signal SIGSEGV, Segmentation fault. >> > [Switching to Thread 0xb76c1710 (LWP 2321)] >> > 0xb7991326 in glLoadIdentity () from /usr/lib/libGL.so.1 >> > (gdb) bt full >> > #0 0xb7991326 in glLoadIdentity () from /usr/lib/libGL.so.1 >> > No symbol table info available. >> > #1 0xb7f81427 in Stg::StgCanvas::FixViewport (this=0x8136368, >> W=745, >> > H=418) at canvas.cc:327 >> > No locals. >> > #2 0xb7f814a4 in Stg::StgCanvas::resize (this=0x8136368, X=0, >> Y=30, >> > W=745, H=418) at canvas.cc:544 >> > No locals. >> > #3 0xb7dadb34 in Fl_Group::resize () from /usr/lib/libfltk.so.1.1 >> > No symbol table info available. >> > #4 0xb7dea517 in Fl_Window::resize () from >> /usr/lib/libfltk.so.1.1 >> > No symbol table info available. >> > #5 0xb7f95a79 in Stg::StgWorldGui::Load (this=0x8136000, >> > filename=0xbfdbe5a8 "share/worlds/simple.world") >> > at /usr/include/FL/Fl_Widget.H:120 >> > flags = <value optimized out> >> > grid = 3086577328 >> > data = <value optimized out> >> > follow = 0 >> > quadtree = 0 >> > clock = 135487488 >> > trails = 1 >> > arrows = 3218856216 >> > footprints = <value optimized out> >> > #6 0x08048a7e in main (argc=2, argv=0xbfdbd9b4) at main.cc:54 >> > ch = <value optimized out> >> > optindex = 0 >> > usegui = true >> > world = (class Stg::StgWorld *) 0x8136000 >> > >> > >> > >> >> ------------------------------------------------------------------------- >> >> > This SF.Net email is sponsored by the Moblin Your Move Developer's >> > challenge >> > Build the coolest Linux based applications with Moblin SDK & win >> > great prizes >> > Grand prize is a trip for two to an Open Source event anywhere in >> > the world >> > http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> <http://moblin-contest.org/redirect.php?banner_id=100&url=/> >> > _______________________________________________ >> > Playerstage-users mailing list >> > Pla...@li... >> <mailto:Pla...@li...> >> > https://lists.sourceforge.net/lists/listinfo/playerstage-users >> >> >> >> ------------------------------------------------------------------------- >> >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in >> the world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> <http://moblin-contest.org/redirect.php?banner_id=100&url=/> >> _______________________________________________ >> Playerstage-users mailing list >> Pla...@li... >> <mailto:Pla...@li...> >> https://lists.sourceforge.net/lists/listinfo/playerstage-users >> >> >> >> >> -- >> This email is intended for the addressee only and may contain >> privileged and/or confidential information >> ------------------------------------------------------------------------ >> >> ------------------------------------------------------------------------- >> >> This SF.Net email is sponsored by the Moblin Your Move Developer's >> challenge >> Build the coolest Linux based applications with Moblin SDK & win >> great prizes >> Grand prize is a trip for two to an Open Source event anywhere in the >> world >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> Playerstage-users mailing list >> Pla...@li... >> https://lists.sourceforge.net/lists/listinfo/playerstage-users >> > |