Closed Bug 408568 Opened 17 years ago Closed 4 years ago

Extremely wide (but valid) JPG "cannot be displayed because it contains errors"

Categories

(Core :: Graphics: ImageLib, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: netrolller.3d, Unassigned)

References

()

Details

The image at the URL is 40784px wide and 100px tall. It's a perfectly valid and well-formed JPG, any other program would display it correctly. However, in Mozilla, this produces "The image cannot be displayed because it contains errors". My guess is that the address space for image sizes is too small to accommodate images larger than 16384 or maybe 32768 pixels in either dimensions. (Note however that a 4078*1001px JPG displays fine, even though it's about the same megapixel count. Even a 4096*3072px image can be displayed, which is much larger.)
Tested in 2.0.0.11 on OpenSUSE/i386, should have been UNCONFIRMED because it needs to be tested on trunk.
"The image cannot be displayed because it is too large"? :)
No, the error shouldn't appear at all, as on 3.0b1/Leopard 10.5.1, the image displays fine, just checked. (Not sure about Windows and 3.0b1/Linux.)
It also displays fine in 2.0.0.11/WinXP (although there is a problem with autozoom, zooming in and back out makes the image disappear until reload).
This bug is caused by the Skype add-on. Disabling the add-on, closing Firefox, and reopening Firefox allows jpgs to open normally. This is on a windows XP system.
Rick: that's a different bug. This one is Linux-specific. (BTW the situation is much worse in 3.0rc1/Linux: it crashes without Breakpad popping up!)
I have not add-on but i can't display very big jpg FF 3.0.5 "cannot be displayed because it contains errors" whit Explorer7 it's perfect http://upload.wikimedia.org/wikipedia/commons/2/21/Earthlights_dmsp.jpg windows xp sp3
(In reply to comment #7) > I have not add-on but i can't display very big jpg FF 3.0.5 "cannot be > displayed because it contains errors" whit Explorer7 it's perfect > http://upload.wikimedia.org/wikipedia/commons/2/21/Earthlights_dmsp.jpg > windows xp sp3 Unrelated issue - this is for Linux. Fx2.0x/Linux gives "image contains errors", Fx3.0x/Linux silently crashes, Fx3.1beta/Linux not tested. BTW the Earthlights image renders correctly for me in Fx3.1b2 on Windows 7 beta.
Product: Core → Core Graveyard
Component: Image: Painting → ImageLib
Product: Core Graveyard → Core
QA Contact: image.gfx → imagelib
I still observe this problem in FF 28.0a1. =\
The earthlights image WFM initially on linux, but after zooming back out, it has quite bad visual corruption. Trying it in a DEBUG no-prefs-changed build shows it working fine, so it might be corruption caused by forcing OGL layers on.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.