We've recently been having some intermittent crashes ("hangs"--Windows shuts down the process after a 2 seconds freeze in the graphics API) occurring in the nVidia's OpenGL dll. Google searches revealed that this can occur if we supply bad data to OpenGL.
Are there features in OSG to detect such incorrect data in our models? Concurrent vertices, bad normals, bad UVs, etc.--stuff that could be correct or incorrect if defaulted (the crash is intermittent)?
Also, when I've wanted to know the cause of (rather than just the existence of) an error, it's been easier to do so via a debug callback than basic error checking as you get the full call stack and sometimes a descriptive error string. This page explains how to set that up with OSG: http://thermalpixel.github.io/opengl/osg/2014/02/06/gl-khr-debug-in-osg.html
Don't forget to proofread when writing things on your phone, kids.
Cheers,
Chris