GNOME Bugzilla – Bug 675269
Gtk.events_pending causes segfault
Last modified: 2014-01-28 07:46:37 UTC
(gdb) run floaty-client Starting program: /usr/bin/python3.2 floaty-client [Thread debugging using libthread_db enabled] Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1". [New Thread 0x7fffeefe8700 (LWP 4395)] [New Thread 0x7fffee7e7700 (LWP 4396)] Program received signal SIGSEGV, Segmentation fault. 0x00007ffff358b4b0 in gdk_window_set_geometry_hints () from /usr/lib/x86_64-linux-gnu/libgdk-3.so.0
Please attach floaty-client, or a small test case. events_pending() generally works here: $ python3.2 Python 3.2.3 (default, Apr 12 2012, 19:08:59) [GCC 4.6.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> from gi.repository import Gtk >>> Gtk.events_pending <function events_pending at 0x1c8f2f8> >>> Gtk.events_pending() True events_pending() does not actually do any signal handling, that's done by Gtk.main_iteration(). The latter works fine here as well, I use it in my programs. So it's something specific to your program.
https://code.launchpad.net/~floaty-devs/floaty/trunk Look at last commit for placement of code.
Maybe I just use it in wrong way. I am newbie in Gtk.
I still have some trouble running this: $ glib-compile-schemas data/ $ GSETTINGS_SCHEMA_DIR=data GSETTINGS_BACKEND=memory ./floaty-client Traceback (most recent call last): [...] gi._glib.GError: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.klacansky.Floaty was not provided by any .service files So apparently there is another component providing the D-BUS client. However, some issues here: while (Gtk.events_pending): Gtk.main_iteration() events_pending is a method, so you need to call while Gtk.events_pending(): otherwise you have an endless loop. Also, this smells awfully like bug 669157. You can try running your client with Python 2.7 and check if it works with that, or try the python3.2 fix which just landed in precise-proposed? (https://launchpad.net/bugs/909292, will still take some two or three hours before it is available).
Sorry, this is service component (you will need u1db and feedparser) https://launchpad.net/floaty-service I have tried this, but still getting segfault while Gtk.events_pending(): going to upgrade
Indeed, the missing () is totally unrelated to the segfault, it's just a logic error. The fixed python3.2 package is now available in precise-proposed, so please do try it and follow up on https://launchpad.net/bugs/909292 when it works. Thanks!
Hi, I have updated to this package, but still getting segfault
+ Trace 230175
As there are still no complete instructions how to reproduce this, could you please re-check this with latest glib 2.35.x, g-i 1.35.x and pygobject 3.7.90? Thanks!
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!