Crash [@imgRequest::NotifyProxyListener(imgRequestProxy*)] at

VERIFIED FIXED in mozilla1.9.1b2



11 years ago
8 years ago


(Reporter: aguertin+bugzilla, Assigned: joe)


(4 keywords)

Dependency tree / graph
Bug Flags:
blocking1.9.1 +
in-testsuite ?

Firefox Tracking Flags

(Not tracked)


(crash signature, )


(6 attachments, 1 obsolete attachment) crashes on load. If the page is loaded in a background tab, it crashes when the tab is viewed.

Example report: 

Testcase coming, hopefully.
Okay, so apparently this crash isn't quite as reproducible as I thought. I can often, but not always, see it by loading the june 2008 archives in a background tab, then switching to them.

Also, I forgot to mention before, this is seen in both 3.0 on windows and the latest (20080624) nightly on linux
I tested and got it twice here.  (3.0 on Linux)

Both are fairly useless:
0                   @0xffffe410  	

I've actually gotten a similar trace before, I think.
Also sketchy to reproduce on my end.
This happened to me on Facebook with JIT enabled:

Don't know if that helps.
I have reproducible steps.

Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1b2pre) Gecko/20081009 Minefield/3.1b2pre
Reproducibility: Happens every time.

Steps to Reproduce:
1. Visit - [A]
2. Open with new background tab - - [B]
   (It is the first link in "Background" section of [A].)
3. Create another new tab and open - [C]
   (large ~4MB file)
4. Wait till page loaded.
5. switch to the tab [B] opened in 2.
6. Crash.
7. Clear cache & all tabs, then try again. It will crash again.

Crash reports:

I've tested:
3.1b2pre(trunk) - crash
3.0.3 - crash
3.0.3ubuntu - crash
3.0.2 - crash - OK
This image causes crash after discarded and restored.
It has correct frame information (1x1) but corrupt data.
(Acrually it is created by modifying the last byte of 1x1 black image, from 0x82 to 0xff.)
Simple reproducible steps.
1. Open this link with new background tab.
2. Wait 20 seconds.
3. Switch to the tab created in 1.

This does not cause crash with current trunk (after 2008-10-12) because of flow change by Bug 322475. This is for Firefox 3.0.x branch.

Othre broken images:
  (linked from
  (linked from
Posted file nsPNGDecoder log
This is caused by Bug 296818. It cannot restore the discarded frame of partially broken image.
At first if the error occurred in decoding, it does not store data to restore later but |mNumFrames| remains 1. If |imgRequest| want to get frame information after discarding, the frame cannot be restored and Firefox will crash. 

Set environment variable MOZ_DISABLE_IMAGE_DISCARD to 1.

If the error occurred, it should call |imgContainer::RemoveFrame()| to remove erroneous frames appended after |setjmp()|.
Or simply add broken data by |imgContainer::addRestoreData()|.
Which is preferred?
Blocks: 296818
Flags: blocking1.9.1?
Flags: blocking1.9.0.4?
Best to add the broken data, so we have the same behaviour before and after discarding.

Taking so it's on my radar, but feel free to create patches :)
Assignee: nobody → joe
Posted patch Force addRestoreData patch (obsolete) — Splinter Review
This patch applies to both 1.9.0 branch and current trunk.

I'm holiday contributer and very old person, so I don't know mochitest or reftest etc., and no time to learn. Feel free to proceed without me.
Attachment #343920 - Flags: review?
Attachment #343920 - Flags: review? → review?(vladimir)
This may be my last contribution for this bug.
Simple crash test case which applies to both trunk and 1.9.0 branch.

Steps to crash:
1. Enable JavaScript and open this link with current tab.
2. Wait patiently - about 20 seconds.
3. Crash.
Flags: blocking1.9.1? → blocking1.9.1+
Priority: -- → P3
Too late for, moving request to next release.

Vlad or Joe: please review this crash patch.
Flags: wanted1.9.0.x+
Flags: blocking1.9.0.5?
Flags: blocking1.9.0.4?
Attachment #343920 - Flags: superreview?(vladimir)
Attachment #343920 - Flags: review?(vladimir)
Attachment #343920 - Flags: review?(joe)
This patch builds on the previous one, but instead of duplicating the AddDiscardData call, I just move it above the original test. I'm honestly unsure whether this will cause a problem -- Stuart, I'd love to hear your thoughts.

If it doesn't cause any problems, this is how I'd prefer the bug to be fixed.
Attachment #343920 - Attachment is obsolete: true
Attachment #343959 - Flags: superreview?(pavlov)
Attachment #343959 - Flags: review?(vladimir)
Attachment #343920 - Flags: superreview?(vladimir)
Attachment #343920 - Flags: review?(joe)
Posted patch InterdiffSplinter Review
This is an interdiff between the old patch and the new one.
This currently (due to a socorro bug?) holds 70 of the top 100 topcrash spots for 3.1b1.
Keywords: topcrash
It's actually #1 for Firefox 3.1b1 (please use queries for topcrash reports) but isn't in the top 100 for 3.0.3.
Keywords: topcrash
Not blocking, but we'll *definitely* look at a reviewed and baked patch for approval. Please request approval1.9.0.5 when such a patch is ready.
Flags: blocking1.9.0.5?
Stuart, can we get your review here? I'd really like to see this in Firefox 3.1b2 since it's the #1 crash in beta 1.
Attachment #343959 - Flags: superreview?(pavlov) → superreview+
Checked in to Firefox 3.1 -

Leaving this open until it can be backported to 1.9.0.
(In reply to comment #19)
> Leaving this open until it can be backported to 1.9.0.

Drivers prefer bugs that have landed on the trunk to be resolved as fixed and use flags to track branch work instead.
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla1.9.1b2
Is there any reliable testcase? None of the referenced links or the attached testcase crashes todays Minefield on Vista.
Are we sure this is absolutely fixed? I just got this crash on today's build again.

Steps to reproduce:
1) Go to
2) Scroll around on the interactive map for about 2 minutes (at this point, the browser leaks massive amounts of memory. For me, it was using 600MB and I only have 1GB, and it crashes soon after. could be memory corruption.

JIT Chrome is enabled (I don't know if that affect it, but the browswer UI lags right before it crashes)

Crash Report:
Ok, I was able to reproduce this crash with a 3.0.5pre build. I'll try to create a testcase for it so we could have a crashtest for it.

John, it looks like your issue is differnet from this one. Please file a new bug and leave the bug # here. Thanks.
Joe, any way to get a testcase without the need of loading a page in a background tab first? Wouldn't a crashtest suite for libpr0n be helpful? As I can see there is none yet in the repository.

Further there exist a lot of crashes with the same stack as reported in comment 0 with the latest builds.


Doesn't look like it's fixed => reopening.
Resolution: FIXED → ---
Duplicate of this bug: 463926
I can't reproduce this bug on any of the URLs in this bug, and breakpad doesn't surface the URLs. Does anyone have any steps-to-reproduce on current trunk?
You can't reproduce it from Comment 22? It's not just a pageload that crashes the browser. You need to scroll around for a good 2 minutes on the map.
My gut feeling is that just because the top of the stack is the same, comment 22 and on is a different crash and should be a different bug.
Then I'll reopen bug 463926 (Comment 22 and on). Sorry for the confusion.
Please open a new bug for the crashes (once you've got steps to reproduce) and assign it to me. I'm calling this one fixed.
Closed: 11 years ago11 years ago
Resolution: --- → FIXED
Flags: wanted1.9.0.x+
No more crash reports for b2 and b3pre on all platforms/OS. I think we can safely mark this as verified.

Do we have crashtests for imagelib we could add attachment 343921 [details] to?
Flags: in-testsuite?
Not yet, but feel free to add this as the first one?
Crash Signature: [@imgRequest::NotifyProxyListener(imgRequestProxy*)]
You need to log in before you can comment on or make changes to this bug.