jpcima / ADLplug

FM Chip Synthesizer — OPL & OPN — VST/LV2/Standalone
Boost Software License 1.0
425 stars 22 forks source link

X11 BadWindow error #31

Closed jpcima closed 5 years ago

jpcima commented 5 years ago

Found error by complete accident: if a dialog is opened and escape is pressed in a very(!) short time frame, the program is going to crash with BadWindow error code.

This happened only under jalv.gtk. It's not reproducible in the standalone program.

The program 'jalv.gtk' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadWindow (invalid Window parameter)'.
  (Details: serial 17213 error_code 3 request_code 15 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
jpcima commented 5 years ago

Added resources/patch/juce-x11-badwindow.patch as a fix. Needs to apply manually by the packaging process.