title: Sporadic failure in GLX
body: <p>I am running OpenGL in headless mode with Xserver and invoking this api multiple times: <a href="https://github.com/RobotLocomotion/drake/blob/74292cacd1c42d6b3e682dc836254cdb834ea2e6/geometry/render/render_engine_vtk.cc#L311" rel="nofollow noreferrer">https://github.com/RobotLocomotion/drake/blob/74292cacd1c42d6b3e682dc836254cdb834ea2e6/geometry/render/render_engine_vtk.cc#L311</a></p>
  <p>Sporadically but almost always there is a</p>
  <pre><code>X Error of failed request:  BadValue (integer parameter out of range for operation)
    Major opcode of failed request:  154 (GLX)
    Minor opcode of failed request:  3 (X_GLXCreateContext)
    Value in failed request:  0x0
    Serial number of failed request:  61
    Current serial number in output stream:  62
  </code></pre>
  <p>glxinfo:</p>
  <pre><code>glxinfo
  name of display: :0
  XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server &quot;:0&quot;
        after 50 requests (50 known processed) with 0 events remaining.
  </code></pre>
  <p>Last lines of /var/log/Xorg.0.log logs:</p>
  <pre><code>[ 47757.261] (EE) Backtrace:
  [ 47757.261] (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4d) [0x557e48dd2acd]
  [ 47757.261] (EE) 1: /usr/lib/xorg/Xorg (0x557e48c1a000+0x1bc869) [0x557e48dd6869]
  [ 47757.261] (EE) 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f4cbddc7000+0x128a0) [0x7f4cbddd98a0]
  [ 47757.261] (EE) 3: /usr/lib/x86_64-linux-gnu/nvidia/xorg/nvidia_drv.so (0x7f4cba768000+0x479100) [0x7f4cbabe1100] 
  [ 47757.261] (EE) 
  [ 47757.262] (EE) Segmentation fault at address 0x8
  [ 47757.262] (EE) 
  Fatal server error:
  [ 47757.262] (EE) Caught signal 11 (Segmentation fault). Server aborting
  </code></pre>
  <p>Machine: 18.04.2-Ubuntu</p>
  <p>NVIDIA-SMI 440.100      Driver Version: 440.100      CUDA Version: 10.2</p>
  <p>Can someone please let me know what next to debug here?</p>