Hello Guest

[Bug] Other software producing errors in my context?

  • 2 Replies
  • 99 Views
[Bug] Other software producing errors in my context?
« on: January 03, 2021, 08:42:00 »
It seems like many screen recording devices, but also some other software keep crashing my app by producing openGL errors.

Code: [Select]
[LWJGL] OpenGL debug message
                ID: 0x500
                Source: API
                Type: ERROR
                Severity: HIGH
                Message: GL_INVALID_ENUM error generated. Operation is not valid from the core profile.

I realize this is no fault of LWJGL, but what is the preferred workaround? I like keeping my code clean, by not accepting any errors, but this makes it impossible.

A way of reproducing is just trying to stream an app with discord. I'm using opengl 3.3 core profile, maybe that's important.

Re: [Bug] Other software producing errors in my context?
« Reply #1 on: January 04, 2021, 13:39:18 »
Well, it would certainly be interesting why exactly a GL_INVALID_ENUM is created there. More context is needed.

A good way to debug this might be to enable the debugging context:
Code: [Select]
glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, GLFW_TRUE);

Re: [Bug] Other software producing errors in my context?
« Reply #2 on: January 07, 2021, 08:27:09 »
Here are some examples:

Code: [Select]
LWJGL] OpenGL debug message
        ID: 0x502
        Source: API
        Type: ERROR
        Severity: HIGH
        Message: GL_INVALID_OPERATION error generated. Function glPushAttrib is deprecated and not available in preview contexts.
[LWJGL] OpenGL debug message
        ID: 0x502
        Source: API
        Type: ERROR
        Severity: HIGH
        Message: GL_INVALID_OPERATION error generated. Function glPopAttrib is deprecated and not available in preview contexts.

I'm not calling these functions in my app. Somehow the external apps must hijack my context and do these things?

Examples of capture software that breaks stuff:

Discord, EaseUS RecExperts and oCam

Any way to fix this? Or just start polling and ignoring errors?

Here are some from discord:

Code: [Select]
[LWJGL] OpenGL debug message
                ID: 0x500
                Source: API
                Type: ERROR
                Severity: HIGH
                Message: GL_INVALID_ENUM error generated. Operation is not valid from the core profile.
[LWJGL] OpenGL debug message
                ID: 0x502
                Source: API
                Type: ERROR
                Severity: HIGH
                Message: GL_INVALID_OPERATION error generated. The required buffer is missing.
[LWJGL] OpenGL debug message
                ID: 0x502
                Source: API
                Type: ERROR
                Severity: HIGH
                Message: GL_INVALID_OPERATION error generated. The required buffer is missing.
« Last Edit: January 11, 2021, 07:33:13 by jakethesnake »