Skip to contentSkip to conversation

New: Spurious GL_INVALID_OPERATION error generated by glColor()

Bug 48535 [email protected] 1 participant 5 messages Apr 11, 2012 – Apr 12, 2012

lore
Share & tools
lore
#0 lore raw

https://bugs.freedesktop.org/show_bug.cgi?id=48535

             Bug #: 48535
           Summary: Spurious GL_INVALID_OPERATION error generated by
                    glColor()
    Classification: Unclassified
           Product: Mesa
           Version: 7.10
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: minor
          Priority: low
         Component: Drivers/DRI/Radeon
        AssignedTo: [email protected]
        ReportedBy: [email protected]

Created attachment 59785
--> https://bugs.freedesktop.org/attachment.cgi?id=59785
Program that reproduces the issue

In some unknown circumstance glColor() can raise a GL_INVALID_OPERATION error, which according to the manual should never happen. The attached program reproduces the issue. It's generated from a log of GL calls made by another program, so it's quite long (and some texture-related commands have been stripped out, which I verified does not affect the result). The output I get is:

Error 1282 at line 7353

which is consistent with the original program's issue - glColor() suddenly raises this error after making all these GL calls.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 48535] Spurious GL_INVALID_OPERATION error generated by glColor()

https://bugs.freedesktop.org/show_bug.cgi?id=48535

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

  Attachment #59785|text/x-csrc                 |text/plain
          mime type|                            |
  Attachment #59785|0                           |1
           is patch|                            |
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 48535] Spurious GL_INVALID_OPERATION error generated by glColor()

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=48535

--- Comment #1 from Alex Deucher <[email protected]> 2012-04-11 05:43:45 PDT --- What card and version of mesa are you using? Please attach your xorg log and dmesg output.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 48535] Spurious GL_INVALID_OPERATION error generated by glColor()

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=48535

--- Comment #2 from Vadim <[email protected]> 2012-04-11 16:08:59 PDT --- I guess it's a mesa core problem. Debug build of the mesa also prints the following error message when running the attached test app:

"Mesa: User error: GL_INVALID_OPERATION in Inside glBegin/glEnd"

It's printed from the ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL macro in the _mesa_GetError(), called from gl-bug.c:6823. Though it's not inside Begin/End.

Probably the error reported later after the glColor call at the line 7353 is just a consequence of the real bug somewhere in the display list handling.

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#4 lore raw

[Bug 48535] Spurious GL_INVALID_OPERATION error generated by glColor()

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=48535

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

         AssignedTo|[email protected] |[email protected].
                   |.org                        |org
          Component|Drivers/DRI/Radeon          |Mesa core
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.