[Mesa-dev] [Bug 88354] glXSwapBuffers() can cause BadMatch or lock X when performed repeatedly

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 12 22:07:23 PST 2015


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

            Bug ID: 88354
           Summary: glXSwapBuffers() can cause BadMatch or lock X when
                    performed repeatedly
           Product: Mesa
           Version: 10.4
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: GLX
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: leftmostcat at gmail.com

Created attachment 112152
  --> https://bugs.freedesktop.org/attachment.cgi?id=112152&action=edit
Test program demonstrating crash/lock

When running a simple program to test window and GL context creation, I
experience program crashes or X lockups when the main loop calls
glXSwapBuffers() too rapidly. When the swap interval is not set, this appears
to always cause X to lock, with only the mouse responding. (n.b. When
attempting to drag windows, the cursor changes appropriately but the windows do
not respond.) If glXSwapIntervalMESA(1) is called, this occasionally merely
results in a program crash after some number of loops. In both cases, the
following error appears in the output and the program stops execution:

X Error of failed request:  BadMatch (invalid parameter attributes)
  Major opcode of failed request:  147 ()
  Minor opcode of failed request:  1
  Serial number of failed request:  163
  Current serial number in output stream:  1034

After the end of execution, if X is locked, it remains locked until restarted.
Putting a one second delay into the main loop prevents the crash and programs
using GLX while rendering real results have not yet elicited any crashes,
suggesting this is a race condition somewhere. The test program I am using to
reproduce this is attached.

I am using mesa 10.4.1 with the i965 drivers on an Intel HD 3000 with kernel
3.17.8. All packages are from the Fedora 21 repositories.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20150113/f516744d/attachment.html>


More information about the mesa-dev mailing list