Re: [osg-users] Crash on Mac OS X

2016-03-24 Thread Ale Maro
Hi Robert,

I tried some suggestions I found in the forum with no resut.
These suggestion are mainly related to symbol visibility.
I suppose default OSG compilation on OSX is with symbol visibility on.
I guess if someone have already tried to switch symbol visibility off

I already tried to switch to gcc but I get some errors. I will try again in 
this direction and see if I can fix that errors.
Thanks for the hint.

Best regards
Ale

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66622#66622





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Crash on Mac OS X

2016-03-24 Thread Robert Osfield
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  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(*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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Crash on Mac OS X

2016-03-24 Thread Ale Maro
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(*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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Crash on Mac OS X

2016-03-22 Thread Ale Maro
Hi,

I recently compiled my Qt-based application and OSG 3.4.0 on OSX (clang).
Everything seems working fine but I have a problem with a custom dragger 
(derived on osgManipulation::Dragger).
In the handle method of osgManipulator::Dragger I have a crash in a 
dynamic_cast. Debugging the code everything seems ok.
I already tried compiling my application with -fvisibility=hidden with no 
result.
Under windows there are no problems.

I suppose I should try to recompile OSG with different settings related to 
symbol visibility. Any suggestions? Thanks.

Best regards

Ale

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=66596#66596





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org