Firefox display long images incorrectly

Discussion about official Mozilla Firefox builds
Post Reply
User avatar
Mummu
Posts: 12
Joined: December 2nd, 2012, 1:55 am

Firefox display long images incorrectly

Post by Mummu »

Hi, I noticed a bug in how firefox renders images, but I dont know how to localize the cause and report it.
What i observe is that when i open random pages that contain long images (height ~7000px-15000px)(9GAG or huru.ru has lots of them) the bottom part of the image is either drawn black or white or with page background color. This is how the image looks:
Image
I've done some testing and found out this entry in about:config - image.high_quality_downscaling.enabled when i set it to false the long images are drawn fine, but only if they are open in separate tab. If its inside a web page its still drawn until ~6000px and the rest it black.
I also captured a 220kb video to show the bug and uploaded it here http://sapienti.eu/firefox_render.wmv
The video shows it all.

This happens only on long images jpg or png. Even if the image is ~7k-10k pixels in height, they are still 7-10 megapixels big. I dont get any errors in the console. Firefox memory usage is fine ~500mb and there is plenty of system ram free. This happens on new profile with only flash installed as plugin. I tried to turn hardware acceleration off and on with no luck. This happens in the last few firefox versions (maybe it began when australis was added). The PC is a standard i7 laptop with intel and nvidia cards.

Also what i found is that when i have any page open that is longer then ~7000-10000px if i type screenshot capture.png --fullpage in Developer toolbar i get the same bug and the bottom of the saved screenshot is filled with page background color. Here is an example of the capture http://imgur.com/RHmw4PH (ref: http://en.wikipedia.org/wiki/Banana)

Any help to find the cause of this bug is appreciated :)

PS: example image for testing http://s.huru.ru/upload/5/BvXdRTUEs7w.jpg
User avatar
streetwolf
Posts: 2706
Joined: August 21st, 2011, 8:07 am
Location: NJ (USA)

Re: Firefox display long images incorrectly

Post by streetwolf »

The image link you provided rendered completely but I'm on Fx34. image.high_quality_downscaling.enabled = true on in my prefs.
Intel i9-13900K | ASUS ROG MAXIMUS Z790 HERO DDR5 | 64GB CORSAIR VENGEANCE DDR5 @ 6600 Mhz.
H100i ELITE CAPELLIX XT Liquid CPU Cooler | PNY 12GB GeForce RTX 3080 Ti | 2 CORSAIR 2TB MP600 PRO XT GEN 4
HX1200 PLATINUM PSU | XENEON 32" IPS UHD 144Hz | BenQ 32" UHD | MS Windows 11 Pro
User avatar
Virtual_ManPL
Posts: 2052
Joined: July 24th, 2008, 5:52 am
Contact:

Re: Firefox display long images incorrectly

Post by Virtual_ManPL »

WFM
Virtualfox persona
Tired of constant Firefox UI changes? XUL extensions are not working anymore? Try SeaMonkey, Waterfox Classic, Pale Moon.
pr1xsel
Posts: 305
Joined: January 28th, 2008, 11:35 am
Location: Estonia

Re: Firefox display long images incorrectly

Post by pr1xsel »

I can confirm this weird behavior with clean profile on my Windows 8.1 laptop with Intel 4600 GPU (driver 10.18.10.3621). Picture renders fine without that size issue if I select Firefox Nightly to use NVDIA 765m GPU.
User avatar
aireca
Posts: 78
Joined: September 6th, 2011, 3:45 pm

Re: Firefox display long images incorrectly

Post by aireca »

Play with your automatic cache setting
User avatar
therube
Posts: 21714
Joined: March 10th, 2004, 9:59 pm
Location: Maryland USA

Re: Firefox display long images incorrectly

Post by therube »

See if Safe Mode makes a difference.
(Help | Restart with addons disabled)

(There was another recent thread about large images...?)

Oh, & it loaded fine for me on my NVIDIA GeForce4 MX 440 ;-).
Fire 750, bring back 250.
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball CopyURL+ FetchTextURL FlashGot NoScript
User avatar
Mummu
Posts: 12
Joined: December 2nd, 2012, 1:55 am

Re: Firefox display long images incorrectly

Post by Mummu »

Thanks to pr1xsel its somehow connected to Intel GPU and compositing of Gecko Layers
User avatar
patrickjdempsey
Posts: 23686
Joined: October 23rd, 2008, 11:43 am
Location: Asheville NC
Contact:

Re: Firefox display long images incorrectly

Post by patrickjdempsey »

I believe this is an old bug... been around since Firefox 4.0 era. If it's the one I'm thinking of, it also impacts repeating backgrounds on long pages.

Here it is (no comments please!):
https://bugzilla.mozilla.org/show_bug.cgi?id=671302

j.j. (mostly inactive) wrote: 2014-07-20 08:06:19 PDT
Mozilla/5.0 (Windows NT 5.1; rv:33.0) Gecko/20100101 Firefox/33.0
Verified all testcases here are fixed in today's Nightly


Just fixed last month! So consider yourself lucky you've just noticed this because some people have been waiting for 3 years for a fix!
Tip of the day: If it has "toolbar" in the name, it's crap.
What my avatar is about: https://addons.mozilla.org/en-US/seamonkey/addon/sea-fox/
darkw
Posts: 1
Joined: February 23rd, 2015, 6:07 am

Re: Firefox display long images incorrectly

Post by darkw »

I still have this bug on FFx 35.0.1, I have to check very large images on Chrome because Firefox just shows them black after a point.. How can I fix this?
Plastic1
Posts: 3
Joined: February 23rd, 2015, 9:31 am

Re: Firefox display long images incorrectly

Post by Plastic1 »

I checked and I notice the same bug anyone know how to fix this?
Mirex
Posts: 5
Joined: March 14th, 2011, 11:19 am

Re: Firefox display long images incorrectly

Post by Mirex »

I have the same problem when using Intel HD 4600 GPU (with most recent driver - 15.36.14.4080, Win8, Fx 36.0.1). For example with this picture:
http://www.migflug.com/jetflights/wp-co ... risons.jpg
Black part starts from 8192nd pixel row or column.
If both width and height are greater then 8192 - whole Fx goes black (still working, so I can for example blindly: press F2 key, type: restart and press Enter).
When I start Firefox (same user, same profile) with nVidia GPU - all images are displayed correctly.

Initially I thought it was problem only with some JPEGs, but now I noticed that it affects also PNGs, GIFs and BMPs (and probably other image formats) too.
Some transparent PNGs in broken area become grey(-ish) instead of black.

For more test cases you can create simple image with GIMP or MS Paint, set size to: 1000x10000 or 10000x1000 [pixels], alter at least one pixel (most images filled with just one color are displayed fine) and export to / save as: JPEG, PNG, BMP, GIF...

Is this reported somewhere on bugzilla - or should I file a bug? Update: Filed, bug 1143312.

PS: 8192 == 2^13, unlucky 13, mystery solved ;-)
Post Reply