On Wed, Apr 10, 2013 at 03:57:21PM +0000, Christian Weisgerber wrote:
> A number of weeks ago, I reported this problem on freebsd-ports:
> 
> ------->
> Viewing large images has become cumbersome with the switch from
> Firefox 18 to 19.  Am I the only one to notice this?
> 
> Wikipedia's high-resolution pictures of the day are great for this:
> https://upload.wikimedia.org/wikipedia/commons/e/e9/Bison_skull_pile_edit.jpg
> 
> What happens is that Firefox loads the image and then does some
> sort of operation that causes the X11 server to be busy for a
> noticeable amount of time.  During this time the whole X11 session
> hangs.  If you have a network login, you can see the Xorg process
> eat all the CPU it can get.  The duration of this delay varies and
> depends on the size of the image; with the one above it just took
> 30 seconds.

You'll also see the memory footprint of the Xorg process climb to
the ceiling during that period. 

> This isn't entirely new.  With previous versions of Firefox it
> happened when I accidentally dragged an image.  But now with
> Firefox 19, just viewing the image is enough.  Needless to say,
> this is painful if you are going through a number of large images
> and are forced to pause for half a minute each.
> <-------
> 

I've seen that too for a long time, and what's most annoying imho is that
it also does it for large images scaled down with small width= and
height= values in the image tag.

Since afaik the X server offers no services to help scaling down the
image, I didn't understand the point in firefox allocating the full
size pixmap (or even several copies of it) in the X server.

But yes, dragging may make sense. So ff may indeed be copying the full
size image fo one of X cut buffers, which have the ability to contain
stuff other than text... 


> Unsurprisingly, several people have now run into the same problem on
> OpenBSD.
> 
> Workarounds are setting MOZ_DISABLE_IMAGE_OPTIMIZE=1 in the environment
> or disabling gfx.xrender.enabled in about:config.  (You have to
> restart Firefox after toggling gfx.xrender.enabled.)
> 
> I'm throwing this out there, but users shouldn't really be required
> to invoke magic incantations.
> 
> -- 
> Christian "naddy" Weisgerber                          na...@mips.inka.de
> 

-- 
Matthieu Herrb

Reply via email to