Closed Bug 870436 Opened 11 years ago Closed 9 years ago

6.2mb reported by DMD involving DecodeWorker::DecodeSomeOfImage and gfxPlatform::OptimizeImage

Categories

(Core :: Graphics: ImageLib, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: mccr8, Unassigned)

References

Details

(Whiteboard: [MemShrink:P2])

Attachments

(1 file)

Attached file DMD stacks
This is based on a DMD report in bug 870319, on a Unagi device that couldn't launch the home screen any more after running monkeytest for a while.  Or something like that.

About 6.2mb total of unreported memory, about 17% of the heap, about 32% of unreported memory.

This is a summarized version of the stacks, with COMPtr goop etc. deleted.

the stacks all start with:
   gfxImageSurface
   gfxPlatform::OptimizeImage(gfxImageSurface*, gfxASurface::gfxImageFormat)
   mozilla::image::RasterImage::DecodingComplete()

Then for JPEG:
   mozilla::image::nsJPEGDecoder::NotifyDone()
   mozilla::image::term_source(jpeg_decompress_struct*)
   jpeg_finish_decompress
   mozilla::image::nsJPEGDecoder::WriteInternal(char const*, unsigned int)

Then for PNG:
   mozilla::image::nsPNGDecoder::end_callback(png_struct_def*, png_info_def*)
   MOZ_PNG_push_have_end
   MOZ_PNG_push_read_chunk
   MOZ_PNG_proc_some_data
   MOZ_PNG_process_data
   mozilla::image::nsPNGDecoder::WriteInternal(char const*, unsigned int)

Finally, they end up like this:
   mozilla::image::Decoder::Write(char const*, unsigned int)
   mozilla::image::RasterImage::WriteToDecoder(char const*, unsigned int)
   mozilla::image::RasterImage::DecodeSomeData(unsigned int)
   mozilla::image::RasterImage::DecodeWorker::DecodeSomeOfImage(mozilla::image::RasterImage*, mozilla::image::RasterImage::DecodeWorker::DecodeType)

I've attached the more complete DMD records for these stacks.  There are three different stacks.
Summary: heap-unclassified involving DecodeWorker::DecodeSomeOfImage and gfxPlatform::OptimizeImage → 6.2mb reported by DMD involving DecodeWorker::DecodeSomeOfImage and gfxPlatform::OptimizeImage
Whiteboard: [MemShrink] → [MemShrink:P2]
This is quite old, so I'm just going to close it.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: