-
Notifications
You must be signed in to change notification settings - Fork 73
GL ERROR: src=33350,id=20,sev=37190 GL_INVALID_VALUE in glUseProgram #51
Comments
I'm testing using Intel HD 2500 graphics and Ubuntu 16.04. So far, I am unable to reproduce this just by repeatedly running If there is an error printed on every frame, then the OpenGL program is in a bad state, and there was probably a more meaningful error printed initially, before the cascade of per-frame messages started spewing. I can probably do a better job of managing the OpenGL error messages. |
Less noise means better error reporting. Once a severe OpenGL error occurs while rendering a frame, rendering stops, the Viewer window goes black, and we won't print any more error messages. Loading a new shape resets the Viewer window.
The latest version of Curv will not go into a loop, printing OpenGL error messages on each frame. This means you should see higher quality error messages the next time this bug occurs, and those error messages should help in narrowing down what the problem is. |
The bug report says "Cannot be reliably reproduced, although after it happens with one expression it generally happens for all expressions that are subsequently evaluated in the same Curv session." This suggests that the OpenGL context has got into a bad state. And the bad state seems to persist even after loading a new shape. One of the error messages is:
In previous versions of Curv, after loading a shader program, I used to call glUseProgram to run the program, even if the program was invalid (because it had failed to compile). And that could lead to this error being displayed. The new version of Curv stops rendering after a shader program has failed to compile, or if OpenGL errors are reported when rendering a frame. These changes are intended to make Curv more robust, because I'm trying not to ask OpenGL to render things if the context is in an error state. These changes might even fix this bug, although I can't verify that. I suggest you try again with the new version, and see if the bug persists. At the very least, we should get a better error message. |
@p-e-w: I'm going to close this for now. If you can reproduce the problem with the new version of Curv, please reopen the issue and post the error messages that are generated. |
@doug-moen This still happens with the latest master. And now I have found a reliable way to reproduce:
That's it, just evaluate |
Thank you for giving me a reproducible test case. It happens for me as well, now I can fix this. |
Describe the bug
Sometimes, when running a simple Curv program like
cube
, the viewer displays the shape, but the following lines appear in the terminal, repeated on every frame:This does not always happen and there is no apparent pattern to when it does.
Curv Program
To Reproduce
Cannot be reliably reproduced, although after it happens with one expression it generally happens for all expressions that are subsequently evaluated in the same Curv session.
System Information (please complete the following information):
curv
command using a remote viewing protocol like VNC or NX? Nocurv
command inside a VM? Nocurv --version
and paste the output here.The text was updated successfully, but these errors were encountered: