Closed Bug 128120 Opened 23 years ago Closed 23 years ago

Printing fails after first invocation

Categories

(Core :: Printing: Output, defect)

x86
Linux
defect
Not set
blocker

Tracking

()

VERIFIED FIXED
mozilla0.9.9

People

(Reporter: bugzilla-mozilla-20220926, Assigned: roland.mainz)

Details

(Keywords: smoketest)

Attachments

(1 obsolete file)

On Linux nightly -sea build 2002022708, I am only able to print once. Subsequent attempts report "You cannot print while in print preview." even if I've never entered print preview since starting the browser. I've tried going into print preview mode (which has a "Print" button that displays the same error dialog) and exiting, but the behaviour is the same.
twalker, please check in tomorrow's smoke builds...
Boris, do you see this problem ?
Yes, I do (build 2002-02-27-08).
Severity: normal → blocker
Keywords: smoketest
This is caused by the patch for bug 127627. Backing it out fixes the problem. Are we forgetting to decrement instance_counter somewhere?
Assignee: rods → Roland.Mainz
That's what I was wondering about (the decrement), I think the best would be to back it out unless there is an easy fix.
The decrement for the instance counter is "done" in the destructor... just wondering... is this maybe a duplicate of bug 121620 ("Closing TABs causes leak of print device context") or another devicecontext leak ? If we leak the device context (or better: all device contexts) and only use them in the order we created them (which seems to be not the case for the PP crashers) - then we can back out the patch for bug 127627 for now. Or better: make the if()-checks assertions...
Accepting bug...
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.9
Some results: 1. I can print multiple times with the Xprint module 2. I can only print once with the PostScript module (the |instance_counter| gets never decremented) Looks we leak something within the gfx/src/ps/ area which finally ends in leakage of the nsDeviceContextPS object... xx@@@@!!... ;-(
Attached patch Patch for 2002-02-27-08-trunk (obsolete) — Splinter Review
Fix was sponsored by the "stop-leaking-objects"-campaign ... :)
Requesting r=/sr=/a= ...
Keywords: patch, review
Comment on attachment 71875 [details] [diff] [review] Patch for 2002-02-27-08-trunk Yes, this is exactly it! r=rods
Attachment #71875 - Flags: review+
a=suresh (sheriff for thursday). Get a sr and checkin.
Comment on attachment 71875 [details] [diff] [review] Patch for 2002-02-27-08-trunk sr=blizzard Get it in.
Attachment #71875 - Flags: superreview+
Comment on attachment 71875 [details] [diff] [review] Patch for 2002-02-27-08-trunk checked in
Attachment #71875 - Attachment is obsolete: true
marking fixed. Thanks Timeless.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Peter can you print successively now ? twalker please try printing a few times in a row in today's linux build.... thanks.
three in a row, no problem marking verified on linux commercial build 2002-03-01-06-trunk
Status: RESOLVED → VERIFIED
Ditto, no problems here.
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: