GNOME Bugzilla – Bug 677605
"Too many open files" when loading thumbnail images
Last modified: 2012-06-11 20:38:31 UTC
Created attachment 215822 [details] [review] patch I just tried the new gnome-font-viewer in jhbuild. It launched ok on the first time, but from the second time, it fails to start with: ** (gnome-font-viewer:8050): WARNING **: Can't get font name: Error opening file: Too many open files From the strace output, it actually tries to open > 1024 fd's at once when loading thumbnail images (almost all font packages in Fedora are installed here). I guess thread yielding is required when opening so many files with g_file_read_async.
Thanks for the report; I now refactored the thumbnailing code around g_io_scheduler_push_job(), which also makes it more robust, and fixes this bug.