Closed Bug 79228 Opened 23 years ago Closed 23 years ago

Cannot print more than once with Xprint...

Categories

(Core Graveyard :: Printing: Xprint, defect)

All
Linux
defect
Not set
major

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: roland.mainz, Assigned: roland.mainz)

References

Details

Xprint module currently has problems with printing multiple times because
information from Xserver (Xprt) is cached somewhere in Mozilla which is invalid
after XCloseDisplay()...
This usually causes random crashes and tons of X errors.

Solution:
Purge any cached information (font XIDs etc.) from Mozilla after/before closing
the connection to Xprt.

Current list of things ToDo to get rid of this issue:
- DeviceContextImpl::FlushFontCache(); // in nsDeviceContextXp::SetSpec()
- resetting global vars in nsFontMetricsXP.cpp 
- deleting old nsXPrintContexts objects and create new, clean nsXPrintContexts
- set any Display/Screen/XPContext reference to NULL/nsnull
- ... !?
Assign to Roland
Assignee: katakai → Roland.Mainz
QA Contact: Roland.Mainz → katakai
Depends on: 57820
Blocks: 85527
Fix may[1] be in bug 83242...

[1]=I didn't checked the code in detail - but all the problems are magically
"gone"... :-)
Depends on: 83242
Fixed by patch in bug bug 83242...
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Verified on trunk 2002011408 build.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.