FBO stack overflow

If you are allergic to bug trackers, you can post here any remarks, issues and potential bugs you encounter
Post Reply
jsm
Posts: 10
Joined: Fri Jul 19, 2013 9:18 am

FBO stack overflow

Post by jsm »

Hi all !

Does anyone already have this error message : "error [ccGLWindow::paintGL/FBOstart] stack overflow" ?
Sometimes, this message appears in a small ok window when I am handling an object with the mouse. Then, it is impossible to continue handling objects. The message appears again and again. The only solution is to quit the program.

Maybe I add this bug when modifying the code, but I do not think I changed anything in the ccGLWindow.cpp file.

JS
daniel
Site Admin
Posts: 7707
Joined: Wed Oct 13, 2010 7:34 am
Location: Grenoble, France
Contact:

Re: FBO stack overflow

Post by daniel »

Well this error means that something is pushed on the GL stack (see all the glPushXXX methods, such as matrices, attributes, names, etc.) but it's not "popped out" (glPopXXX).

And this apparently happens either during FBO initialization, but more likely even before it (we just ask OpenGL for eventual errors from time to time - see the CatchGLError method).

Anyway, this kind of bug is hard to track if you don't know what kind of entity produces it. Have you guessed if it always happen when displaying a certain type of entity? Do you play a lot with particular entities (such as sensors) maybe?

One way to track this bug is to "instrument" your code with lots of calls to "CatchGLError" (with custom strings as parameters to be able to recognize them) during the 'ccGLWindow::paintGL' method course, and also in the entities "drawMeOnly" methods.

Good luck,
Daniel, CloudCompare admin
Post Reply