I created a video player in Gtk3 using Gstreamer in Python3. It works, except when I add GtkMenuBar (place 2). Then it will either show a black screen or crash with an error. The exception refers to XInitThreads , which I call (place 1) (I took this from the pitivi project), but this does not seem to be the difference.
Question: How do I make this work?
Other things I would like to know:
- Why does manilaba break this?
- This will clearly break through to anything other than X, is there some kind of pre-engineered component of the theses of this logic and cross-platform that I lack?
System:
An exception:
[xcb] Unknown request in queue while dequeuing [xcb] Most likely this is a multi-threaded client and XInitThreads has not been called [xcb] Aborting, sorry about that. python3: ../../src/xcb_io.c:179: dequeue_pending_request: Assertion `!xcb_xlib_unknown_req_in_deq' failed.
Code (in small form to demonstrate the concept):
import gi gi.require_version('Gtk', '3.0') gi.require_version('Gst', '1.0') gi.require_version('GstVideo', '1.0') from gi.repository import Gtk, xlib from gi.repository import Gst, Gdk, GdkX11, GstVideo Gst.init(None) Gst.init_check(None)
source share