OS: Xubuntu 16.04 Geany version: geany 1.32 (built on Dec 24 2017 with GTK 2.24.30, GLib 2.48.2)
Crash output: The program 'geany' received an X Window System error. This probably reflects a bug in the program. The error was 'BadWindow (invalid Window parameter)'. (Details: serial 51873 error_code 3 request_code 18 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.)
How to reproduce. 1. Open any big text file. You can make one with the following bash script: `for i in {1..1000000}; do echo 1234567890 >> big.txt; done` 2. Copy content of this file to clipboard (ctrl+a, ctrl+c). 3. Create a new file. Do not paste copied data. 4. Open save dialog (ctrl+s). 5. Start typing name (you can hold 1) or select target file several times (for me it always crashes before I select files 10 times). Geany crashes.
I built geany from github with `CFLAGS=-g` and tried to debug it with gdb. `bt` did not show anything. I will give additional info if you need it.
I can't reproduce on by Debian 9, but I didn't yet check with the additional info of QtCreator running.
However, this kind of issue, and especially if QtCreator has to be running, is highly likely to be in either GTK, QtCreator (or Qt), or even X11 (I doubt that last one, but who knows). The save dialog is almost 100% GTK itself, so it's unlikely to be specific to Geany. Could you try with another GTK save dialog, for example GEdit's?
@b4n, there is more info on the IRC backlog
Since it was an X error that caused GTK to crash Geany the issue is likely in X or in how GTK uses X.
@elextr ok, would be worth mentioning here :)
And yeah, likely to be GTK/X interaction, or worse case Qt messing up X somehow.
would be worth mentioning here :)
It is now :)
I tried GEdit with the same sequence. It did not crash. I tried Geany one more time. It did crash.
Gedit is probably using GTK3, but the Geany you are using is GTK2.
Yes, GEdit uses GTK3. I found this: https://sourceforge.net/projects/ged - they say it uses GTK2. This editor crashed with the same error even before saving. Without Qt Creator running everything was ok.
Ok, so its definitely Qt Creator trying to crush the GTK opposition editors/IDEs by making them crash :grin:
But more realistically it seems GTK and Qt don't agree over sharing X.
github-comments@lists.geany.org