[wxPython-users] abnormal error on execute app

Robin Dunn robin at alldunn.com
Fri Jul 20 13:58:21 PDT 2007


Mariano Di Felice wrote:
> Hi guys,
>    when I start my app, I will receive this error ( that i never seen ):
> 
> (python:6608): Gdk-CRITICAL **: gdk_drawable_get_image: assertion 
> `GDK_IS_DRAWABLE (drawable)' failed
> 
> (python:6608): Gdk-CRITICAL **: gdk_image_get_colormap: assertion 
> `GDK_IS_IMAGE (image)' failed
> 
> (python:6608): GLib-GObject-CRITICAL **: g_object_unref: assertion 
> `G_IS_OBJECT (object)' failed
> The program 'python' received an X Window System error.
> This probably reflects a bug in the program.
> The error was 'BadAlloc (insufficient resources for operation)'.
>  (Details: serial 192499 error_code 11 request_code 53 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.)

Are you doing anything with the GUI from a non-main thread?  Are you 
doing anything out of the ordinary with images in your startup code?  Do 
you destroy any widgets before the MainLoop has started?  Can you 
comment out things one at a time in your app's startup until you find 
what causes the error?

-- 
Robin Dunn
Software Craftsman
http://wxPython.org  Java give you jitters?  Relax with wxPython!





More information about the wxpython-users mailing list