Closed Bug 132319 Opened 22 years ago Closed 22 years ago

Browser crashes when machine is low on memory M1RC2 [@ imgContainer::FillWithColor]

Categories

(Core :: Graphics: ImageLib, defect)

x86
Windows NT
defect
Not set
critical

Tracking

()

RESOLVED FIXED
mozilla1.0.1

People

(Reporter: jvr, Assigned: pavlov)

References

Details

(Keywords: crash, topcrash, Whiteboard: [Fixed on Trunk][adt 1 RTM] [Needs a=],custrtm-)

Crash Data

Attachments

(2 files, 1 obsolete file)

This happend to me few times. Each time I had a system warning message telling
that the system was low on memory. Immediately after, browser crashes, even if
it is just open, but not busy. Software version is Mozilla M0.9.9.
Do you have talkback ID?
Severity: normal → critical
Keywords: crash, stackwanted
if this can help, here are Talkback Incident IDs related to the reported bug :
TB4261389K, TB4253418E, TB4215708G
Hope it helps.
Stephen, should I ask you for TB4261389K, TB4253418E, TB4215708G?
Keywords: stackwanted
imgContainer::FillWithColor
[d:\builds\seamonkey\mozilla\modules\libpr0n\src\imgContainer.cpp, line 659]
imgContainer::DoComposite
[d:\builds\seamonkey\mozilla\modules\libpr0n\src\imgContainer.cpp, line 532]
imgContainer::Notify
[d:\builds\seamonkey\mozilla\modules\libpr0n\src\imgContainer.cpp, line 458]
nsTimerImpl::Process [d:\builds\seamonkey\mozilla\xpcom\threads\nsTimerImpl.cpp,
line 342]
handleMyEvent [d:\builds\seamonkey\mozilla\xpcom\threads\nsTimerImpl.cpp, line 381]
PL_HandleEvent [d:\builds\seamonkey\mozilla\xpcom\threads\plevent.c, line 591]
PL_ProcessPendingEvents [d:\builds\seamonkey\mozilla\xpcom\threads\plevent.c,
line 524]
_md_EventReceiverProc [d:\builds\seamonkey\mozilla\xpcom\threads\plevent.c, line
1072] 
Jeremie: Are you able to reproduce this bug with Mozilla Release Candidate 1? 
Any newer talkback?
http://ftp.mozilla.org/pub/mozilla/releases/mozilla1.0rc1/
Assignee: asa → Matti
QA Contact: doron → imajes-qa
Summary: Browser crashes when machine is low on memory → Browser crashes when machine is low on memory [@ imgContainer::FillWithColor]
why not reassign it to the correct component ?

-> Imagelib (new based on the stack)
Assignee: Matti → pavlov
Status: UNCONFIRMED → NEW
Component: Browser-General → ImageLib
Ever confirmed: true
QA Contact: imajes-qa → tpreston
Target Milestone: --- → Future
I've installed Moz1.0rc1 (with talkback). I'll let you know if new crashes occur.
OK, I think I've got one. Have a look at talkback ID TB5633958K.
What a good opportunity to clean up FillWithColor()

Changes in FillWithColor with this patch:

- New memory allocation reduced to one row of image (bpr).  FillWithColor used
to allocate enough memory to hold the whole image, even though it only used one
row of that memory.

- Validation of memory allocation.  If failed, function exits.

- Check if R, G, & B are the same.  If they are, do a memset and skip memory
allocation alltogether.

- Got rid of some duplicate variables.
tor can you sr=?
Comment on attachment 81547 [details] [diff] [review]
Cleanup of imgContainer::FillWithColor

r=pavlov.

style nitpicks for libpr0n:
+	 }
+	 else	    
+	 {	  

should be:
+	 } else {
Attachment #81547 - Flags: review+
Comment on attachment 81547 [details] [diff] [review]
Cleanup of imgContainer::FillWithColor

sr=tor

minor nit: rename "foo" to "tmpRow" or something else that indicates its
purpose.
Attachment #81547 - Flags: superreview+
changes as per reviews, plus I removed the trailing spaces.
Attachment #81547 - Attachment is obsolete: true
Comment on attachment 81634 [details] [diff] [review]
Cleanup of imgContainer::FillWithColor

carrying over r= and sr=
Attachment #81634 - Flags: superreview+
Attachment #81634 - Flags: review+
Target Milestone: Future → mozilla1.0.1
checked in fix for paper@animecity.nu to the trunk.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Pavlov, these crashes are still happening in the release candidates. This fix
has benn on the Trunk for two weeks and has stopped the crshes there. We need
to get this fix on the branch.
Keywords: nsbeta1, topcrash
Summary: Browser crashes when machine is low on memory [@ imgContainer::FillWithColor] → Browser crashes when machine is low on memory M1RC2 [@ imgContainer::FillWithColor]
Whiteboard: [Fixed on Trunk]
Terri, can you verify this on the trunk.  Thx.

I have tried to crash this using win XP trunk build 2002052208, I followed
several of the crash comments and this seems to be fixed
Seems like it has been verified on trunk. approving on adt behalf --paul really:)
Keywords: nsbeta1adt1.0.0, nsbeta1+
Whiteboard: [Fixed on Trunk] → [Fixed on Trunk][adt 1]
Bug 143333 contains a patch for a regression this bug fix caused.  It also has
been checked into the trunk and confirmed fixed.  You'll probably want it on the
branch as well.
adt1.0.0+ (on ADT's behalf) for approval to checkin to the 1.0 branch, pending
Drivers' approval and the checkin of the fix for Bug 143333.  After, checking
in, please add the fixed1.0 keyword.
Keywords: approval
Whiteboard: [Fixed on Trunk][adt 1] → [Fixed on Trunk][adt 1 RTM] [Needs a=]
Depends on: 143333
i have both fixes in my branch tree ready to check in as soon as I get drivers
approval for them
adding the adt1.0.0+ that Jaime mentioned in a previous comment.
Keywords: adt1.0.0adt1.0.0+
Whiteboard: [Fixed on Trunk][adt 1 RTM] [Needs a=] → [Fixed on Trunk][adt 1 RTM] [Needs a=],custrtm-
changing to adt1.0.1+ for checkin to the 1.0 branch.  Please get drivers
approval before checking in.
Keywords: adt1.0.0+adt1.0.1+
adding mozilla1.0.1 nomination.
Keywords: mozilla1.0.1
Attachment #81634 - Flags: approval+
please checkin to the 1.0.1 branch. once there, remove the "mozilla1.0.1+"
keyword and add the "fixed1.0.1" keyword.
has this been checked into branch?
Fixed on branch.
Need Bug 143333 checked into branch.  Otherwise Linux people won't be happy.
I will wait to verify for branch until 143333 is fixed (I just removed branch
keyword 'cause the branch is not fixed for that bug)
Crash Signature: [@ imgContainer::FillWithColor]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: