Closed Bug 278420 Opened 20 years ago Closed 20 years ago

crash if I select menu items File->Page setup or File->Print [@ GlobalPrinters::InitializeGlobalPrinters]

Categories

(Core :: Printing: Output, defect)

1.7 Branch
x86
Linux
defect
Not set
critical

Tracking

()

RESOLVED DUPLICATE of bug 281367

People

(Reporter: reccmo, Unassigned)

References

Details

(Keywords: crash)

Crash Data

User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20040913

When launched on my Redhat core 2 Mozilla 1.7.5 crashes consequently on every
attempt to select menu items File->Page setup or File->Print. This happens
whether I use a user defined print command set up using about:config or I use
the default print command. My pc is equipped with a HP LaserJet 1100A connected
to the serial port.

I have also Mozilla 1.7.5 installed on another linux pc using Redhat 7.3. On
this pc Mozilla does *not* crash on print/page setup.

Reproducible: Always

Steps to Reproduce:
1. Select print/page setup
2. Restart Mozilla 
3. Select print/page setup

Actual Results:  
Crash every time
*** Bug 278450 has been marked as a duplicate of this bug. ***
The Build Identifier identifier referenced in comment #1 is not correct. It
should be

Mozilla 1.7.5
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217

I ought to add that on my Redhat core 2 pc I've chosen to keep my Mozilla
installation updated by means of the tar ball installation,
http://ftp.mozilla.org/pub/mozilla.org/mozilla/releases/mozilla1.7.5/mozilla-i686-pc-linux-gnu-1.7.5.tar.gz
rather than through the Redhat rpm distributions (up2date).
This works for me on my Mandrake 10 system.

Christian, have you filed a talkback report for any of these crashes? Could you
provide a talkback ID? I'd like to verify whether you're experiencing the
GlobalPrinters problem or something else.
Since the problem with crash upon print request is invalidating I run mozilla
1.7.3 for my daily use.

