Hi, ... Yesterday I got osgVisual compiling and Working on linux :) So now I'm able to use Valgrind, seems to be much more sophisticated than the MSVC memory debugger!
I get plenty of errors, I don't know I they are real problems or what causes
them.
Maybe someone give me a hint how to process..
The errors are:
several times
Code:
==2517== Invalid read of size 8
==2517== at 0x643F79A:
osg::GLBufferObjectManager::getGLBufferObjectManager(unsigned int) (in
/usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x6442848: osg::GLBufferObject::deleteAllBufferObjects(unsigned
int) (in /usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x64C250B: osg::deleteAllGLObjects(unsigned int) (in
/usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x64C6247: osg::GraphicsContext::close(bool) (in
/usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x4EA8F9C: osgViewer::Viewer::~Viewer() (in
/usr/local/lib64/libosgViewer.so.2.9.9)
==2517== by 0x4715A6: osg::Referenced::unref() const (Referenced:198)
==2517== by 0x47BD1C: osg::ref_ptr<osgViewer::Viewer>::~ref_ptr()
(ref_ptr:35)
==2517== by 0x483B2A: osgVisual::dataIO_cluster::~dataIO_cluster()
(dataIO_cluster.h:57)
==2517== by 0x481B79: osgVisual::dataIO_clusterENet::~dataIO_clusterENet()
(dataIO_clusterENet.cpp:34)
==2517== by 0x4715A6: osg::Referenced::unref() const (Referenced:198)
==2517== by 0x4A93B0: osg::ref_ptr<osgVisual::dataIO_cluster>::~ref_ptr()
(ref_ptr:35)
==2517== by 0x4A6AE0: osgVisual::visual_dataIO::~visual_dataIO()
(visual_dataIO.cpp:31)
==2517== Address 0xbfaae70 is not stack'd, malloc'd or (recently) free'd
and serveral times this error:
Code:
==2517== 768 (24 direct, 744 indirect) bytes in 1 blocks are definitely lost in
loss record 73 of 93
==2517== at 0x4C2596C: operator new(unsigned long) (vg_replace_malloc.c:220)
==2517== by 0x6591A9E:
osg::Texture::TextureObjectSet::orphan(osg::Texture::TextureObject*) (in
/usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x6592BF3: osg::Texture::dirtyTextureObject() (in
/usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x6595BF9: osg::Texture::~Texture() (in
/usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x6586F31: osg::Texture2D::~Texture2D() (in
/usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x4715A6: osg::Referenced::unref() const (Referenced:198)
==2517== by 0x656FEDD: std::_Rb_tree<std::pair<osg::StateAttribute::Type,
unsigned int>, std::pair<std::pair<osg::StateAttribute::Type, unsigned int>
const, std::pair<osg::ref_ptr<osg::StateAttribute>, unsigned int> >,
std::_Select1st<std::pair<std::pair<osg::StateAttribute::Type, unsigned int>
const, std::pair<osg::ref_ptr<osg::StateAttribute>, unsigned int> > >,
std::less<std::pair<osg::StateAttribute::Type, unsigned int> >,
std::allocator<std::pair<std::pair<osg::StateAttribute::Type, unsigned int>
const, std::pair<osg::ref_ptr<osg::StateAttribute>, unsigned int> > >
>::_M_erase(std::_Rb_tree_node<std::pair<std::pair<osg::StateAttribute::Type,
unsigned int> const, std::pair<osg::ref_ptr<osg::StateAttribute>, unsigned int>
> >*) (in /usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x656CB73: osg::StateSet::clear() (in
/usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x656F2CD: osg::StateSet::~StateSet() (in
/usr/local/lib64/libosg.so.2.9.9)
==2517== by 0x5D39AA9: osgUtil::StateGraph::~StateGraph() (in
/usr/local/lib64/libosgSim.so.2.9.9)
==2517== by 0x4715A6: osg::Referenced::unref() const (Referenced:198)
==2517== by 0x5D37BAE: std::_Rb_tree<osg::StateSet const*,
std::pair<osg::StateSet const* const, osg::ref_ptr<osgUtil::StateGraph> >,
std::_Select1st<std::pair<osg::StateSet const* const,
osg::ref_ptr<osgUtil::StateGraph> > >, std::less<osg::StateSet const*>,
std::allocator<std::pair<osg::StateSet const* const,
osg::ref_ptr<osgUtil::StateGraph> > >
>::_M_erase(std::_Rb_tree_node<std::pair<osg::StateSet const* const,
osg::ref_ptr<osgUtil::StateGraph> > >*) (in /usr/local/lib64/libosgSim.so.2.9.9)
Is this a real leak?
I compiled osg with the debug symbols, but it seems not to replace my previous
release build, so I get no line numbers inside the files on the call stack. how
can A force my application to use my osg debug build?
thanks for your help,
Torben
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=30442#30442
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

