X BadWindow error when attemtping to create a window with unsupported OpenGL attributes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libsdl2 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
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: https:/
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 package?
A similar bug is still present in 2.0.10, but fixed in 2.0.12: https:/ /hg.libsdl. org/SDL/ rev/6e17e1a6cf2 e