Closed Bug 1003632 Opened 10 years ago Closed 10 years ago

Some text Image are not drawn. And Background is rectangle instead of hexagon.

Categories

(Core :: Graphics: ImageLib, defect)

31 Branch
x86_64
All
defect
Not set
normal

Tracking

()

RESOLVED INVALID
Tracking Status
firefox30 --- unaffected
firefox31 - affected
firefox32 - affected

People

(Reporter: alice0775, Assigned: glennrp+bmo)

References

Details

(Keywords: regression)

Attachments

(3 files, 2 obsolete files)

Attached image Screenshot
Steps To Reproduce:
1. Open http://www.fishgl.com/
   --- observe LOGO and progress animation

Actual Results:
No Text Image is drawn.
Background shape is Rectangle.

Expected Results:
Some text and [e] image should be drawn.
Background should be hexagon.

Regression window(m-c)
Good:
https://hg.mozilla.org/mozilla-central/rev/5c0673441fc8
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 ID:20140324134644
Bad:
https://hg.mozilla.org/mozilla-central/rev/83332ca5291a
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 ID:20140325051943
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=5c0673441fc8&tochange=83332ca5291a


Regression window(m-i)
Good:
https://hg.mozilla.org/integration/mozilla-inbound/rev/53fcaeb264ba
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 ID:20140324131440
Bad:
https://hg.mozilla.org/integration/mozilla-inbound/rev/db4bcc7605be
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0 ID:20140324141343
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=53fcaeb264ba&tochange=db4bcc7605be

Suspected: Bug 980488 or Bug 987002
I built 29.0 with Bug 987002 patch, and have not reproduced the issue on Win8 x64.
In local build,
Last Good: 74fa10a83ce8
First Bad: 5f91b2fc6812 +db4bcc7605be

Regressed by: Bug 980488
No longer blocks: 987002
Component: Canvas: 2D → ImageLib
Attached file Reduced html
The handling of PNG files with bad CRC checksums changed in libpng-1.6.10.  Both of the base-64-encoded PNG files in the "reduced html" sample have bad checksums in their IEND chunks.
So, is the libpng now correct but less forgiving and there is nothing we can or should do?  Or is the handling changed and we are now not ready for the "failure" and mess things up on our end?
Flags: needinfo?(seth)
Flags: needinfo?(jmuizelaar)
Yes, libpng is more correct and less forgiving.
I extracted one of the two images from the "reduced.html".  Here are the last few characters:
7+xEwgeNydPfIAECyOvsew9q5v8P9VK6p5MN7msAAAAASUVORK5CIIA=

I then ran "pngfix" (from the libpng16 tools directory) and converted it back to base64.  All
but the last 3 characters were the same, and the last 3 were IIA in the bad file and
YII in the fixed file.

fixed base64 image
7+xEwgeNydPfIAECyOvsew9q5v8P9VK6p5MN7msAAAAASUVORK5CYII=

However, after making this fix, reduced.html still only shows me a blue and white rectangle
without any text or hexagonal logo.  The two images look OK when displayed separately from the
html.
Attachment #8416233 - Attachment is obsolete: true
I had a couple of wrong characters in the reduced_fixed.html so have uploaded a corrected file.  Firefox shows it correctly.
I had only fixed the CRC in the logo.  Here is a replacement with the CRC fixed in the text image as well.
Attachment #8416245 - Attachment is obsolete: true
By the way, I'm observing the behavior on Ubuntu 14.04 so am changing the "platform" from Windows 7 to "all".
OS: Windows 7 → All
Assignee: nobody → glennrp+bmo
Flags: needinfo?(seth)
Flags: needinfo?(jmuizelaar)
Glenn, any news on this bug? Thanks
Flags: needinfo?(glennrp+bmo)
The bug is with the CRC in the images.  Fixing the images, as in the v02 attachment, fixes the display.
Flags: needinfo?(glennrp+bmo)
OK. So, that is not really a Firefox issue if I understand correctly. Therefor, untracking.
Resolving INVALID because the bug is in the PNG files, not in Firefox.  Rejecting PNG files that have an incorrect CRC in a critical chunk (such as IEND) is what the PNG spec tells us to do.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: