{"action":"created","issue":{"url":"https://api.github.com/repos/openscenegraph/OpenSceneGraph/issues/165","repository_url":"https://api.github.com/repos/openscenegraph/OpenSceneGraph","labels_url":"https://api.github.com/repos/openscenegraph/OpenSceneGraph/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/openscenegraph/OpenSceneGraph/issues/165/comments","events_url":"https://api.github.com/repos/openscenegraph/OpenSceneGraph/issues/165/events","html_url":"https://github.com/openscenegraph/OpenSceneGraph/issues/165","id":188619121,"number":165,"title":"crash in new VAO code","user":{"login":"gedalia","id":264764,"avatar_url":"https://avatars.githubusercontent.com/u/264764?v=3","gravatar_id":"","url":"https://api.github.com/users/gedalia","html_url":"https://github.com/gedalia","followers_url":"https://api.github.com/users/gedalia/followers","following_url":"https://api.github.com/users/gedalia/following{/other_user}","gists_url":"https://api.github.com/users/gedalia/gists{/gist_id}","starred_url":"https://api.github.com/users/gedalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gedalia/subscriptions","organizations_url":"https://api.github.com/users/gedalia/orgs","repos_url":"https://api.github.com/users/gedalia/repos","events_url":"https://api.github.com/users/gedalia/events{/privacy}","received_events_url":"https://api.github.com/users/gedalia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-10T21:10:03Z","updated_at":"2016-11-14T12:52:51Z","closed_at":null,"body":"while loading a flt file I'm seeing a crash in the new vao code, I hooked up gldebugoutput and got the following warning \r\nOpenGL Driver Info:\r\n        Vendor: NVIDIA Corporation\r\n        Renderer: GeForce GTX 980M/PCIe/SSE2\r\n        Version: 4.5.0 NVIDIA 372.54\r\ngl debug message: source = 33350\r\n         type = ERROR\r\n         id = 1282\r\n         severity = HIGH\r\n         message = GL_INVALID_OPERATION error generated. Invalid VAO/VBO/pointer usage.\r\nAttaching some sample code to demonstrate the debug callback:\r\n[gldebugoutput.txt](https://github.com/openscenegraph/OpenSceneGraph/files/584339/gldebugoutput.txt)\r\n\r\n\r\n\r\n \tGlDebugCallback(unsigned int source=33350, unsigned int type=33356, unsigned int id=1282, unsigned int severity=37190, int length=68, const char * message=0x0000000066011b80, const void * userParam=0x0000000000000000) Line 53\tC++\r\n \t0000000064af218b()\tUnknown\r\n \t00000000648c2860()\tUnknown\r\n \t00000000648c294c()\tUnknown\r\n \t00000000648c28f5()\tUnknown\r\n \tNormalArrayDispatch::enable_and_dispatch(osg::State & __formal={...}, const osg::Array * new_array=0x0000029d80ea96c0) Line 233\tC++\r\n \tosg::VertexArrayState::setArray(osg::VertexArrayState::ArrayDispatch * vad=0x0000029d812b8b70, osg::State & state={...}, const osg::Array * new_array=0x0000029d80ea96c0) Line 673\tC++\r\n \tosg::VertexArrayState::setNormalArray(osg::State & state={...}, const osg::Array * array=0x0000029d80ea96c0) Line 133\tC++\r\n \tosg::Geometry::drawVertexArraysImplementation(osg::RenderInfo & renderInfo={...}) Line 861\tC++\r\n>\tosg::Geometry::drawImplementation(osg::RenderInfo & renderInfo={...}) Line 802\tC++\r\n \tosg::Drawable::drawInner(osg::RenderInfo & renderInfo={...}) Line 273\tC++\r\n \tosg::Drawable::draw(osg::RenderInfo & renderInfo={...}) Line 525\tC++\r\n \tosgUtil::RenderLeaf::render(osg::RenderInfo & renderInfo={...}, osgUtil::RenderLeaf * previous=0x0000000000000000) Line 84\tC++\r\n \tosgUtil::RenderBin::drawImplementation(osg::RenderInfo & renderInfo={...}, osgUtil::RenderLeaf * & previous=0x0000000000000000) Line 488\tC++\r\n \tosgUtil::RenderStage::drawImplementation(osg::RenderInfo & renderInfo={...}, osgUtil::RenderLeaf * & previous=0x0000000000000000) Line 1403\tC++\r\n \tosgUtil::RenderBin::draw(osg::RenderInfo & renderInfo={...}, osgUtil::RenderLeaf * & previous=0x0000000000000000) Line 432\tC++\r\n \tosgUtil::RenderStage::drawInner(osg::RenderInfo & renderInfo={...}, osgUtil::RenderLeaf * & previous=0x0000000000000000, bool & doCopyTexture=false) Line 934\tC++\r\n \tosgUtil::RenderStage::draw(osg::RenderInfo & renderInfo={...}, osgUtil::RenderLeaf * & previous=0x0000000000000000) Line 1244\tC++\r\n\r\nit's possible that it's due to using old style client pointers\r\nbut even disabling OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE, and modifying drawable.cpp \r\n\r\na number of things try to turn on display lists as well:\r\n src\\osgPlugins\\OpenFlight\\GeometryRecords.cpp\r\nwhich uses the default Geometry constructor which turns on display lists\r\nand\r\nGLObjectsVisitor(Mode mode=COMPILE_DISPLAY_LISTS|COMPILE_STATE_ATTRIBUTES|CHECK_BLACK_LISTED_MODES);\r\neven disabling all this stuff the crash still happens."},"comment":{"url":"https://api.github.com/repos/openscenegraph/OpenSceneGraph/issues/comments/260327319","html_url":"https://github.com/openscenegraph/OpenSceneGraph/issues/165#issuecomment-260327319","issue_url":"https://api.github.com/repos/openscenegraph/OpenSceneGraph/issues/165","id":260327319,"user":{"login":"gedalia","id":264764,"avatar_url":"https://avatars.githubusercontent.com/u/264764?v=3","gravatar_id":"","url":"https://api.github.com/users/gedalia","html_url":"https://github.com/gedalia","followers_url":"https://api.github.com/users/gedalia/followers","following_url":"https://api.github.com/users/gedalia/following{/other_user}","gists_url":"https://api.github.com/users/gedalia/gists{/gist_id}","starred_url":"https://api.github.com/users/gedalia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gedalia/subscriptions","organizations_url":"https://api.github.com/users/gedalia/orgs","repos_url":"https://api.github.com/users/gedalia/repos","events_url":"https://api.github.com/users/gedalia/events{/privacy}","received_events_url":"https://api.github.com/users/gedalia/received_events","type":"User","site_admin":false},"created_at":"2016-11-14T12:52:51Z","updated_at":"2016-11-14T12:52:51Z","body":"you might want to set up the gldebugoutput callback since it lets you get a stack trace directly from the function that had the problem, Details at https://www.opengl.org/wiki/Debug_Output (that's where I got the stack trace) it's not totally clear to me where the best place would be to set it up in the osg code base would be, but I made a changeset for the debug label infrastructure.\r\n Thanks for looking into it."}}
{"actor":{"display_login":"gedalia"}}