FS#53314 - [libgsf] Gnome thumbnail daemon gsf-office-thumbnailer fills /tmp entirely

Attached to Project: Arch Linux
Opened by Gerlof (Gero) - Tuesday, 14 March 2017, 20:40 GMT
Last edited by Andreas Radke (AndyRTR) - Wednesday, 11 December 2019, 07:31 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Jan de Groot (JGC)
Jan Alexander Steffens (heftig)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
gsf-office-thumbnailer leaves files in /tmp (due to crashes?) when ran by gjs-console.
Since gjs-console is a daemon started by gnome on login, this completely fills all space in my /tmp mount.
Not sure whether this is arch specific or upstream, so i'm first reporting here to get some more insights.

My /tmp folder after a few minutes of normal usage:
> ls -lh /tmp
-rw------- 1 gerlof gerlof 48M Mar 14 21:24 /tmp/magick-22873hunCLjOUTMPY
-rw------- 1 gerlof gerlof 48M Mar 14 21:24 /tmp/magick-22873XuUHhKbz0vvq
-rw------- 1 gerlof gerlof 48M Mar 14 21:24 /tmp/magick-22906wEpu3Y1OXbqd
-rw------- 1 gerlof gerlof 48M Mar 14 21:24 /tmp/magick-22906zASiWsZjxiJS
-rw------- 1 gerlof gerlof 48M Mar 14 21:34 /tmp/magick-23783M2ej671S4ane
-rw------- 1 gerlof gerlof 48M Mar 14 21:34 /tmp/magick-2378472WrT5uczt9a
-rw------- 1 gerlof gerlof 48M Mar 14 21:34 /tmp/magick-23785VQQ1KsJUQDUb
-rw------- 1 gerlof gerlof 48M Mar 14 21:34 /tmp/magick-23814JGMOYQsaHc3y
-rw------- 1 gerlof gerlof 48M Mar 14 21:34 /tmp/magick-23814Uy97bUgg8Rv0

Identifying the culprit:
while true; do sleep .5; for pid in $(sudo lsof +D /tmp | tee log.txt | grep magick | awk -F' ' '{ print $2 }'); do ps auxf | grep -C 5 $pid; done; done

Led to the process tree:
The following line leads
gerlof 22079 12.6 0.9 1400340 75792 ? Sl 21:21 0:00 \_ /usr/bin/gjs-console /usr/bin/gnome-documents --gapplication-service
gerlof 22203 0.0 0.0 61352 5316 ? S 21:21 0:00 | \_ gsf-office-thumbnailer -i /home/gerlof/Downloads/Training Reseller - PI 2014 versie 3.2.ppt -o /tmp/.gnome_desktop_thumbnail.KE00WY -s 256
gerlof 22207 93.4 0.9 214316 73312 ? Rl 21:21 0:04 | \_ convert /tmp/gsf-thumbnailer-AP11WY +matte -thumbnail 256x256 png:/tmp/.gnome_desktop_thumbnail.KE00WY

When running the gsf-office-thumbnailer directly:
> gsf-office-thumbnailer -i '/home/gerlof/Downloads/Training Reseller - PI 2014 versie 3.2.ppt' -o /tmp/.gnome_desktop_thumbnail.KE00WY -s 256
calling convert '/tmp/gsf-thumbnailer-18N7WY' +matte -thumbnail 256x256 png:'/tmp/.gnome_desktop_thumbnail.KE00WY'

(gsf-office-thumbnailer:24267): GLib-GObject-CRITICAL **: g_object_unref: assertion 'G_IS_OBJECT (object)' failed



Additional info:
* package version(s)
extra/libgsf 1.14.40-1
extra/imagemagick 6.9.8.0-1
* config and/or log files etc.
no logs, only output from bash hackery like above

Steps to reproduce:
Install gnome-extra and imagemagick, put a .ppt file in your home directory.
Use the meta key to bring up the gnome overlay window, this should start file indexing and trigger a crash of gsf-office-thumbnailer.
This task depends upon

Closed by  Andreas Radke (AndyRTR)
Wednesday, 11 December 2019, 07:31 GMT
Reason for closing:  Fixed
Comment by Chris Roth (CaeZaR) - Wednesday, 10 May 2017, 20:15 GMT
I have the same issue and didn't see this one before opening the following:

https://bugzilla.gnome.org/show_bug.cgi?id=782236
Comment by Jan de Groot (JGC) - Wednesday, 11 October 2017, 08:40 GMT
This is probably no longer an issue as thumbnailers run inside bubblewrap since GNOME 3.26 (and everything else that uses gnome-desktop for thumbnailing).

Loading...