Hi,
I've been having trouble with the SVN version of Gazebo and tracked it
down to gazebo being unable to find the Arial font; it looks like
instead of calling:
Ogre::Exception(Ogre::Exception::ERR_ITEM_NOT_FOUND,
"Could not find font " + fontName,
"MovableText::setFontName");
Which just creates a new Ogre::Exception object and does nothing with
it (leading to a segfault as it then goes on to try and load the font
anyway). It looks like you need to be using the OGRE_EXCEPT macro
instead for the exception to actually be raised correctly; i.e.
OGRE_EXCEPT(Ogre::Exception::ERR_ITEM_NOT_FOUND,
"Could not find font " + fontName,
"MovableText::setFontName");
This will then display the error to the user correctly (although in
this case it might be better to catch the exception and just use the
default font).
Cheers,
Mike.
-------------------------------------------------------------------------
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