Closed Bug 1219992 Opened 4 years ago Closed 3 years ago

1,500 instances of "RasterImage::Init failed" emitted from image/ImageFactory.cpp during linux64 debug testing

Categories

(Core :: ImageLib, defect)

defect
Not set

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox45 --- affected
firefox49 --- fixed

People

(Reporter: erahm, Assigned: erahm)

References

(Blocks 1 open bug)

Details

(Whiteboard: [gfx-noted])

Attachments

(2 files)

> 1481 [NNNNN] WARNING: RasterImage::Init failed: file image/ImageFactory.cpp, line 109

This warning [1], reworked in bug 1194906, shows up in the following test suites:

> mozilla-central_ubuntu64_vm-debug_test-mochitest-3-bm115-tests1-linux64-build60.txt:161
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-4-bm117-tests1-linux64-build1.txt:150
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-e10s-4-bm114-tests1-linux64-build4.txt:143
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-4-bm68-tests1-linux64-build2.txt:143
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-5-bm113-tests1-linux64-build2.txt:76
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-2-bm51-tests1-linux64-build7.txt:75
> mozilla-central_ubuntu64_vm-debug_test-mochitest-2-bm53-tests1-linux64-build7.txt:73
> mozilla-central_ubuntu64_vm-debug_test-mochitest-5-bm125-tests1-linux64-build3.txt:71
> mozilla-central_ubuntu64_vm-debug_test-mochitest-1-bm114-tests1-linux64-build5.txt:44
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-browser-chrome-5-bm68-tests1-linux64-build20.txt:42
> mozilla-central_ubuntu64_vm-debug_test-mochitest-browser-chrome-1-bm124-tests1-linux64-build4.txt:39
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-3-bm68-tests1-linux64-build6.txt:37
> mozilla-central_ubuntu64_vm-debug_test-mochitest-4-bm117-tests1-linux64-build9.txt:36
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-1-bm122-tests1-linux64-build3.txt:34
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-e10s-1-bm113-tests1-linux64-build6.txt:24
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-1-bm116-tests1-linux64-build6.txt:23
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-browser-chrome-3-bm68-tests1-linux64-build55.txt:22
> mozilla-central_ubuntu64_vm-debug_test-mochitest-browser-chrome-6-bm51-tests1-linux64-build2.txt:17
> mozilla-central_ubuntu64_vm-debug_test-mochitest-browser-chrome-3-bm116-tests1-linux64-build17.txt:16
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-e10s-6-bm124-tests1-linux64-build6.txt:14
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-6-bm121-tests1-linux64-build8.txt:14
> mozilla-central_ubuntu64_vm-debug_test-mochitest-browser-chrome-7-bm54-tests1-linux64-build4.txt:14
> mozilla-central_ubuntu64_vm-debug_test-mochitest-browser-chrome-2-bm121-tests1-linux64-build9.txt:14
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-browser-chrome-4-bm116-tests1-linux64-build9.txt:13
> mozilla-central_ubuntu64_vm-debug_test-mochitest-browser-chrome-5-bm115-tests1-linux64-build9.txt:13
> mozilla-central_ubuntu64_vm-debug_test-mochitest-other-bm116-tests1-linux64-build7.txt:12
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-browser-chrome-7-bm114-tests1-linux64-build8.txt:11
> mozilla-central_ubuntu64_vm-debug_test-mochitest-devtools-chrome-3-bm125-tests1-linux64-build4.txt:10
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-e10s-3-bm54-tests1-linux64-build6.txt:9
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-3-bm118-tests1-linux64-build5.txt:9
> mozilla-central_ubuntu64_vm-debug_test-mochitest-devtools-chrome-6-bm122-tests1-linux64-build4.txt:9
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-e10s-2-bm117-tests1-linux64-build2.txt:8
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-browser-chrome-2-bm68-tests1-linux64-build4.txt:8
> mozilla-central_ubuntu64_vm-debug_test-mochitest-devtools-chrome-4-bm118-tests1-linux64-build2.txt:8
> mozilla-central_ubuntu64_vm-debug_test-mochitest-browser-chrome-4-bm114-tests1-linux64-build21.txt:8
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-e10s-5-bm67-tests1-linux64-build4.txt:7
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-5-bm117-tests1-linux64-build12.txt:7
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-2-bm68-tests1-linux64-build34.txt:7
> mozilla-central_ubuntu64_vm-debug_test-mochitest-devtools-chrome-5-bm124-tests1-linux64-build4.txt:7
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-browser-chrome-1-bm68-tests1-linux64-build14.txt:5
> mozilla-central_ubuntu64_vm-debug_test-mochitest-devtools-chrome-8-bm68-tests1-linux64-build3.txt:5
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-e10s-8-bm115-tests1-linux64-build5.txt:4
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-8-bm52-tests1-linux64-build9.txt:4
> mozilla-central_ubuntu64_vm-debug_test-crashtest-e10s-bm116-tests1-linux64-build33.txt:4
> mozilla-central_ubuntu64_vm-debug_test-crashtest-bm54-tests1-linux64-build36.txt:4
> mozilla-central_ubuntu64_vm-debug_test-reftest-3-bm117-tests1-linux64-build2.txt:3
> mozilla-central_ubuntu64_vm-debug_test-mochitest-e10s-browser-chrome-6-bm118-tests1-linux64-build4.txt:3
> mozilla-central_ubuntu64_vm-debug_test-mochitest-devtools-chrome-7-bm115-tests1-linux64-build2.txt:3
> mozilla-central_ubuntu64_vm-debug_test-mochitest-devtools-chrome-1-bm68-tests1-linux64-build23.txt:3
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-reftests-e10s-bm124-tests1-linux64-build2.txt:2
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-reftests-bm116-tests1-linux64-build13.txt:2
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-e10s-7-bm118-tests1-linux64-build3.txt:2
> mozilla-central_ubuntu64_vm-debug_test-web-platform-tests-7-bm117-tests1-linux64-build3.txt:2
> mozilla-central_ubuntu64_vm-debug_test-mochitest-gl-bm54-tests1-linux64-build3.txt:2
> mozilla-central_ubuntu64_vm-debug_test-reftest-e10s-2-bm120-tests1-linux64-build24.txt:1
> mozilla-central_ubuntu64_vm-debug_test-reftest-e10s-1-bm121-tests1-linux64-build1.txt:1
> mozilla-central_ubuntu64_vm-debug_test-reftest-2-bm68-tests1-linux64-build1.txt:1
> mozilla-central_ubuntu64_vm-debug_test-mochitest-push-bm68-tests1-linux64-build22.txt:1
> mozilla-central_ubuntu64_vm-debug_test-mochitest-devtools-chrome-2-bm124-tests1-linux64-build0.txt:1

It shows up in 502 tests. A few of the most prevalent:

> 54 - dom/manifest/test/browser_ManifestObtainer_obtain.js
> 40 - /html/semantics/embedded-content/the-img-element/srcset/parse-a-srcset-attribute.html
> 36 - /html/infrastructure/urls/resolving-urls/query-encoding/windows-1252.html
> 36 - /html/infrastructure/urls/resolving-urls/query-encoding/windows-1251.html
> 36 - /html/infrastructure/urls/resolving-urls/query-encoding/utf-8.html
> 36 - /html/infrastructure/urls/resolving-urls/query-encoding/utf-16le.html
> 36 - /html/infrastructure/urls/resolving-urls/query-encoding/utf-16be.html
> 19 - layout/style/test/test_value_computation.html
> 16 - Shutdown
> 14 - toolkit/mozapps/extensions/test/browser/test-window/browser_bug591465.js

[1] https://hg.mozilla.org/mozilla-central/annotate/1fbc958f7557/image/ImageFactory.cpp#l109
That many images failed to Init does seem odd.
FWIW I saw this live while investigating bug 1219784.
Whiteboard: [gfx-noted]
This continues to be the most verbose warning during testing in imagelib.
It's also part of the noise during a normal startup of a debug build, that noise being annoying when trying to find the real cause of a mystery startup crash...
See Also: → 1265744
In case anyone has time to look at this again, I made the warning print out the URL of the image that caused the failure in bug 1265744.
Depends on: 1265744
Attached file raster_image_init.txt
Various URLs spewed from RasterImage::Init warnings.
Timothy, does this list in attachment 8755085 [details] help at all? 

FWIW in local testing I noticed this message when loading a page hosted locally, it was loading a fav.ico that didn't exist.
Flags: needinfo?(tnikkel)
I just started mochitest and debugged the first of this warning that came up. It was because the mime type for the image was text/html. This is the mimetype after sniffing, so it's not just the mimetype being set incorrect for a valid image. We should silence the warning.
Flags: needinfo?(tnikkel)
Attachment #8755091 - Flags: review?(tnikkel)
Assignee: nobody → erahm
Status: NEW → ASSIGNED
Comment on attachment 8755091 [details] [diff] [review]
Remove RasterImage::Init failed warning

Thanks.
Attachment #8755091 - Flags: review?(tnikkel) → review+
Keywords: checkin-needed
https://hg.mozilla.org/mozilla-central/rev/c172b95c757a
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.