View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0010382 | ardour | bugs | public | 2026-06-03 09:12 | 2026-06-03 09:13 |
| Reporter | esteban | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | new | Resolution | open | ||
| Platform | GNU | OS | Linux | OS Version | (any) |
| Product Version | 9.5 | ||||
| Summary | 0010382: Crash with BadWindow when LV2 UI exits | ||||
| Description | The UI of an LV2 plugin, the idle() function of the LV2_Idle_Interface may return a non-zero value when the UI has been closed. In the LV2 doc it reads "in which case the host should stop calling idle(), and can either completely destroy the UI, or re-show it and resume calling idle()." See: https://lv2plug.in/c/html/group__ui.html#structLV2UI__Idle__Interface In ardour, the value returned from idle() is ignored: see libs/tk/suil/x11_in_gtk2.c, line 457 in suil_x11_wrapper_idle(). Consider this situation: The UI of an LV2 plugin has and Exit button. The user clicks on it, and the UI destroys its widget (an X11 window) The UI wrapper window ardour creates hangs empty and eventually ardour crashes with an X11 BadWindow error. The error I see: The program 'ardour-9.5.120' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 16061 error_code 3 request_code 25 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.) | ||||
| Steps To Reproduce | Exit a LV2 plugin UI "from within", i.e. using an exit button. I reproduce the error in my machine with an example plugin that is in no way minimal. An example could be produced modifying the lv2 sampler plugin ui. | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-06-03 09:12 | esteban | New Issue |