Closed Bug 1621283 Opened 5 years ago Closed 5 years ago

Assertion failure: mData in nsWebPDecoder.cpp:48

Categories

(Core :: Graphics: ImageLib, defect, P3)

defect

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox-esr68 --- unaffected
firefox76 --- wontfix
firefox77 --- wontfix
firefox78 --- fixed

People

(Reporter: bc, Assigned: aosmond)

References

()

Details

(Keywords: assertion)

Attachments

(2 files)

  1. https://www.iplaysoft.com/windows7-msdn-iso.html

  2. Assert Windows only

Assertion failure: mData, at /builds/worker/checkouts/gecko/image/decoders/nsWebPDecoder.cpp:48
#01: mozilla::image::nsWebPDecoder::DoDecode(mozilla::image::SourceBufferIterator&, mozilla::image::IResumable*) [image/decoders/nsWebPDecoder.cpp:110]
#02: mozilla::image::Decoder::Decode(mozilla::image::IResumable*) [image/Decoder.cpp:133]
#03: mozilla::image::MetadataDecodingTask::Run() [image/IDecodingTask.cpp:152]
#04: mozilla::image::DecodePoolWorker::Run() [image/DecodePool.cpp:276]
#05: nsThread::ProcessNextEvent(bool, bool*) [xpcom/threads/nsThread.cpp:1222]

Bughunter first saw this on 2020-02-29.

Windows only isn't quite true as bughunter also so this once with Ubuntu 19.10 debug asan build on https://anique.jp/.

Bob, do you have a crash report for this?

Flags: needinfo?(bob)
Flags: needinfo?(aosmond)
Priority: -- → P3

yep

Flags: needinfo?(bob)

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3

I think this might happen if you hit an OOM which sets an error in the SourceBuffer. We hit COMPLETE right away without any data pointer.

Assignee: nobody → aosmond
Status: NEW → ASSIGNED
Flags: needinfo?(aosmond)
OS: Windows → All
Hardware: Unspecified → All

If we hit an OOM or similar when creating a SourceBuffer for an image,
we will hit COMPLETE immediately as the next read that goes to the
SourceBuffer from a SourceBufferIterator. If the iterator has yet to do
a read, that means it will hit COMPLETE right away without giving
anything. This patch fixes the WebP decoder to handle this case, as well
as adds test cases for all of the current image decoders.

Pushed by aosmond@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fed3695b6b6a Ensure the WebP image decoder can handle source buffer errors. r=tnikkel
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
Flags: in-testsuite+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: