Closed Bug 1368999 Opened 7 years ago Closed 7 years ago

remove or fix WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: toolkit/components/places/nsFaviconService.cpp, line 776

Categories

(Toolkit :: Places, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla55

People

(Reporter: mayhemer, Assigned: mak)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxsearch])

WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: toolkit/components/places/nsFaviconService.cpp, line 776
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: toolkit/components/places/nsFaviconService.cpp, line 472
WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: toolkit/components/places/nsFaviconService.cpp, line 582
m-c@39d5cc0fda5e
I was looking into this the other day, I need to understand which icon causes them and I couldn't reproduce it consistently enough yet. It's possible we have an invalid icon in the product code, since the warnings come from imgTools being unable to convert a payload.
These warnings are positive, they are showing an issue, so we should fix the issue rather than removing them.  Indeed I didn't rush a conversion of Places from NS_ENSURE_SUCCESS yet, since in the last years we got far more bugs fixed thanks to these warnings than false positives.

I'll try to have a look at this once release priorities are gone.
Assignee: nobody → mak77
Status: NEW → ASSIGNED
Priority: -- → P3
Whiteboard: [fxsearch]
I was able to repro on windows with a debug build with:

./mach test toolkit/components/mozprotocol/tests/browser_mozprotocol.js

and a local patch applied (not sure you need it to repro).  If you can't find it, I can give some more info.
I think just running the test infra triggers these NS_ENSURE failures.  I can see them before the first TEST-START.  No local patches.
Summary: remove of fix WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: toolkit/components/places/nsFaviconService.cpp, line 776 → remove or fix WARNING: NS_ENSURE_SUCCESS(rv, rv) failed with result 0x80004005: toolkit/components/places/nsFaviconService.cpp, line 776
LOL, the problem is STILL the icon I thought to have fixed in bug 1346736!
While I fixed a typo in the mimeType, there's more there, the payload is not an ico at all, it's a png.
Changing that to image/png solves the warnings as well. Since the icon lies to us, we try to decode it as an ico, not a png, and the decoding fails.
Depends on: 1368451
Should now be fixed.
Target Milestone: --- → mozilla55
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Thanks!
You need to log in before you can comment on or make changes to this bug.