I had this problem too.

I fixed it by changing the macro definition in server/GazeboError.hh to

 #define gzthrow(msg) { throwStream << "Exception: " << msg << std::endl <<
std::flush;\
                         throw
gazebo::GazeboError(__FILE__,__LINE__,throwStream.str()); }

This was recently changed to a multiline macro, so you need to add the
braces and semicolon to it.
The else line in OgreAdaptor has no braces, so only the throwStream line was
ignored.
The throw line was run no matter what, with an empty string and caught in
Simulator.cc.

Hope this helps,
    Scott

On Sat, Apr 5, 2008 at 4:56 PM, Aphex Twin <[EMAIL PROTECTED]> wrote:

>
> Thanks for all the replies. I check out every time the code, and after
> doing
> so today, it doesn't even show the gui and crashes with the following
> message (whether I add the RTTMode option or not to the gazeborc file).
> Any
> idea ?
>
> Thanks everyone,
>
> Nicolas
>
> > ./gazebo worlds/simplecar.world
> Gazebo multi-robot simulator, version 0.8-pre2
>
> Part of the Player/Stage Project [http://playerstage.sourceforge.net].
> Copyright (C) 2003 Nate Koenig, Andrew Howard, and contributors.
> Released under the GNU General Public License.
>
> Gazebo Path[/usr/local/share/gazebo]
> Ogre Path[/usr/lib/OGRE]
> [server/Simulator.cc:365]
>  Creating GUI:
>        Type[fltk] Pos[0 0] Size[640 480]
> Loading Gazebo
> server/Simulator.cc:135 : Exception: Failed to Initialize the OGRE
> Rendering
> system
> server/rendering/OgreAdaptor.cc:196 :
>
>
> JJLDJ wrote:
> >
> > I originally experienced a similar problem when I started running
> Gazebo.
> > I've done a few things since then, including updating to the SVN
> version,
> > recompiling supporting software, etc, so I'm not sure if this will make
> a
> > difference, but it's worth a try...
> >
> > One of the things I had to do to get Gazebo working with my ATI video
> card
> > was to make a change indicated in:
> >
> http://www.nabble.com/svn-gazebo---shared-geometrie---Segmentation-fault-(core-dumped)-td15409529.html<http://www.nabble.com/svn-gazebo---shared-geometrie---Segmentation-fault-%28core-dumped%29-td15409529.html>
> >
> > I'm not too familiar with what is really occurring, but basically I had
> to
> > change the preferred RRT mode by updating the .gazeborc file (hidden at
> > /home/username/.gazeborc for me). The file needs to look something like
> > this:
> > <gazeborc>
> >   <gazeboPath>/usr/local/share/gazebo</gazeboPath>
> >   <ogrePath>/usr/lib/OGRE</ogrePath>
> >   <RTTMode>FBO</RTTMode>
> > </gazeborc>
> >
> > Originally, RRTMode was set to PBuffer, which was causing me problems.
> > After changing it to FBO I was up and running.
> >
> > Hope this helps.
> >
> > -Jonathan
> >
> >
> > Nicolas Saunier-3 wrote:
> >>
> >> Hi,
> >>
> >> after reading the mailing list and checking out the latest SVN
> >> version, I still have those issues with gazebo. It starts on a very
> >> limited number of world files. It crashes on pioneer2dx.world
> >>
> >> gazebo /usr/local/share/gazebo/worlds/pioneer2dx.world
> >> Gazebo multi-robot simulator, version 0.8-pre1
> >>
> >> Part of the Player/Stage Project [http://playerstage.sourceforge.net].
> >> Copyright (C) 2003 Nate Koenig, Andrew Howard, and contributors.
> >> Released under the GNU General Public License.
> >>
> >> Gazebo Path[/usr/local/share/gazebo]
> >> Ogre Path[/usr/lib/OGRE]
> >> [server/Simulator.cc:360]
> >>   Creating GUI:
> >>         Type[fltk] Pos[0 0] Size[640 480]
> >> creating /tmp/gazebo-thunderbird-0
> >> creating /tmp/gazebo-thunderbird-0/simulation.default 112 688
> >> [server/sensors/Sensor.cc:94]
> >>   cam1_sensor sensor has no controller.
> >> creating /tmp/gazebo-thunderbird-0/position.position_iface_0 112 220
> >> creating /tmp/gazebo-thunderbird-0/laser.laser_iface_0 112 12428
> >> zsh: segmentation fault (core dumped)  gazebo
> >> /usr/local/share/gazebo/worlds/pioneer2dx.world
> >>
> >> It starts on simplecar.world, displays the sky and the ground, but
> >> crashes when one moves the camera around, where I guess there is an
> >> object (I can see the beginning of a shadow sometimes).
> >>
> >>  gazebo /usr/local/share/gazebo/worlds/simplecar.world
> >> Gazebo multi-robot simulator, version 0.8-pre1
> >>
> >> Part of the Player/Stage Project [http://playerstage.sourceforge.net].
> >> Copyright (C) 2003 Nate Koenig, Andrew Howard, and contributors.
> >> Released under the GNU General Public License.
> >>
> >> Gazebo Path[/usr/local/share/gazebo]
> >> Ogre Path[/usr/lib/OGRE]
> >> [server/Simulator.cc:360]
> >>   Creating GUI:
> >>         Type[fltk] Pos[0 0] Size[640 480]
> >> creating /tmp/gazebo-thunderbird-0
> >> creating /tmp/gazebo-thunderbird-0/simulation.default 112 688
> >> [server/sensors/Sensor.cc:94]
> >>   cam1_sensor sensor has no controller.
> >> creating /tmp/gazebo-thunderbird-0/position.position_iface_0 112 220
> >> zsh: segmentation fault (core dumped)  gazebo
> >> /usr/local/share/gazebo/worlds/simplecar.world
> >>
> >> Here is my .gazeborc file.
> >>
> >> <?xml version="1.0"?>
> >> <gazeborc>
> >>   <gazeboPath>/usr/local/share/gazebo</gazeboPath>
> >>   <ogrePath>/usr/lib/OGRE</ogrePath>
> >> </gazeborc>
> >>
> >> Any idea ?
> >>
> >> Best regards,
> >>
> >> Nicolas
> >>
> >>
> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by: Microsoft
> >> Defy all challenges. Microsoft(R) Visual Studio 2008.
> >> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> >> _______________________________________________
> >> Playerstage-gazebo mailing list
> >> [email protected]
> >> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
> >>
> >>
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Issues-running-SVN-gazebo-tp15656753p16517848.html
> Sent from the playerstage-gazebo mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
> Register now and save $200. Hurry, offer ends at 11:59 p.m.,
> Monday, April 7! Use priority code J8TLD2.
>
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
> _______________________________________________
> Playerstage-gazebo mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo
>
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Register now and save $200. Hurry, offer ends at 11:59 p.m., 
Monday, April 7! Use priority code J8TLD2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Playerstage-gazebo mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-gazebo

Reply via email to