[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#608797: xserver-xorg-core: viewing large image in Firefox causes X server to abort



Excerpts from Julien Cristau's message of Wed Jan 05 17:19:57 +0100 2011:
> On Wed, Jan  5, 2011 at 17:03:38 +0100, Michal Suchanek wrote:
> 
> > I was totally expecting Firefox to try to allocate about a dozen of such
> > pixmaps to store the uncompressed images. Where else would it put them?
> > 
> Seriously, a 2GB pixmap?  Nowhere at all.
> 

Take
http://veimages.gsfc.nasa.gov//7100/world.topo.bathy.200401.3x21600x21600.A2.jpg

The image is 21600x21600 pixels. At 4 bytes per pixel (which is the
preferred format for 24bpp images for alignment I guess) the size of the
image is exactly 1866240000 - the size of the pixmap that failed to
allocate.

Rounding the dimension at 20k gives 1.5G underestimate of the size.

Thanks

Michal



Reply to: