Re: [osg-users] OSG , Qt and osgsimplifier

2010-09-29 Thread Jean-Sébastien Guay

Hello Sajjad,


Any hint ?


With only this information, the only hint we can give you is to use the 
debugger.


Running in debug, and enabling exception reporting, the debugger should 
break exactly where the crash occurs, and you should be able to go up 
the stack to see the source of the crash and see if you can fix it.


Hope this helps,

J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG , Qt and osgsimplifier

2010-09-29 Thread Sajjad
Hello Jean,

Just ran the debugger. and crashes in the following line

*
viewer.frame();



***'

Any way to get around that ?  Each frame is shown  after the mesh is
simplified(). In qt adapter the viewer class has two parents AdapterWidget
and osg::osgViewer.


Could that be the problem ?


Regards
Sajjad

On Wed, Sep 29, 2010 at 6:48 PM, Jean-Sébastien Guay 
jean-sebastien.g...@cm-labs.com wrote:

 Hello Sajjad,

  Any hint ?


 With only this information, the only hint we can give you is to use the
 debugger.

 Running in debug, and enabling exception reporting, the debugger should
 break exactly where the crash occurs, and you should be able to go up the
 stack to see the source of the crash and see if you can fix it.

 Hope this helps,

 J-S
 --
 __
 Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
 ___
 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] OSG , Qt and osgsimplifier

2010-09-29 Thread Jean-Sébastien Guay

Hello Sajjad,


Just ran the debugger. and crashes in the following line

*
viewer.frame();


Are you running a debug build in the debugger? Do you have the debugging 
symbols for OSG?


That specific line is not the site of the crash, it's something that 
function is doing, so to get to the real source of the crash you need to 
have debugging symbols and walk down the stack.


J-S
--
__
Jean-Sebastien Guayjean-sebastien.g...@cm-labs.com
   http://www.cm-labs.com/
http://whitestar02.webhop.org/
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] OSG , Qt and osgsimplifier

2010-09-29 Thread Rob Radtke
 The only suggestion I can think of is to make sure you are using the 
single threaded threading model:


setThreadingModel(osgViewer::Viewer::SingleThreaded);

AFAIK, QT viewers will not work with any of OSG's multi-threaded models.

Rob

On 9/29/2010 9:35 AM, Sajjad wrote:

Hello forum,


I am using the adapter widget to run OSG viewer with Qt.


When i try to port the osgsimplifier example in the OSG Qt viewer then 
the program crashes with the following message:




terminate called after throwing an instance of 'std::logic_error'

what(): basic_string::_S_construct NULL not valid

The program has unexpectedly finished.


***


Any hint ?


Regards
Sajjad


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




smime.p7s
Description: S/MIME Cryptographic Signature
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org