Closed Bug 226656 Opened 22 years ago Closed 22 years ago

Crash when printing an image [@ nsPostScriptObj::colorimage ]

Categories

(Core :: Printing: Output, defect)

x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: jy.baudy, Unassigned)

References

()

Details

(Keywords: crash)

Crash Data

Attachments

(1 file)

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031029 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6a) Gecko/20031029 Printing the page http://eclipse.org/articles/Article-JET2/jet_tutorial2.html crash the browser with 1.6a and 1.5 series. Reproducible: Always Steps to Reproduce: 1. print 2. 3. Actual Results: Crash. Expected Results: Print the page
wfm both print preview and actual printing using 20031123 on Win2k. Can you post Talkback ID or attach a GDB stack trace ?
Keywords: crash, stackwanted
Attached file GDB stack trace
BTW, my stack trace is from printing PostScript-to-file.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: stackwanted
Summary: Printing crash → Crash when printing an image [@ nsPostScriptObj::colorimage ]
The image in question has a logical size of 649 x 95 pixels, but a physical size of 641 x 87 pixels. The code which copies the image pixel data into the print job is addressing the pixel array as if it were the larger size, and eventually running off the end of the pixel array.
Is there a way to get access to the physical size instead?
nsIImage.get{Width,Height} will return the physical size. The frame offset is added in nsRenderingContextImpl::DrawScaledImage (pavlov: why here?).
The suggested patch in bug 225243 fixes this bug. When Print Previewing the image, I see random pixels at the bottom and right sides (even with the patch from bug 225243 applied)
Depends on: 225243
The patch for bug 225243 contained a fix for this bug.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Crash Signature: [@ nsPostScriptObj::colorimage ]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: