<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - xcb_glx results in blocking main thread when user switches to virtual terminal"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=91448">91448</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xcb_glx results in blocking main thread when user switches to virtual terminal
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>XCB
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Library
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>xcb@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>gatis.paeglis@digia.com
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>xcb@lists.freedesktop.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=117339" name="attach_117339" title="xcb test code">attachment 117339</a> <a href="attachment.cgi?id=117339&action=edit" title="xcb test code">[details]</a></span>
xcb test code

resulted from <a href="https://bugreports.qt.io/browse/QTBUG-47179">https://bugreports.qt.io/browse/QTBUG-47179</a>

The issue is reproducible also in other situations, for example when "session /
screen is locked by Light Locker (Xubuntu, standard configuration)"

xcb test code in the attachment.

Code works as expected when glx extension is not initialized. As soon as you
enable glx extension you start to get a blocking behaviour on
xcb_get_input_focus_reply;

Expected outcome when switching to VT:

syncX: 12:20:30
syncX: 12:20:31
syncX: 12:20:32
syncX: 12:20:33
syncX: 12:20:34
syncX: 12:20:35
syncX: 12:20:36
syncX: 12:20:37
syncX: 12:20:38
syncX: 12:20:39
syncX: 12:20:40
syncX: 12:20:41

Actual outcome (switch to VT and then back to GUI session after for example 5
seconds):

syncX: 12:20:30
syncX: 12:20:31
syncX: 12:20:32
syncX: 12:20:33
syncX: 12:20:39
syncX: 12:20:40
syncX: 12:20:41</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>