Closed
Bug 351944
Opened 18 years ago
Closed 18 years ago
Printing has issues on Linux
Categories
(Calendar :: Printing, defect)
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: sebo.moz, Unassigned)
Details
When creating a fresh profile I have the following error when trying to print
Error: uncaught exception: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMWindowInternal.outerWidth]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://global/content/dialogOverlay.js :: moveToAlertPosition :: line 70" data: no]
additionally there is a dialog "Printing" (Progress: Preparing...) but nothing happens.
After restart of Sunbird this is not happening.
Steps to reproduce:
1. Create fresh profile
2. create some events (not neccesarry)
3. Go to Print, dont enter title, press print
4. Choose printer (this happens with real printer (CUPS driver) and postscript printer), press print
Results: Dialog (Printing) and Error message. No printing
Note: This is also in error console (only first start of profile):
Failed to load XPCOM component: /home/Schwieger/bin/sunbird20060909/components/libimgicon.so
done using: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20060909 Calendar/0.3a2+
Reporter | ||
Updated•18 years ago
|
Summary: Printing throughs exeption with fresh profile but works after restart → Printing throws exeption with fresh profile but works after restart
Reporter | ||
Comment 1•18 years ago
|
||
Additional information:
1. trying to print for a second time right after the error occured (without restart) gives the following dialog: "You cannot print while in print preview", no additional error message in the console.
2. the error needs to occur once. Just restarting the application with clean profile is not enough. The error occurs on the first try to print. On the second try (after restart) printing works.
Updated•18 years ago
|
Summary: Printing throws exeption with fresh profile but works after restart → Printing throws execption with fresh profile. Works after restart
Comment 2•18 years ago
|
||
Can we find out if this is:
1) Linux-specific
2) related to the other "printing works on 2nd try" bug?
-> qawanted
Keywords: qawanted
Comment 3•18 years ago
|
||
This is really high visibility. We might want this to block 0.3.
Flags: blocking0.3?
Comment 4•18 years ago
|
||
I confirm this issue with new profile and Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a1) Gecko/20060916 Calendar/0.3a2+.
After application restart and using same profile:
Print sometimes worked
Print sometimes crashed, Talkback ID: TB23389291Y, TB23389729X, TB23390078W
Print once failed with the same error and behavior as above
I have not seen this issue on Windows 2000.
Comment 5•18 years ago
|
||
Doing more print tests I saw this issue multiple times with existing profile too.
In console I found the following message: "Trying to position a sizeless window; caller should have called sizeToContent() or sizeTo(). See bug 75649."
Updated•18 years ago
|
Updated•18 years ago
|
Summary: Printing throws execption with fresh profile. Works after restart → Printing has issues on Linux
It sounds like this is a linux specific issue. We know that the Mozilla print subsystem has odd behaviors w.r.t. linux specifically, and we have seen none of these issues on windows or mac. There are a few reproducible cases here for this defect. So, my recommendation is to clear the QAWanted flag.
If you disagree, please comment with what further details you would like QA to provide.
Removing qawanted and calrelnote since this has been qa'd and since we have released 0.3.
Comment 9•18 years ago
|
||
What Andreas and I found out:
The cause seems to be that the dialog is closed too early (even with the document listener patch). If you patch the code keeping it open while printing, all works fine.
Further it seems that multiple printing device contexts have been created which doesn't work on Unix (NS_ERROR_GFX_PRINTER_PRINT_WHILE_PREVIEW issued in gfx/src/ps/nsDeviceContextPS.cpp).
Any guru help appreciated.
BTW: A workaround for this may at least be to change the dialog's "Cancel" mimic to "Close". A bit helpless, I admit...
Comment 10•18 years ago
|
||
I think this is fixed by bug 351944. I'd like QA to verify.
Keywords: qawanted
Comment 12•18 years ago
|
||
This is Fixed by the other printer fixes like bug 351957 and bug 312084.
Very happy to be marking this as WFM.
I used Sunbird: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4pre) Gecko/20070412 Calendar/0.5pre
On Red Hat Enterprise 9. I used a PostScript HP 3020 Laser Jet printer.
Status: NEW → RESOLVED
Closed: 18 years ago
Keywords: qawanted
Resolution: --- → WORKSFORME
Whiteboard: [cal relnote]
Reporter | ||
Comment 13•18 years ago
|
||
Yes, printing works now, due to a workaround introduced in bug 35197. I filed bug 377414 to keep care of the workaround.
You need to log in
before you can comment on or make changes to this bug.
Description
•