I have a video program that use gstreamer and wxwidgets. Before Ubuntu 9.10, the program works fine. But since I upgraded to 9.10 (or 10.04), it keeps getting crashes when trying to view video. The error is usually Fatal X11 IO error. I googled and found that GTK+ implementation is slightly changed in 9.10 and up and that caused the problem (from this thread https://bugzilla.gnome.org/show_bug.cgi?id=599885). It shows how to fixed the problem, but I don't see any GTK code in my code, so I'm not sure where I would put the gtk_window_ensure_native() method. My code essentially create a wxWindow and a wxPanel within it. Gstreamer is given the XID of the wxPanel to put the video in. I am a newbie when it comes to this stuff. Can someone help me fix this Fatal X11 error? Thanks.