Browsing a directory with a large png file can cause the system to almost hang

Bug #1520960 reported by Jonathan Moerman
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Files
Confirmed
Undecided
Unassigned

Bug Description

If I browse through a folder containing a very large png file (92340x22572) pantheon-files tries to render a thumbnail of this file, causing a very large spike in ram usage and, if I have something like chrome opened with a few tabs, slows the system down to a point where it is almost frozen. (mouse moves once every few seconds)
In this case libgdk pixbuf crashes after a few seconds with the following message in dmesg:

segfault at 7fb36b8a560c ip 00007fb579dbbce0 sp 00007fb5733a3838 error 4 in libgdk_pixbuf-2.0.so.0.3000.7[7fb579da8000+20000]

If the system hasn't enough free ram (<6gb free) it takes much longer to recover and, untill libgdk pixbuf crashes, will barely respond to the user.

I guess this isn't a coding flaw in pantheon-files it self, but that does not matter to the user...

Perhaps it is a good idea to modify pantheon-files to ignore pictures (only for thumbnailing, of course) if the amount of pixels exceeds a certain limit?

Changed in pantheon-files:
status: New → Confirmed
tags: added: image slow thumbnail
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.