#14 Crash with "X Window System error" when deactivating.

trunk
closed-works-for-me
dmaphy
geanygdb (5)
7
2010-01-10
2009-09-03
Eugene
No

Original message: http://lists.uvena.de/geany-devel/2009-September/001265.html

Hi there.

When I open Geany, go to plugin manager, activate geanygdb plugin and
deactivate it immediately, geany crashes reporting the following:

-------------------- 8< --------------------

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 10169 error_code 3 request_code 3 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.)

-------------------- 8< --------------------

Same thing happens when I just activate the plugin and exit Geany. It
crashes at exit with the same message (except "serial", which is
different every time).

I am using recent SVN versions of geany (r4145) and geany-plugins (r916).

Discussion

  • dmaphy
    dmaphy
    2009-09-03

    I unfortunately can not reproduce this here (Geany r4149, Geany-Plugins r916). Could you provide some more information about the environment? Distribution, Window Manager, Desktop Environment and so on...
    Also, would it be possible to get a backtrace with gdb?

     
  • Eugene
    Eugene
    2009-09-03

    Sure.

    --- Environment ---

    Distro: Ubuntu 9.04, with recent packages (just upgraded)
    DE: GNOME 2.26.1
    WM: Openbox 3.4.7.2
    X server: X.org 7.4

    --- gdb backtrace ---

    I could not get it.

    --- 8< ---

    $ gdb geany
    <...>
    (gdb) break gdk_x_error
    Function "gdk_x_error" not defined.
    Make breakpoint pending on future shared library load? (y or [n]) y

    Breakpoint 1 (gdk_x_error) pending.
    (gdb) run -v --sync
    Starting program: /usr/local/bin/geany -v --sync
    [Thread debugging using libthread_db enabled]
    [New Thread 0xb71f3940 (LWP 13258)]
    ** INFO: Geany 0.19 (svn >= r), GTK+ 2.16.1, GLib 2.20.1
    ** INFO: Disabling terminal support
    ** INFO: Loaded: /usr/local/lib/geany/addons.so (Addons)
    ** INFO: Loaded: /usr/local/lib/geany/codenav.so (Code navigation)
    ** INFO: /home/zhenya/notes/notes.html : HTML (UTF-8)
    ** INFO: Bad color '0x0'
    ** INFO: Bad color '0x0'
    ** INFO: /home/zhenya/tasks.html : HTML (UTF-8)
    ** INFO: Plugin "/usr/local/lib/geany/addons.so" already loaded.
    ** INFO: Plugin "/usr/local/lib/geany/codenav.so" already loaded.
    ** INFO: Loaded: /usr/local/lib/geany/geanygdb.so (Отладчик)
    // ---> here I uncheck the plugin in plugin manager
    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 19899 error_code 3 request_code 3 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.)

    Program exited with code 01.
    (gdb) bt
    No stack.
    (gdb)

    --- 8< ---

    Running geany with or without --sync do not change anything.

     
  • Enrico Tröger
    Enrico Tröger
    2009-09-06

    Just a wild guess: maybe it's related to some g_idle or g_timeout function call in geanygdb.
    Not sure whether such calls exist at all in the code or even if, it is related. Just a guess, though I also can't reproduce it.

     
  • dmaphy
    dmaphy
    2009-09-09

    • priority: 5 --> 7
    • assigned_to: nobody --> dmaphy
     
  • dmaphy
    dmaphy
    2009-09-09

    Unfortunately could not find any g_idle or g_timeout functions.
    I'm a bit puzzled also, because it seems, no one else can reproduce this issue.
    Would it be possible to check, if this also occurs with a stable release of geany-plugins or even an older subversion revision of geany-plugins?
    This would help a lot to limit the issue on a specific code part.

     
  • dmaphy
    dmaphy
    2009-09-09

    • milestone: --> trunk
     
  • I tried geany-plugins r718 ("Fix up geanygdb into the common build system", committed on June 14) with latest geany r4176. Same error there.

     
  • Eugene
    Eugene
    2009-09-12

    Sorry, the previous post is mine.

     
  • Eugene
    Eugene
    2010-01-10

    Dominic, I reinstalled a newer version of Ubuntu on my machine, now geanygdb works fine. I am sure the bug was caused by local configuration. You may close it if you wish.

     
  • dmaphy
    dmaphy
    2010-01-10

    Thanks very much for your feedback Eugene. Closing this bug for now.

     
  • dmaphy
    dmaphy
    2010-01-10

    • status: open --> closed-works-for-me