I have a wxpython application that contains an aui manager on which I would like to dock a floatable pane. The floatable pane contains itself a VTK interactor render window. The application works fine on Windows but, on Linux, the application crashes when docking the pane. The error produced is the following:
(python:24411): Gdk-WARNING **: /build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
(python:24411): Gdk-WARNING **: /build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
(python:24411): Gdk-WARNING **: /build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
(python:24411): Gdk-WARNING **: /build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
(python:24411): Gdk-WARNING **: /build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable is not a pixmap or window
The program ‘python’ received an X Window System error.
This probably reflects a bug in the program.
The error was ‘BadWindow (invalid Window parameter)’.
(Details: serial 55 error_code 3 request_code 12 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.)
Quite serious, isn’t it ?
You will find enclosed a snippet of my application that reproduces exactly the issue. Is this a bug in the way vtk is bound to wxpython under X system or did I do something wrong ?
I have a wxpython application that contains an aui manager on which I
would like to dock a floatable pane. The floatable pane contains itself
a VTK interactor render window. The application works fine on Windows
but, on Linux, the application crashes when docking the pane. The error
produced is the following:
(python:24411): Gdk-WARNING **:
/build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable
is not a pixmap or window
(python:24411): Gdk-WARNING **:
/build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable
is not a pixmap or window
(python:24411): Gdk-WARNING **:
/build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable
is not a pixmap or window
(python:24411): Gdk-WARNING **:
/build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable
is not a pixmap or window
(python:24411): Gdk-WARNING **:
/build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable
is not a pixmap or window The program 'python' received an X Window
System error. This probably reflects a bug in the program. The error
was 'BadWindow (invalid Window parameter)'. (Details: serial 55
error_code 3 request_code 12 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.)
Quite serious, isn't it ?
You will find enclosed a snippet of my application that reproduces
exactly the issue. Is this a bug in the way vtk is bound to wxpython
under X system or did I do something wrong ?
The only thing I can think of is that AUI uses Reparent() to shift windows to/from the floating frames and the docked window. Perhaps vtk has a problem with that? You might try making a sample without AUI but that uses Reparent to shift the vtk window or its parent from one frame to another. If it has the same problem then I would forward that to the VTK maintainers and see if they have any suggestions. If not then there may be some other aspect of AUI that would make sense to narrow in on to find the source of the problem.
I have a wxpython application that contains an aui manager on which I
would like to dock a floatable pane. The floatable pane contains itself
a VTK interactor render window. The application works fine on Windows
but, on Linux, the application crashes when docking the pane. The error
produced is the following:
(python:24411): Gdk-WARNING **:
/build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable
is not a pixmap or window
(python:24411): Gdk-WARNING **:
/build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable
is not a pixmap or window
(python:24411): Gdk-WARNING **:
/build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable
is not a pixmap or window
(python:24411): Gdk-WARNING **:
/build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable
is not a pixmap or window
(python:24411): Gdk-WARNING **:
/build/buildd/gtk+2.0-2.24.10/gdk/x11/gdkdrawable-x11.c:952 drawable
is not a pixmap or window The program ‘python’ received an X Window
System error. This probably reflects a bug in the program. The error
was ‘BadWindow (invalid Window parameter)’. (Details: serial 55
error_code 3 request_code 12 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.)
Quite serious, isn’t it ?
You will find enclosed a snippet of my application that reproduces
exactly the issue. Is this a bug in the way vtk is bound to wxpython
under X system or did I do something wrong ?
The only thing I can think of is that AUI uses Reparent() to shift windows to/from the floating frames and the docked window. Perhaps vtk has a problem with that? You might try making a sample without AUI but that uses Reparent to shift the vtk window or its parent from one frame to another. If it has the same problem then I would forward that to the VTK maintainers and see if they have any suggestions. If not then there may be some other aspect of AUI that would make sense to narrow in on to find the source of the problem.