Referencer hangs on Ubuntu 13.10: gtk thread related changes?

Bug #1267786 reported by Mads Chr. Olesen
42
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Referencer
Fix Released
Critical
Mads Chr. Olesen
referencer (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Pretty much any interaction involving dialogs, even opening the about dialog will cause Referencer to hang.
The backtrace looks something like:
#0 __lll_lock_wait ()
    at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1 0x00007ffff4144192 in _L_lock_1142 ()
   from /lib/x86_64-linux-gnu/libpthread.so.0
#2 0x00007ffff4144110 in __GI___pthread_mutex_lock (mutex=0x7773a0)
    at pthread_mutex_lock.c:104
#3 0x00007ffff54d13a1 in g_mutex_lock (mutex=<optimized out>)
    at /build/buildd/glib2.0-2.38.1/./glib/gthread-posix.c:213
#4 0x00007ffff649dcba in ?? ()
   from /usr/lib/x86_64-linux-gnu/libgdk-x11-2.0.so.0
#5 0x00007ffff54913b6 in g_main_dispatch (context=0x7b0b40)
    at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3065
#6 g_main_context_dispatch (context=context@entry=0x7b0b40)
    at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3641
#7 0x00007ffff5491708 in g_main_context_iterate (context=0x7b0b40,
    block=block@entry=1, dispatch=dispatch@entry=1, self=<optimized out>)
    at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3712
#8 0x00007ffff5491b0a in g_main_loop_run (loop=0x178a320)
    at /build/buildd/glib2.0-2.38.1/./glib/gmain.c:3906
#9 0x00007ffff685d277 in gtk_main ()
   from /usr/lib/x86_64-linux-gnu/libgtk-x11-2.0.so.0
#10 0x00007ffff7a3d3bd in Gtk::Main::run(Gtk::Window&) ()
   from /usr/lib/x86_64-linux-gnu/libgtkmm-2.4.so.1
#11 0x00000000004a7dfc in RefWindow::run (this=this@entry=0x7fffffffdc80)
    at RefWindow.C:108
#12 0x0000000000428568 in main (argc=1, argv=0x7fffffffdf18) at main.C:96

Tags: patch

Related branches

Revision history for this message
Mads Chr. Olesen (shiyee) wrote :
no longer affects: referencer (Ubuntu)
Revision history for this message
Mads Chr. Olesen (shiyee) wrote :

I managed to painfully pin-point the problem to the ThumbnailGenerator and explicitly calling gdk_threads_init. We need to re-factor the ThumbnailGenerator anyway, so I will look at this.

Changed in referencer:
assignee: nobody → Mads Chr. Olesen (shiyee)
status: Confirmed → In Progress
Revision history for this message
Mads Chr. Olesen (shiyee) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in referencer (Ubuntu):
status: New → Confirmed
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "WIP patch" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Changed in referencer:
status: In Progress → Fix Committed
Changed in referencer:
milestone: none → 1.2.2
Changed in referencer:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.