Closed Bug 363770 Opened 18 years ago Closed 18 years ago

Crash [@ nsCOMPtr::nsCOMPtr] on print preview on page with frame element

Categories

(Core :: Printing: Output, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

VERIFIED FIXED

People

(Reporter: martijn.martijn, Assigned: sharparrow1)

References

Details

(Keywords: crash, regression, testcase)

Crash Data

Attachments

(3 files)

See upcoming testcase, which crashes Mozilla on print preview.
First you get an error dialog, if you then click the error dialog away, Mozilla crashes.
This regressed between 2006-12-09 and 2006-12-10:
http://bonsai.mozilla.org/cvsquery.cgi?treeid=default&module=all&branch=HEAD&branchtype=match&dir=&file=&filetype=match&who=&whotype=match&sortby=Date&hours=2&date=explicit&mindate=2006-12-09+03&maxdate=2006-12-10+06&cvsroot=%2Fcvsroot
I guess this is a regression from bug 361844.

Talkback ID: TB27293883Y
nsCOMPtr<nsISOAPCall>::nsCOMPtr<nsISOAPCall>  [mozilla\dist\include\xpcom\nscomptr.h, line 627]
nsPrintEngine::CleanupOnFailure  [mozilla\layout\printing\nsprintengine.cpp, line 1726]
DocumentViewerImpl::PrintPreview  [mozilla\layout\base\nsdocumentviewer.cpp, line 3555]
NS_InvokeByIndex  [mozilla\xpcom\reflect\xptcall\src\md\win32\xptcinvoke.cpp, line 102]
XPCWrappedNative::CallMethod  [mozilla\js\src\xpconnect\src\xpcwrappednative.cpp, line 2162]
Attached file testcase
Attached file testcase
Oops, that was the unminimised testcase, this is the minimised testcase.
Taking; it's a refcounting problem with nsPrintEngine.  I need to look a bit more, though.
Assignee: printing → sharparrow1
Attached patch PatchSplinter Review
I really need to clean up the print error handling code; it's really a mess.

This patch is correct, and stops the crash; I'm still not sure how to deal with the underlying problem.  It appears the <frame> has a subdocument and a frame, but not a view.
Attachment #248717 - Flags: review?(roc)
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
Status: RESOLVED → VERIFIED
These testcase are crashing again in current trunk build on print preview, I filed bug 398265 for it.
Crash Signature: [@ nsCOMPtr::nsCOMPtr]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: