Closed
Bug 414234
Opened 18 years ago
Closed 4 years ago
initPrintSettingsFromPrinter fails with Postscript/default
Categories
(Core :: Widget: Gtk, defect)
Tracking
()
RESOLVED
FIXED
People
(Reporter: ajschult784, Unassigned)
References
Details
With the new gnome print dialog, I'm getting assertions and exceptions when I open the print dialog. I get:
###!!! ASSERTION: null data pointer: 'Not Reached', file /build/andrew/moz-debug/mozilla/xpcom/string/src/nsTSubstring.cpp, line 667
getPrintSettings: [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIPrintSettingsService.initPrintSettingsFromPrinter]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: chrome://global/content/printUtils.js :: anonymous :: line 130" data: no]
###!!! ASSERTION: null data pointer: 'Not Reached', file /build/andrew/moz-debug/mozilla/xpcom/string/src/nsTSubstring.cpp, line 667
nsPrintSettingsGTK.SetPrinterName is being called with "Postscript/Default" (it decides to use "" instead). gtk_print_settings_get_printer returns NULL (==>ASSERTION) and then it calls gtk_print_settings_set_printer and passes an empty string. When GetPrinterName is called, gtk_print_settings_get_printer still returns NULL and ends up using nullPrintName. Then setPrinterDefaultsForSelectedPrinter calls InitPrintSettingsFromPrinter and passes the empty string, so it returns NS_ERROR_FAILURE (==> exception).
I don't have a real printer (I just print to files), so all I have is Postscript/Default. Printing itself works fine. I'm not sure what the expected behavior of the printer name is, but it should be doing this stuff without causing assertions and exceptions.
Updated•18 years ago
|
Component: Printing → Widget: Gtk
QA Contact: printing → gtk
Comment 1•4 years ago
|
||
The bug assignee didn't login in Bugzilla in the last 7 months.
:stransky, could you have a look please?
For more information, please visit auto_nag documentation.
Assignee: ventnor.bugzilla → nobody
Flags: needinfo?(stransky)
Comment 2•4 years ago
|
||
AFAIK outdated.
Status: NEW → RESOLVED
Closed: 4 years ago
Flags: needinfo?(stransky)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•