! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Tumbler uses huge amounts of RAM/IO/CPU on some files
Status:
RESOLVED: INVALID
Priority:
Very High
Product:
Tumbler
Component:
General

Comments

Description Julien [nodiscc] editbugs 2014-10-22 02:35:15 CEST
Created attachment 5699 
RAM-eating gif.  save your work before downloading

Hi, this is along standing problem with tumbler. The tumblerd process to uses huge amounts of RAM (more than 800 Mb) when thumbailing some files, like the attached animated GIF file (only 458kb). This also consumes a large percentage of IO (70% is common), and increases CPU load (about 60% on my Centrino @1.66GHz)

Bugs that look related:
 * https://bugzilla.xfce.org/show_bug.cgi?id=9954
 * https://bugzilla.xfce.org/show_bug.cgi?id=9231
 * https://bugzilla.xfce.org/show_bug.cgi?id=10876
 * https://bugzilla.xfce.org/show_bug.cgi?id=4955
 * https://bugzilla.xfce.org/show_bug.cgi?id=7494

This is rather serious as it
 * makes the system unresponsive (hard to even move the mouse cursor) due to intense swapping and IO.
 * is triggered by merely browsing a directory with such a file in it.
 * can be used to DoS a machine (simply send them that file).

Tested on several machines, i386 and amd64 architectures, up to tumbler 0.1.30-1+b1 (Debian testing/unstable) Hope there's something to be done. Maybe put an arbitrary limit on the memory tumblerd is allowed to use

Thanks
Comment 1 Julien [nodiscc] editbugs 2014-11-19 20:09:35 CET
Still no reply on this?

I've hit this bug a lot during the past month, I now always have a terminal windows open with 'killall -9 tumblerd' ready to hit enter when I browse a directory containing gif files.

Please have a look at this. Disabling thumbnailing for gifs would be acceptable. Or use another thumbnailer that doesn't have this bug.

Bumping importance so hopefully this gets noticed.
Thanks in advance.

Tumbler 0.1.30-1+b1 in Debian
Comment 2 Julien [nodiscc] editbugs 2014-11-19 22:32:39 CET
Attaching the strace output of the operation: http://pastebin.com/jAk1H1Tz


Steps to reproduce:
 * Download the example gif in a ~/test/ directory with 'wget https://bugzilla.xfce.org/attachment.cgi?id=5699 -O crash.gif'
 * Prepare a terminal window with 'killall -9 tumblerd'
 * find tumberd's pid, attach strace to it with 'strace -p $pid' (prints up to line 3 in the output)
 * run 'thunar ~/test/', strace prints lines starting from 4
 * try to refocus the terminal window with the killall command despite furious lag, hit enter.

I had an htop window displayed that showed tumblerd spiking to 63%+ of RAM usage. Unreliable as it was not refreshing.
Comment 3 Julien [nodiscc] editbugs 2014-11-20 00:07:18 CET
With help from #xfce people on IRC I did a few checks to make sure it was not caused by something unrelated (FS problems, missing libs...)

You can see these checks at http://pastebin.com/Pdnne7Hf
Comment 4 Julien [nodiscc] editbugs 2014-11-20 00:33:11 CET
After using gdb on the tumbler binary, it ended up looping on this message:
Cannot find bounds of current function

The full gdb output is at http://pastebin.com/vthp1jgu

Hope it helps
Comment 5 Julien [nodiscc] editbugs 2015-03-07 03:33:43 CET
I no longer have this problem.

Bug #11244

Reported by:
Julien [nodiscc]
Reported on: 2014-10-22
Last modified on: 2015-03-07

People

Assignee:
Jannis Pohlmann
CC List:
1 user

Version

Version:
unspecified

Attachments

RAM-eating gif. save your work before downloading (448.12 KB, image/gif)
2014-10-22 02:35 CEST , Julien [nodiscc]
no flags

Additional information