file chooser dialogs can block mainloop in the non-local_only case

Bug #22491 reported by Chris Moore
26
Affects Status Importance Assigned to Milestone
GTK+
Fix Released
Medium
gtk+2.0 (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

if I press "sysrq" to take a screenshot, or if I run "gnome-screenshot" from a
command line, I don't see anything for 30 or 35 seconds. then the screenshot
window appears.

this is a new problem - it wasn't happening a few days ago.

I'm using the current breezy packages, although I did recently switch from the
386 kernel to the 686 kernel.

I am attaching an "strace" log of the program starting up. In this log I hit
control-c just a half a second or so after the window appeared.

You'll notice in the log that there are 16 calls to "futux()" which take over
1.5 seconds. That's where the delay is coming from.

I'll try rebooting into the old 386 kernel and see if the problem persists.

http://bugzilla.gnome.org/show_bug.cgi?id=155420: http://bugzilla.gnome.org/show_bug.cgi?id=155420

Revision history for this message
Chris Moore (dooglus) wrote :

Created an attachment (id=4061)
strace log

I ran this command to add up all the times to give a cumulative timestamp for
each line:

strace -r gnome-screenshot 2>&1 | perl -n -e 'split; $sum += $_[0]; printf
"%9.6f %s", $sum, $_' > snap.txt

Revision history for this message
Chris Moore (dooglus) wrote :

I just "fixed" the problem by going into nautilus and deleting my 2 bookmarks.
They were both bookmarks to SMB mountpoints within my home directory which
aren't currently mounted.

I have had those bookmarks for a long time now, and they've never caused this
slowdown before, even when the shared drives haven't been mounted.

Revision history for this message
Chris Moore (dooglus) wrote :

I found a way to reproduce this delay:

In nautilus, make a new bookmark to:

  smb://abc123/abc123/abc123

(where host abc123 doesn't exist).

Then there's a 15 second delay when trying to start gnome-screenshot.

When I first noticed this delay, I had 2 nautilus bookmarks to un-mounted smb
shares, and had a firewall up which prevented them being mounted. Removing just
one of them halved the delay to 15 seconds. Taking the firewall down removed
the delay. But replacing the hostname with a host which doesn't exist brings
the delay back. If the bookmark is to "smb://abc123/abc123" I see no delay - it
seems I need to add an extra "/abc123" for it to happen.

Revision history for this message
Chris Moore (dooglus) wrote :

I tried using the 386 kernel and found that the same happens in the 2.6.12-9-386
kernel as in the 2.6.12-9-686 kernel.

Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks for tracking the issue. This is known upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=155420

Revision history for this message
Sebastien Bacher (seb128) wrote :

*** Bug 24359 has been marked as a duplicate of this bug. ***

Changed in gtk+2.0:
status: Unconfirmed → Confirmed
Changed in gtk:
status: Unconfirmed → Confirmed
Changed in gtk:
status: Confirmed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

fixed to feisty

Changed in gtk+2.0:
assignee: seb128 → desktop-bugs
status: Confirmed → Fix Released
Changed in gtk:
importance: Unknown → Medium
Revision history for this message
Christoph Donges (cdonges) wrote : Re: [Bug 22491] Re: file chooser dialogs can block mainloop in the non-local_only case

unsubscribe

On Thu, Sep 16, 2010 at 3:14 PM, Bug Watch Updater <<email address hidden>
> wrote:

> ** Changed in: gtk
> Importance: Unknown => Medium
>
> --
> file chooser dialogs can block mainloop in the non-local_only case
> https://bugs.launchpad.net/bugs/22491
> You received this bug notification because you are a direct subscriber
> of the bug.
>

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Bug attachments

Remote bug watches

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