Nautilus becomes unresponsive when generating thumbnail for a very wide PNG

Bug #117830 reported by Isaac
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus (Debian)
Confirmed
Unknown
nautilus (Ubuntu)
Incomplete
Medium
Ubuntu Desktop Bugs

Bug Description

(was titled "Nautilus hangs when browsing high-res PNG", this is not the case)

Binary package hint: nautilus

Steps to reproduce:
Get a high resolution PNG image (like this one, 3840x2400, 5K: http://www.deviantart.com/download/56406804/WQUXGA_by_Isaac_Kx.png)
Browse to the image's directory
Hang. Sometimes the entire desktop hangs, and applications continue functioning normally, if it weren't that everything on the screen is not responding.

Revision history for this message
Holger Bauer (umarmung-planet) wrote :

I can reproduce this with feisty and nautilus 2.18.1-0ubuntu1
There is also a bug open in debian.

Changed in nautilus:
status: Unconfirmed → Confirmed
Changed in nautilus:
status: Unknown → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks for your bug report, may you try to send us the image? btw did you try to reproduce this with gutsy?, thanks!

Changed in nautilus:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: Confirmed → Incomplete
Revision history for this message
Isaac (isaacklinger) wrote :

Reproduced Nautilus 1:2.19.6-0ubuntu1 (gusty)
Attached an offending image, 12000px wide.

Thanks for the reply, Pedro.

Isaac

Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thanks Isaac, I cannot reproduce this, it looks fine here in my desktop, nautilus doesn't hang

Revision history for this message
Isaac (isaacklinger) wrote : Reproducing

Sorry I can't be more specific. I just browse to the directory containing the image, and it hangs. Is there any way to generate a crash report?

Revision history for this message
Sebastien Bacher (seb128) wrote : Re: Nautilus hangs when browsing high-res PNG

You can read http://wiki.ubuntu.com/DebuggingProgramCrash on how to get a stacktrace

Revision history for this message
Marc Portier (marc-portier) wrote :

I've just tested the very-wide png on my system. (Feisty)

It doesn't really 'hang' but rather takes full CPU for quite some time (3 minutes over here, I guess depending on specs YMMV)
During that time none of the 'nautilus-managed-windows' are being updated (so it surely feels like system locks up for a moment there)

I have the impression this is related to 'thumbnail generation' of those images since:

- this long wait-time only occurs *once* when the image is displayed a first time in nautilus
    (and to be clear: not if I close nautilus and then come back into that directory with a new window, even if other content in that directory changed)
    (but it does again if I 'kill' nautilus rather then just 'close' the window)

- this never happens if I disable the preview (Edit | Preferences > 'Preview' tab, choose 'never' for 'show thumbnails')

- this happens again if I change the file-name of the very-wide.png
    (either through F2 in nautilus, or with a CLI mv command and then use nautilus to walk into that directory again)
    (interesting: the name-change itself is only displayed/updated in nautilus after this wait-time)

By the way: I experienced this behaviour earlier on mounted remote (smb) disks where I assume the slow loading of the remote file will cause the effect earlier (i.e. for smaller files already)

Revision history for this message
Marc Portier (marc-portier) wrote :

As suggested on the http://wiki.ubuntu.com/DebuggingProgramCrash, I've used 'strace' to generate the log in attach.

Procedure I followed:

mpo@lamancha:~$ cd /tmp
mpo@lamancha:/tmp$ mv very-wide.png big.png
mpo@lamancha:/tmp$ pidof nautilus
9076
mpo@lamancha:/tmp$ nautilus . ; strace -Ff -tt -p 9076 2>&1 |tee /tmp/strace-nautilus.log

During the 'wait period' the console showed these lines at the bottom:

> [pid 15593] 16:35:27.422381 _exit(0) = ?
> Process 15593 detached

(hoping these help you locate the relevant part in the trace-log)

This for something more then a minute (yeah, it seems like I exaggerated a bit earlier there)
as soon as the flooding on the console started again I CTRL-C out of it, yielding the trace file in attach.

Hope this helps.

Revision history for this message
Marc Portier (marc-portier) wrote :

Searching around further I think the following known issues are related/duplicates to the behaviour I see:

http://bugzilla.gnome.org/show_bug.cgi?id=104224
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/26198

http://bugzilla.gnome.org/show_bug.cgi?id=165344
https://bugs.launchpad.net/ubuntu/+source/nautilus/+bug/33467

Isaac, could you confirm?

(that it doesn't happen when disabling thumbnail-preview and
 that the system is not a real "hanging" but rather very busy for a very long time)

Revision history for this message
Isaac (isaacklinger) wrote : Yup, close the bug

Thanks a lot, mpo.

Nautilus doesn't hang.

It becomes unresponsive. I've attached an strace output.

Thanks again.

description: updated
Revision history for this message
Marc Portier (marc-portier) wrote :

I just had the chance to test this with Ubuntu 7.10 (gutsy) which runs gnome 2.20.0 (build date 09/17/2007)
The problem described here persists.

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.