Public bug reported:

When trying to create a window with unsupported OpenGL attributes,
instead of failing gracefully (and then being able to try with a new set
of attributes), an X error occurs instead, terminating the program. The
error looks like this:

  X Error of failed request:  BadWindow (invalid Window parameter)
    Major opcode of failed request:  4 (X_DestroyWindow)
    Resource id in failed request:  0x0
    Serial number of failed request:  154
    Current serial number in output stream:  156

This was a known bug in SDL2 that has been fixed in this commit:

Only artful ships a package that is impacted by the bug, other ubuntu
versions ship either an SDL2 version that is older, or a version that
contains the fix. Would it be possible to backport the fix to the artful

** Affects: libsdl2 (Ubuntu)
     Importance: Undecided
         Status: New

You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

  X BadWindow error when attemtping to create a window with unsupported
  OpenGL attributes

To manage notifications about this bug go to:

ubuntu-bugs mailing list

Reply via email to