hang/freeze when thumbnail for attachment is missing / has to be generated
Whenever I attach an image to an email, Evolution 3.32.1-2 hangs completely, so that it needs to be killed. Same for 3.32.2-1.
From the stack trace:
#0 0x00007f68c7311037 in select () at /lib/x86_64-linux-gnu/libc.so.6
#1 0x00007f68ca268230 in g_spawn_sync () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#2 0x00007f68c255d57b in gnome_desktop_thumbnail_script_exec
(cmd=cmd@entry=0x55d63d200090 "/usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o", size=size@entry=128, uri=uri@entry=0x55d63d9077c0 "file:///tmp/IMG_2851.jpg", error=error@entry=0x7fff1d215fb0)
at ../libgnome-desktop/gnome-desktop-thumbnail-script.c:862
#3 0x00007f68c2548d6e in gnome_desktop_thumbnail_factory_generate_thumbnail
(factory=0x55d63dac4340, uri=uri@entry=0x55d63d9077c0 "file:///tmp/IMG_2851.jpg", mime_type=mime_type@entry=0x55d63d9b4140 "image/jpeg") at ../libgnome-desktop/gnome-desktop-thumbnail.c:1079
#4 0x00007f68c750c221 in e_icon_factory_create_thumbnail (filename=filename@entry=0x55d63d8053b0 "/tmp/IMG_2851.jpg")
at ./src/e-util/e-icon-factory.c:197
#5 0x00007f68c749bc96 in create_system_thumbnail (icon=<synthetic pointer>, attachment=0x55d63cf42320)
at ./src/e-util/e-attachment.c:143
#6 0x00007f68c749bc96 in attachment_update_icon_column_idle_cb (weak_ref=<optimized out>)
at ./src/e-util/e-attachment.c:366
#7 0x00007f68ca21fdd8 in g_main_context_dispatch () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#8 0x00007f68ca2201c8 in () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#9 0x00007f68ca2204c2 in g_main_loop_run () at /usr/lib/x86_64-linux-gnu/libglib-2.0.so.0
#10 0x00007f68ca7bab15 in gtk_main () at /usr/lib/x86_64-linux-gnu/libgtk-3.so.0
#11 0x000055d63a3afee4 in main (argc=<optimized out>, argv=<optimized out>) at ./src/shell/main.c:676
@mcrha identified the thumbnail creation to be the apparent cause of this issue.
On the affected system, thumbnail creation is turned off and the thumbnail cache (~/.cache/thumbnails/
) is empty.
When thumbnail creation is turned on and the directory with the image to attach is visited, thumbnail creation works (and the thumbnail gets placed in the thumbnail cache).
Now, attaching the image works.
When thumbnail creation is turned off again, attaching the image works as well.
After the thumbnail cache is wiped, attaching the image will freeze evolution again.
This issue has been originally reported on the evolution-hackers
mailing list.