Oct 01 16:54:25 <Mathieu_Du>	Would anybody know why executing that : http://paste.fedoraproject.org/43548/06715451 segfaults with that stacktrace : http://fpaste.org/43550/80671614/ ?
Oct 01 16:54:49 <Mathieu_Du>	No segfault if I either remove the label packing or the initialization of ClutterGst
Oct 01 17:23:40 <dj-death>	Mathieu_Du: interesting
Oct 01 17:23:55 <Mathieu_Du>	dj-death, happens to you as well ?
Oct 01 17:24:20 <mclasen>	doesn't look like a gtk problem anyway
Oct 01 17:24:31 <mclasen>	it goes away if you take clutter-gst out of the picture
Oct 01 17:24:39 <Mathieu_Du>	What's even more distressing is that while investigating the issue I encountered that : http://placidrage.github.io/kb/development/languages/python/1-gtk-python/1-app-tutorials/5-video-player/
Oct 01 17:24:44 <dj-death>	Mathieu_Du: yes
Oct 01 17:24:49 <Mathieu_Du>	And it exhibits the same issue
Oct 01 17:24:52 <dj-death>	Mathieu_Du: I rewrote the thing in gjs
Oct 01 17:24:57 <Mathieu_Du>	I suppose it worked at some point :)
Oct 01 17:25:22 <dj-death>	running valgrind on that seems to imply a bug in X11
Oct 01 17:25:25 <dj-death>	libX11
Oct 01 17:25:36 <Mathieu_Du>	OK well that's not an option for me :) I "crossposted" on gst and gnome-hackers
Oct 01 17:25:37 <dj-death>	which is surprising
Oct 01 17:25:52 <Mathieu_Du>	:(
Oct 01 17:26:15 <Mathieu_Du>	I have to specify I'm on F20 so I might have too recent packages
Oct 01 17:26:48 <dj-death>	I'm on debian
Oct 01 17:26:57 <dj-death>	I get the same backtrace with a gnome 3.8
Oct 01 17:27:00 <dj-death>	stack
Oct 01 17:27:01 <Mathieu_Du>	Anyway my problem is that I would like to report it but wouldn't really know where
Oct 01 17:27:07 <Mathieu_Du>	Yeah OK
Oct 01 17:27:25 <Mathieu_Du>	do you know how to call XInitThreads from python ?
Oct 01 17:27:32 <Mathieu_Du>	Looks like totem master does that
Oct 01 17:27:43 <dj-death>	ah!
Oct 01 17:27:48 <dj-death>	yes could be that
Oct 01 17:28:09 <dj-death>	because valgrind does complain about a pthread lock uninitialized
Oct 01 17:28:25 <dj-death>	then wrong write access
Oct 01 17:28:28 <dj-death>	then segfault
Oct 01 17:28:39 <Mathieu_Du>	Yep the stacktrace kind of showed that as well
Oct 01 17:28:47 <Mathieu_Du>	But I have no idea how to call that in python
Oct 01 17:29:34 <dj-death>	Mathieu_Du: it doesn't crash anymore with : 
Oct 01 17:29:45 <dj-death>	ClutterGst.init(null, null);
Oct 01 17:29:45 <dj-death>	GtkClutter.init(null, null);
Oct 01 17:29:49 <dj-death>	in that order
Oct 01 17:30:00 <Mathieu_Du>	07ec4f18ac677e450eea82d3ee80a04271b6cfa3 in totem reintroduced XInitThread
Oct 01 17:30:04 <Mathieu_Du>	Oh interesting
Oct 01 17:30:07 <dj-death>	but you get clutter that complains
Oct 01 17:30:09 <Mathieu_Du>	give me one sec
Oct 01 17:30:19 <Mathieu_Du>	Complains in what way ?
Oct 01 17:30:37 <Mathieu_Du>	because I also managed to get it cool but ti said cluttersink was not registered for instance
Oct 01 17:31:16 <dj-death>	complains about the fact it is initialized twice
Oct 01 17:32:33 <Mathieu_Du>	how would that translate to python ?
Oct 01 17:32:36 <Mathieu_Du>	because :
Oct 01 17:32:42 <Mathieu_Du>	    ClutterGst.init([None, None])
Oct 01 17:32:43 <Mathieu_Du>	    GtkClutter.init([None, None])
Oct 01 17:32:46 <Mathieu_Du>	segfaults as well
Oct 01 17:33:03 <dj-death>	clutter_gst_init() calls XInitThreads, so it should prevent the crash
Oct 01 17:33:23 <Mathieu_Du>	Oh it segfaults in gst oO
Oct 01 17:33:35 <Mathieu_Du>	option_parser doesn't like it
Oct 01 17:34:35 <Mathieu_Du>	Why would changing the arguments prevent the segfault ?
Oct 01 17:34:38 <Mathieu_Du>	Not sure I get it
Oct 01 17:35:52 <dj-death>	you need a calls to XInitThreads() before anything else using the X api
Oct 01 17:35:58 <dj-death>	s/calls/call
Oct 01 17:36:11 <Mathieu_Du>	OK I get it this works :
Oct 01 17:36:23 <Mathieu_Du>	http://paste.fedoraproject.org/43565/38067417
Oct 01 17:36:39 <Mathieu_Du>	Uncommenting the init of GtkClutter raises the warning though :(
Oct 01 17:37:38 <Mathieu_Du>	the problem is when the import of Gtk is made before the initialization
Oct 01 17:37:46 <Mathieu_Du>	That's weird
Oct 01 17:37:54 <dj-death>	this whole multiple toolkits multiple windowing system situation is a mess
Oct 01 17:38:14 *	Mathieu_Du can't wait for a scenegraph in Gtk ;)
Oct 01 17:38:41 <Mathieu_Du>	the reason I want to use clutter here is to be able to overlay transparent stuff over our viewer in pitivi
Oct 01 17:38:45 <dj-death>	through some wayland in there and you start banging your head against the wall
Oct 01 17:39:11 <dj-death>	some guy complained that ClutterGst doesn't work with GstreamerVAAPI on wayland
Oct 01 17:39:17 <Mathieu_Du>	Ahaha well I guess your shoes ain't much more comfortbale than ours :
Oct 01 17:39:19 <dj-death>	I understand 
Oct 01 17:39:20 <Mathieu_Du>	:)
Oct 01 17:40:04 <Mathieu_Du>	Doing gst + gtk ain't easy in some cases unfortunately
Oct 01 17:40:09 <dj-death>	ah and Gstreamer just broke the API for videocontext which is one of the thing you need to get hw decoding to work
Oct 01 17:40:35 <Mathieu_Du>	did they ??
Oct 01 17:40:45 <Mathieu_Du>	was it part of the stuff in bad ?
Oct 01 17:40:52 <dj-death>	it just wasn't "stable api" 
Oct 01 17:41:17 <Mathieu_Du>	Aha well then that's not really API break if you're warned
Oct 01 17:41:22 <dj-death>	but if you needed vaapi you needed it
Oct 01 17:41:30 <Mathieu_Du>	Ye pI understand
Oct 01 17:41:47 <Mathieu_Du>	I have to say they are really respectful of the API / ABI
Oct 01 17:42:29 <Mathieu_Du>	So yeah if they only break it when it was explicitly not stable I guess that's fair
Oct 01 17:43:47 <Mathieu_Du>	thanks for the help btw :)
Oct 01 17:43:53 <dj-death>	np
Oct 01 17:56:56 <Mathieu_Du>	dj-death, I have a problem anyway, these warnings are not entirly benign I think :)
Oct 01 17:57:14 <Mathieu_Du>	Shouldn't gtk_clutter_init call XInitThreads ?
Oct 01 17:59:54 <Mathieu_Du>	that way we could have it called before gst_clutter_init, which would at least remove that issue
Oct 01 18:04:34 <Mathieu_Du>	OK got the correct fix :D
Oct 01 18:04:54 <Mathieu_Du>	dj-death, the solution is to init Gdk first, this will call XInitThreads
Oct 01 18:05:17 <Mathieu_Du>	Then you can init GtkClutter, and finally ClutterGst
Oct 01 18:06:22 <Mathieu_Du>	a bit of a hassle to have to figure that out, might be worth mentioning it somewhere to spare some headaches :)

Oct 01 18:32:11 <Jasper>	Mathieu_Du, long-term plan is to have XInitThreads always aclled
Oct 01 18:32:30 <Mathieu_Du>	where ?
Oct 01 18:34:18 <Mathieu_Du>	because for now if want to use ClutterGst and GtkClutter in python you have to do : Gdk.init() then GtkClutter.init() then ClutterGst.init() , and noother sequence will work, which is quite annoying Jasper
Oct 01 18:35:08 <Jasper>	Mathieu_Du, yeah, I understand.
Oct 01 18:35:40 <Mathieu_Du>	(that was not an accusation btw looks a little like that)

Oct 01 19:39:33 <sfeltman>	Mathieu_Du: some additional confusion WRT init woes... "from gi.repository import Gtk" calls Gtk.init_check (which also has the unfortunate side effect of modifying sys.argv)
Oct 01 19:40:22 <Mathieu_Du>	erg
Oct 01 19:40:48 <sfeltman>	... init_check itself doesn't have the side effect, the overrides do
Oct 01 19:41:01 <Mathieu_Du>	Anyway Jasper told me everything would be fine so I'll sleep onmy two ears :)

