[osg-users] Heap Corruption

Théo Nassour osgforum at tevs.eu
Tue Jan 10 01:23:48 PST 2017


Hi,

I am working on an application with the current configuration : 
WPF, CLI/C++ (for the communication between c++ and c#), c++ for OSG.
I am using VS2015 C++11.

I am getting always Heap Corruption Exception :
Here is the Stack trace:

     ucrtbased.dll!_calloc_base
()    Unknown
     ucrtbased.dll!_free_dbg
()    Unknown
     osg130-osgd.dll!operator delete(void * block) Line 21    C++
     osg130-osgd.dll!std::_Deallocate(void * _Ptr, unsigned __int64 _Count, unsigned __int64 _Sz) Line 139    C++
     osg130-osgd.dll!std::allocator<char>::deallocate(char * _Ptr, unsigned __int64 _Count) Line 639    C++
     osg130-osgd.dll!std::basic_stringbuf<char,std::char_traits<char>,std::allocator<char> >::overflow(int _Meta) Line 182    C++
     msvcp140d.dll!std::basic_streambuf<char,std::char_traits<char> >::xsputn(const char * _Ptr, __int64 _Count) Line 411    C++
     msvcp140d.dll!std::basic_streambuf<char,std::char_traits<char> >::sputn(const char * _Ptr, __int64 _Count) Line 209    C++
     osg130-osgUtild.dll!std::operator<<<std::char_traits<char> >(std::basic_ostream<char,std::char_traits<char> > & _Ostr, const char * _Val) Line 806    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Drawable & drawable) Line 1036    C++
     osg130-osgd.dll!osg::NodeVisitor::apply(osg::Geometry & drawable) Line 92    C++
     osg130-osgd.dll!osg::Geometry::accept(osg::NodeVisitor & nv) Line 39    C++
     osg130-osgd.dll!osg::Group::traverse(osg::NodeVisitor & nv) Line 63    C++
     osg130-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node) Line 189    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node & node) Line 322    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Geode & node) Line 974    C++
     osg130-osgd.dll!osg::Geode::accept(osg::NodeVisitor & nv) Line 37    C++
     osg130-osgd.dll!osg::Group::traverse(osg::NodeVisitor & nv) Line 63    C++
     osg130-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node) Line 189    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node & node) Line 322    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Transform & node) Line 1247    C++
     osg130-osgd.dll!osg::NodeVisitor::apply(osg::MatrixTransform & node) Line 157    C++
     osg130-osgd.dll!osg::MatrixTransform::accept(osg::NodeVisitor & nv) Line 37    C++
     osg130-osgd.dll!osg::Switch::traverse(osg::NodeVisitor & nv) Line 41    C++
     osg130-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node) Line 189    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node & node) Line 322    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Group & node) Line 1224    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Switch & node) Line 1315    C++
>    SICLAV.OsgRendering.dll!SICLAV::nodes::Tree3D::accept(osg::NodeVisitor & nv) Line 31    C++
     osg130-osgd.dll!osg::Switch::traverse(osg::NodeVisitor & nv) Line 41    C++
     osg130-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node) Line 189    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node & node) Line 322    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Group & node) Line 1224    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Switch & node) Line 1315    C++
     osg130-osgd.dll!osg::Switch::accept(osg::NodeVisitor & nv) Line 40    C++
     osg130-osgd.dll!osg::Group::traverse(osg::NodeVisitor & nv) Line 63    C++
     osg130-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node) Line 189    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node & node) Line 322    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Transform & node) Line 1247    C++
     osg130-osgd.dll!osg::NodeVisitor::apply(osg::MatrixTransform & node) Line 157    C++
     osg130-osgd.dll!osg::MatrixTransform::accept(osg::NodeVisitor & nv) Line 37    C++
     osg130-osgd.dll!osg::Group::traverse(osg::NodeVisitor & nv) Line 63    C++
     osg130-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node) Line 189    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node & node) Line 322    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Transform & node) Line 1247    C++
     osg130-osgd.dll!osg::NodeVisitor::apply(osg::MatrixTransform & node) Line 157    C++
     osg130-osgd.dll!osg::MatrixTransform::accept(osg::NodeVisitor & nv) Line 37    C++
     osg130-osgd.dll!osg::Switch::traverse(osg::NodeVisitor & nv) Line 41    C++
     osg130-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node) Line 189    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node & node) Line 322    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Group & node) Line 1224    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Switch & node) Line 1315    C++
     SICLAV.OsgRendering.dll!SICLAV::nodes::View3D::accept(osg::NodeVisitor & nv) Line 54    C++
     osg130-osgd.dll!osg::Group::traverse(osg::NodeVisitor & nv) Line 63    C++
     osg130-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node) Line 189    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node & node) Line 322    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Group & node) Line 1224    C++
     osg130-osgd.dll!osg::Group::accept(osg::NodeVisitor & nv) Line 38    C++
     osg130-osgd.dll!osg::Group::traverse(osg::NodeVisitor & nv) Line 63    C++
     osg130-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node) Line 189    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::handle_cull_callbacks_and_traverse(osg::Node & node) Line 322    C++
     osg130-osgUtild.dll!osgUtil::CullVisitor::apply(osg::Group & node) Line 1224    C++
     osg130-osgd.dll!osg::Group::accept(osg::NodeVisitor & nv) Line 38    C++
     osg130-osgd.dll!osg::Group::traverse(osg::NodeVisitor & nv) Line 63    C++
     osg130-osgd.dll!osg::NodeVisitor::traverse(osg::Node & node) Line 189    C++
     osg130-osgUtild.dll!osgUtil::SceneView::cullStage(const osg::Matrixd & projection, const osg::Matrixd & modelview, osgUtil::CullVisitor * cullVisitor, osgUtil::StateGraph * rendergraph, osgUtil::RenderStage * renderStage, osg::Viewport * viewport) Line 896    C++
     osg130-osgUtild.dll!osgUtil::SceneView::cull() Line 757    C++
     osg130-osgViewerd.dll!osgViewer::Renderer::cull_draw() Line 832    C++
     osg130-osgViewerd.dll!osgViewer::Renderer::operator()(osg::GraphicsContext * __formal) Line 909    C++
     osg130-osgd.dll!osg::GraphicsContext::runOperations() Line 772    C++
     osg130-osgd.dll!osg::RunOperations::operator()(osg::GraphicsContext * context) Line 140    C++
     osg130-osgd.dll!osg::GraphicsOperation::operator()(osg::Object * object) Line 54    C++
     osg130-osgd.dll!osg::OperationThread::run() Line 435    C++
     osg130-osgd.dll!osg::GraphicsThread::run() Line 41    C++
     ot20-OpenThreadsd.dll!000007feecd65efd()    Unknown
     ucrtbased.dll!__crt_unique_heap_ptr<char const ,struct __crt_internal_free_policy>::detach(void)    Unknown
     ucrtbased.dll!_register_onexit_function
()    Unknown
     kernel32.dll!BaseThreadInitThunk
()    Unknown
     ntdll.dll!RtlUserThreadStart
()    Unknown

And i have : this one Also :

---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Debug Assertion Failed!

Program: ...aces\SICLAV\SICLAV\SICLAV.WPF\bin\x64\Debug\SICLAV.vshost.exe
File: minkernel\crts\ucrt\src\appcrt\heap\debug_heap.cpp
Line: 888
Expression: _CrtIsValidHeapPointer(block)
For information on how your program can cause an assertion
failure, see the Visual C++ documentation on asserts.


Can any one Helps ? 
Thank you!

Cheers,
Théo[/b]

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








More information about the osg-users mailing list