[osg-users] Crash on Mac OS X

Robert Osfield robert.osfield at gmail.com
Thu Mar 24 01:50:54 PDT 2016


Hi Ale,

I don't have an answer but do have a vague recollection that in certain
compiler options problems have been reported with dynamic_cast<>.  My gut
says it was OSX in some combination.  It may well be a bug in the compile,
try out gcc instead of Clang.

Sorry I can't be more specific, I don't have OSX system to test against and
my vague recollections of something related to dynamic_cast<> is down to
reading about the issue quite some time ago, just reading through, I wasn't
an active participant in the discussion.  Searching through the
osg-users/forum archive might help, as would a general search of the web on
the issue.

Robert

On 24 March 2016 at 08:30, Ale Maro <sasha71 at teletu.it> wrote:

> Here is the exact point where OSG crash:
>
> ------
>
> bool Dragger::handle(const osgGA::GUIEventAdapter& ea,
> osgGA::GUIActionAdapter& aa)
> {
>     .....
>
>     for (osg::NodePath::iterator itr =
> _pointer._hitList.front().first.begin();
>            itr != _pointer._hitList.front().first.end();
>            ++itr)
>     {
>           osgManipulator::Dragger* dragger =
> dynamic_cast<osgManipulator::Dragger*>(*itr);
>           if (dragger)
>           {
>    ......
> }
>
> -----
>
> Debugger says that itr pointer is valid. Any idea?
>
> Best regards
> Ale
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=66619#66619
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20160324/beeee582/attachment-0003.htm>


More information about the osg-users mailing list