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

Bug #1762033 reported by Bart van Strien
6
This bug affects 1 person
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://hg.libsdl.org/SDL/rev/2088cd828335

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?

Revision history for this message
Brent Gardner (mongo02) wrote :

A similar bug is still present in 2.0.10, but fixed in 2.0.12: https://hg.libsdl.org/SDL/rev/6e17e1a6cf2e

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.