However, I temporarily switched to 1.7.5 in order to provoke another crash. I
got the expected crash and a talback message with ID TB3343775X was sent a few
minutes ago.
Incident ID: 3343775
Stack Signature	GlobalPrinters::InitializeGlobalPrinters() 70dc585a
Product ID	Mozilla17
Build ID	2004121706
Trigger Time	2005-01-28 04:22:14.0
Platform	LinuxIntel
Operating System	Linux 2.6.5-1.358
Module	libgfx_gtk.so + (00017193)
URL visited	
User Comments	
Since Last Crash	0 sec
Total Uptime	21 sec
Trigger Reason	SIGSEGV: Segmentation Fault: (signal 11)
Source File, Line No.
/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/gfx/src/gtk/nsDeviceContextSpecG.cpp,
line 117
Stack Trace 	
GlobalPrinters::InitializeGlobalPrinters() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/gfx/src/gtk/nsDeviceContextSpecG.cpp,
line 117]
GlobalPrinters::GetDefaultPrinterName() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/gfx/src/gtk/nsDeviceContextSpecG.cpp,
line 1232]
nsPrinterEnumeratorGTK::GetDefaultPrinterName() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/gfx/src/gtk/nsDeviceContextSpecG.cpp,
line 699]
nsPrintOptions::GetDefaultPrinterName() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/gfx/src/nsPrintOptionsImpl.cpp,
line 710]
XPTC_InvokeByIndex()
XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode)() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/js/src/xpconnect/src/xpcwrappednative.cpp,
line 2939]
XPC_WN_GetterSetter() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp,
line 1884]
js_Invoke() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/js/src/jsinterp.c,
line 941]
js_InternalInvoke() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/js/src/jsinterp.c,
line 1035]
js_InternalGetOrSet() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/js/src/jsinterp.c,
line 1078]
js_GetProperty() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/js/src/jsobj.c,
line 2771]
js_Interpret() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/js/src/jsinterp.c,
line 2807]
js_Invoke() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/js/src/jsinterp.c,
line 958]
js_InternalInvoke() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/js/src/jsinterp.c,
line 1035]
JS_CallFunctionValue() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/js/src/jsapi.c,
line 3705]
nsJSContext::CallEventHandler() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/dom/src/base/nsJSEnvironment.cpp,
line 1299]
nsJSEventListener::HandleEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/dom/src/events/nsJSEventListener.cpp,
line 177]
nsEventListenerManager::HandleEventSubType() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/content/events/src/nsEventListenerManager.cpp,
line 1436]
nsEventListenerManager::HandleEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/content/events/src/nsEventListenerManager.cpp,
line 1529]
nsXULElement::HandleDOMEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/content/xul/content/src/nsXULElement.cpp,
line 2841]
nsXULElement::HandleDOMEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/content/xul/content/src/nsXULElement.cpp,
line 710]
PresShell::HandleDOMEventWithTarget() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/layout/html/base/src/nsPresShell.cpp,
line 6116]
nsButtonBoxFrame::MouseClicked() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/layout/xul/base/src/nsButtonBoxFrame.cpp,
line 65]
nsButtonBoxFrame::HandleEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/layout/xul/base/src/nsButtonBoxFrame.cpp,
line 146]
PresShell::HandleEventInternal() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/layout/html/base/src/nsPresShell.cpp,
line 6083]
PresShell::HandleEventWithTarget() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/layout/html/base/src/nsPresShell.cpp,
line 5965]
nsEventStateManager::CheckForAndDispatchClick() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/content/events/src/nsEventStateManager.cpp,
line 2985]
nsEventStateManager::PostHandleEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/content/events/src/nsEventStateManager.cpp,
line 1973]
PresShell::HandleEventInternal() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/layout/html/base/src/nsPresShell.cpp,
line 710]
PresShell::HandleEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/layout/html/base/src/nsPresShell.cpp,
line 5901]
nsViewManager::HandleEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/view/src/nsViewManager.cpp,
line 710]
nsViewManager::DispatchEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/view/src/nsViewManager.cpp,
line 2066]
HandleEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/view/src/nsView.cpp,
line 77]
nsWidget::DispatchEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/widget/src/gtk/nsWidget.cpp,
line 1496]
nsWidget::DispatchWindowEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/widget/src/gtk/nsWidget.cpp,
line 1386]
nsWidget::DispatchMouseEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/widget/src/gtk/nsWidget.cpp,
line 1570]
nsWidget::OnButtonReleaseSignal() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/widget/src/gtk/nsWidget.cpp,
line 1987]
nsWindow::OnButtonReleaseSignal() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/widget/src/gtk/nsWindow.cpp,
line 1656]
nsWindow::HandleGDKEvent() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/widget/src/gtk/nsWindow.cpp,
line 1742]
dispatch_superwin_event() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/widget/src/gtk/nsGtkEventHandler.cpp,
line 918]
handle_gdk_event() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/widget/src/gtk/nsGtkEventHandler.cpp,
line 800]
libgdk-1.2.so.0 + 0x224b5 (0x0097b4b5)
libglib-1.2.so.0 + 0x1195b (0x008ea95b)
libglib-1.2.so.0 + 0x11e47 (0x008eae47)
libglib-1.2.so.0 + 0x120f5 (0x008eb0f5)
libgtk-1.2.so.0 + 0xa453f (0x00be353f)
nsAppShell::Run() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/widget/src/gtk/nsAppShell.cpp,
line 319]
nsAppShellService::Run() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/xpfe/appshell/src/nsAppShellService.cpp,
line 524]
main1() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/xpfe/bootstrap/nsAppRunner.cpp,
line 710]
main() 
[/builds/tinderbox/SeaMonkey-Branch/Linux_2.4.18-3_Clobber/mozilla/xpfe/bootstrap/nsAppRunner.cpp,
line 1784]
libc.so.6 + 0x14ad4 (0x00619ad4)
Severity: normal → critical
Keywords: crash
Summary: crash if I select menu items File->Page setup or File->Print → crash if I select menu items File->Page setup or File->Print [@ GlobalPrinters::InitializeGlobalPrinters]
Christian, thanks for the talkback. This issue seems to be confined to the
branches; I can't find any similar reports for the 1.8 alphas. If you're
willing, it'd be helpful for you to try upgrading to mozilla 1.8a6 and report
whether you experience the same problem.

Judging from the timeframe when these reports started appearing in
talkback-public, this must be related to the CUPS support added to the 1.7 and
aviary branches. Both of the actions mentioned (calling page setup or print)
trigger a printer enumeration which tries to load and call the the CUPS library.
The CUPS support in the trunk was reorganized, which might explain why it's not
causing the same problem.
Assignee: general → printing
Status: UNCONFIRMED → NEW
Ever confirmed: true
QA Contact: general
Mozilla 1.8a6 installed from the tar-ball distribution works for me.
Bug 281367 has a likely diagnosis and a patch for this.

*** This bug has been marked as a duplicate of 281367 ***
Status: NEW → RESOLVED
Closed: 20 years ago
Depends on: 281367
Resolution: --- → DUPLICATE
Crash Signature: [@ GlobalPrinters::InitializeGlobalPrinters]
You need to log in before you can comment on or make changes to this bug.