[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

the phantom Gdk-ERROR **: BadWindow



First off, thanks to those who solved my previous problems of
gtk_window_destroy() last week. This one seems to be more serious...

During development on Linux, I saw this problem only intermittently and had
assumed it was just happening as an artifact due to crashes or forced-kills
of earlier application testing and would go away once we were stable. Now
I'm still seeing it intermittently on Linux (redhat 6) when the application
is finishing gracefully on the previous run, and more importantly am seeing
it ALWAYS on Solaris (5.7) after trying to port yesterday:

The Gtk (ver 1.2.7 and glib 1.2.7) stuff is used as an API library, which
is invoked from a Java (1.1.7B Linux, 1.1.7 Solaris) application. When
firing up the Java app, it dies before throwing up the main app window with 

  Gdk-ERROR **: BadWindow (invalid Window Parameter)
  serial xxx error_code 3 request_code 8 minor_code 0

(the serial changes; the other three numbers are constant from what I can
tell).

Through printf tracing, I can see it is definitely calling and returning
form gtk_init() successfully (which gets called once during API
initialization), and the crash is happening WITHOUT any explicit calls to
the actual API functions that create Gtk windows (which are mostly errors
and info dialogs that only come up once the user is in the main java app
window and starts using it).

To reiterate, the Java app window is pure java, no Gtk or X involved. The
API initialization just calls gtk_init() but does not create any widgets. I
looked on altavista for this Gdk error, and it seems to be very scarcely
reported -- mostly as a debian or gnome package bug of some sort. Has
anyone here seen this, and perhaps knows what could be causing it? I'd like
to see if there's an 'obvious' reason before I need to resort to cloning
the vital functions in a C++ app and building it (and all the Gtk/glib)
with debugging symbols.


+--------------------------------------------------------------+
|   Todd C. Zino           todd@lacemaker.com                  |
+--------------------------------------------------------------+



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]