I’m having a very similar issue but my crash is at glDrawElements. I believe there is a GL leak somewhere in my app but cannot spot it.
It crashes when I use ofVboMesh::setAttributeData. It eventually (after several loops) crashes in random glDraw functions. Is there any example out there on how to properly use and set custom attributes on ofVboMesh?
Is ofVboMesh designed so that we can access the underlying ofVbo and freely set attributes?
yes that should be fine. if you have called at least once setAttributeData and just need to change the data without changing the size, it’s usually better to call updateAttributeData instead. also if you call updateAttributeData on a buffer with smaller size it can crash
I’ve just been able to reproduce the error I’m getting with a inimal example (sounds a lot easier than it is).
I believe this is a problem specific to Nvidia drivers on windows. This is tested only on 0.8.4 but I believe it should also happen on 0.9.0. Will test soon.
What the app does is creating and deleting a custom ofVboMesh with a very simple layout, setting attribute data (not actually used).
Just tested with latest github snapshot and it does crash. Maybe I’m doing something crazy on the uploaded app, but I think it should be fine, actually if I comment the setAttribute line it does not crash.
Can anyone confirm whether it crashes on other machines or platforms?
weird, i have to test a couple of things in windows tomorrow will take a look at this. can you also open an issue in github? that way other people who are maintaning opengl can check it too