eog caches too many images
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Eye of GNOME |
Fix Released
|
High
|
|||
eog (Ubuntu) |
Fix Released
|
Medium
|
Ubuntu Desktop Bugs |
Bug Description
This bug exists when calling eog via nautilus and via the command line.
To reproduce:
Browse to a directory in nautilus that contains 3 or more image files. Right-click on 1 and select open with "Image Viewer". Every file in the directory is cached before eog opens. But if you select 2 or more, then only the selected images are cached.
Open a terminal. For simplicity, cd to a directory containing 3 or more image files. The command "eog image.jpg" will result in caching every image in the directory. Using wildcards results in caching every image as well--if the wildcards match only a single filename. If the wildcard expression matches only some of the filenames, then only the matched files are cached.
In short, eog refuses to cache only 1 image. If only 1 image is selected, it ignores the user's selection and caches every single image. This results in extremely slow performance and at worst, a significant wast of resources because every single image is preloaded by eog.
This behavior exists in both the breezy and dapper packages.
Two suggestions as a result of this behavior:
1) Ensure eog only opens a single image when a single file is selected. (directly fixes this bug)
2) Improve performance by revising the caching method for collections to preloading a smaller number of files.
Changed in eog: | |
status: | Unconfirmed → Confirmed |
Changed in eog: | |
status: | Confirmed → Fix Released |
Changed in eog: | |
importance: | Unknown → High |
Thanks for your bug. How do you know what image is cached? Do you use the "image collection" option? That seems a feature to me, if you use the image collection you probably want the option to browse the other pictures from the same directory. If you don't want that maybe you should not activate the image collection pane?