Closed Bug 302473 Opened 19 years ago Closed 15 years ago

crash on CTRL+P with no printer [@ nsPrintEngine::FirePrintCompletionEvent ]

Categories

(Core :: Printing: Output, defect)

1.7 Branch
x86
Windows 2000
defect
Not set
critical

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: quake2iasi, Unassigned)

Details

(Keywords: crash, Whiteboard: [needs retesting on Windows 2000])

Crash Data

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.10) Gecko/20050716

I've pressed a mail tray icon from Yahoo Messenger to see what I have received.
Immediately I've pressed CTRL+P to access Winamp's Preferences window, but
Mozilla was already the active program and intercepted the keys. The Mozilla's
main window wasn't displayed when it intercepted the keys. After the window
appeared, a small window appeared informing me that no printer was found (it's
true, I have no printer installed) but after pressing ok to continue, Mozilla
crashed. I wouldn't have posted this if the Quality Feedback Agent wasn't set on
Automatically send incidents. The incident was sent and its ID is TB7877093E.
I wasn't able to reproduce it by closing all Mozilla windows, opening it again
and pressing CTRL+P.

Reproducible: Couldn't Reproduce

Steps to Reproduce:
Full stack:
http://talkback-public.mozilla.org/talkback/fastfind.jsp?search=2&type=iid&id=TB7877093E
Keywords: crash
Summary: crash on CTRL+P with no printer → crash on CTRL+P with no printer [@ nsPrintEngine::FirePrintCompletionEvent ]
wolruf@gmail.com: you have to copy the stack to the bug somehow, either attach
the document or paste it inline, talkback doesn't keep symbols for very long
which means the data will be useless quickly. personally since i rely on gmail
to find stacks, and gmail doesn't get attachments, i'd rather the stack be inlined. 
	
Incident ID: 7877093
Stack Signature	0xdc0de914 7cc5f92a
Product ID	Mozilla17
Build ID	2005071607
Trigger Time	2005-07-28 01:58:27.0
Platform	Win32
Operating System	Windows NT 5.0 build 2195
Module	
URL visited	
User Comments	
Since Last Crash	121275 sec
Total Uptime	121275 sec
Trigger Reason	Access violation
Source File, Line No.	N/A
Stack Trace 	
0xdc0de914
nsPrintEngine::FirePrintCompletionEvent 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/content/base/src/nsPrintEngine.cpp,
line 4627]
nsPrintEngine::CleanupOnFailure 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/content/base/src/nsPrintEngine.cpp,
line 2213]
nsPrintEngine::Print 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/content/base/src/nsPrintEngine.cpp,
line 608]
DocumentViewerImpl::Print 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/content/base/src/nsDocumentViewer.cpp,
line 3171]
XPTC_InvokeByIndex 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/xpcom/reflect/xptcall/src/md/win32/xptcinvoke.cpp,
line 102]
XPCWrappedNative::CallMethod 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/js/src/xpconnect/src/xpcwrappednative.cpp,
line 2036]
XPC_WN_CallMethod 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp,
line 1782]
js_Invoke 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/js/src/jsinterp.c,
line 957]
js_Interpret 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/js/src/jsinterp.c,
line 2999]
js_Invoke 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/js/src/jsinterp.c,
line 973]
js_InternalInvoke 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/js/src/jsinterp.c,
line 1050]
JS_CallFunctionValue 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/js/src/jsapi.c, line 3700]
nsJSContext::CallEventHandler 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/dom/src/base/nsJSEnvironment.cpp,
line 1299]
nsJSEventListener::HandleEvent 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/dom/src/events/nsJSEventListener.cpp,
line 181]
nsXBLPrototypeHandler::ExecuteHandler 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/content/xbl/src/nsXBLPrototypeHandler.cpp,
line 463]
nsXBLWindowHandler::WalkHandlersInternal 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/content/xbl/src/nsXBLWindowHandler.cpp,
line 303]
nsXBLWindowKeyHandler::WalkHandlers 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/content/xbl/src/nsXBLWindowKeyHandler.cpp,
line 196]
nsXBLWindowKeyHandler::KeyPress 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/content/xbl/src/nsXBLWindowKeyHandler.cpp,
line 249]
0x0023ea18
nsEventListenerManager::HandleEvent 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/content/events/src/nsEventListenerManager.cpp,
line 1549]
nsXULDocument::HandleDOMEvent 
[d:/BUILDS/tinderbox/Mozilla1.7/WINNT_5.0_Clobber/mozilla/content/xul/document/src/nsXULDocument.cpp,
line 1264]

if you want to cut it off a bit, you can do that
Assignee: general → printing
Component: General → Printing
Product: Mozilla Application Suite → Core
QA Contact: general
Version: unspecified → 1.7 Branch
I think I've succeeded in reproducing it (once). I've submitted incident
TB7885633K, which is commented. It's not easy to reproduce.
I've just been able to reproduce it for the second time with a very fast
succession of the "CTRL+N CTRL+P" sequence.
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.4pre) Gecko/20070509 BonEcho/2.0.0.4pre - Build ID: 2007050903

TB31995634Y

crash on Ctrl-P in Print Preview on Linux; I suggest:
status: NEW
OS: All
Version: 1.8 Branch
(I don't have the privileges to change them myself)

Incident ID: 31995634
Stack Signature	nsPrintEngine::FirePrintCompletionEvent() 97c8f993
Product ID	Firefox2
Build ID	2007050903
Trigger Time	2007-05-10 01:52:54.0
Platform	LinuxIntel
Operating System	Linux 2.6.18.8-0.3-default
Module	firefox-bin + (002ee1e0)
URL visited	
User Comments	
Since Last Crash	5 sec
Total Uptime	5 sec
Trigger Reason	SIGSEGV: Segmentation Fault: (signal 11)
Source File, Line No.	/builds/tinderbox/Fx-Mozilla1.8-release/Linux_2.4.21-27.0.4.EL_Depend/mozilla/layout/printing/nsPrintEngine.cpp, line 4600
Stack Trace 	
nsPrintEngine::FirePrintCompletionEvent()  [mozilla/layout/printing/nsPrintEngine.cpp, line 4600]
nsPrintEngine::CleanupOnFailure()  [mozilla/layout/printing/nsPrintEngine.cpp, line 2176]
nsPrintEngine::Print()  [mozilla/layout/printing/nsPrintEngine.cpp, line 978]
DocumentViewerImpl::Print()  [mozilla/layout/base/nsDocumentViewer.cpp, line 3489]
XPTC_InvokeByIndex()
XPCWrappedNative::CallMethod(XPCCallContext&, XPCWrappedNative::CallMode)()  [mozilla/js/src/xpconnect/src/xpcwrappednative.cpp, line 2168]
XPC_WN_CallMethod()  [mozilla/js/src/xpconnect/src/xpcwrappednativejsops.cpp, line 1455]
js_Invoke()  [mozilla/js/src/jsinterp.c, line 1375]
js_InternalInvoke()  [mozilla/js/src/jsinterp.c, line 1470]
JS_CallFunctionValue()  [mozilla/js/src/jsapi.c, line 4352]
XPC_NW_FunctionWrapper()  [mozilla/js/src/xpconnect/src/XPCNativeWrapper.cpp, line 1856]
js_Invoke()  [mozilla/js/src/jsinterp.c, line 1375]
js_Interpret()  [mozilla/js/src/jsinterp.c, line 3945]
js_Invoke()  [mozilla/js/src/jsinterp.c, line 1394]
nsXPCWrappedJSClass::CallMethod()  [mozilla/js/src/xpconnect/src/xpcwrappedjsclass.cpp, line 1415]
nsXPCWrappedJS::CallMethod()  [mozilla/js/src/xpconnect/src/xpcwrappedjs.cpp, line 468]
PrepareAndDispatch()  [mozilla/xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp, line 100]
nsEventListenerManager::HandleEventSubType()  [mozilla/content/events/src/nsEventListenerManager.cpp, line 1655]
nsEventListenerManager::HandleEvent()  [mozilla/content/events/src/nsEventListenerManager.cpp, line 1056]
nsGlobalWindow::HandleDOMEvent()  [mozilla/dom/src/base/nsGlobalWindow.cpp, line 1695]
nsXULDocument::HandleDOMEvent()  [mozilla/content/xul/document/src/nsXULDocument.cpp, line 848]
nsXULElement::HandleDOMEvent()  [mozilla/content/xul/content/src/nsXULElement.cpp, line 2210]
nsXULElement::HandleDOMEvent()  [mozilla/content/xul/content/src/nsXULElement.cpp, line 848]
nsXULElement::HandleDOMEvent()  [mozilla/content/xul/content/src/nsXULElement.cpp, line 848]
nsXULElement::HandleDOMEvent()  [mozilla/content/xul/content/src/nsXULElement.cpp, line 848]
nsXULElement::HandleDOMEvent()  [mozilla/content/xul/content/src/nsXULElement.cpp, line 848]
nsXULElement::HandleDOMEvent()  [mozilla/content/xul/content/src/nsXULElement.cpp, line 848]
nsXULElement::HandleDOMEvent()  [mozilla/content/xul/content/src/nsXULElement.cpp, line 848]
nsXULElement::HandleDOMEvent()  [mozilla/content/xul/content/src/nsXULElement.cpp, line 848]
nsXULElement::HandleDOMEvent()  [mozilla/content/xul/content/src/nsXULElement.cpp, line 848]
nsXULElement::HandleChromeEvent()  [mozilla/content/xul/content/src/nsXULElement.cpp, line 2893]
nsGlobalWindow::HandleDOMEvent()  [mozilla/dom/src/base/nsGlobalWindow.cpp, line 848]
nsDocument::HandleDOMEvent()  [mozilla/content/base/src/nsDocument.cpp, line 848]
nsGenericElement::HandleDOMEvent()  [mozilla/content/base/src/nsGenericElement.cpp, line 2183]
PresShell::HandleEventInternal()  [mozilla/layout/base/nsPresShell.cpp, line 848]
PresShell::HandleEvent()  [mozilla/layout/base/nsPresShell.cpp, line 6267]
nsViewManager::HandleEvent()  [mozilla/view/src/nsViewManager.cpp, line 848]
nsViewManager::DispatchEvent()  [mozilla/view/src/nsViewManager.cpp, line 2253]
HandleEvent()  [mozilla/view/src/nsView.cpp, line 251]
nsCommonWidget::DispatchEvent()  [mozilla/widget/src/gtk2/nsCommonWidget.cpp, line 219]
nsWindow::OnKeyPressEvent()  [mozilla/widget/src/gtk2/nsWindow.cpp, line 1924]
key_press_event_cb()  [mozilla/widget/src/gtk2/nsWindow.cpp, line 4051]
libgtk-x11-2.0.so.0 + 0x1321b0 (0xb7bab1b0)
libgobject-2.0.so.0 + 0x9c0b (0xb7944c0b)
libgobject-2.0.so.0 + 0x1ad3d (0xb7955d3d)
libgobject-2.0.so.0 + 0x1c00f (0xb795700f)
libgobject-2.0.so.0 + 0x1c415 (0xb7957415)
libgtk-x11-2.0.so.0 + 0x245b18 (0xb7cbeb18)
libgtk-x11-2.0.so.0 + 0x255ba7 (0xb7cceba7)
libgtk-x11-2.0.so.0 + 0x258c0c (0xb7cd1c0c)
libgtk-x11-2.0.so.0 + 0x1321b0 (0xb7bab1b0)
libgobject-2.0.so.0 + 0x8407 (0xb7943407)
libgobject-2.0.so.0 + 0x9c0b (0xb7944c0b)
libgobject-2.0.so.0 + 0x1b383 (0xb7956383)
libgobject-2.0.so.0 + 0x1c00f (0xb795700f)
libgobject-2.0.so.0 + 0x1c415 (0xb7957415)
libgtk-x11-2.0.so.0 + 0x245b18 (0xb7cbeb18)
libgtk-x11-2.0.so.0 + 0x12b68a (0xb7ba468a)
libgtk-x11-2.0.so.0 + 0x12c857 (0xb7ba5857)
libgdk-x11-2.0.so.0 + 0x4202a (0xb7a3902a)
libglib-2.0.so.0 + 0x2dde2 (0xb78cfde2)
libglib-2.0.so.0 + 0x30e1f (0xb78d2e1f)
libglib-2.0.so.0 + 0x311c9 (0xb78d31c9)
libgtk-x11-2.0.so.0 + 0x12ccd4 (0xb7ba5cd4)
nsAppShell::Run()  [mozilla/widget/src/gtk2/nsAppShell.cpp, line 141]
nsAppStartup::Run()  [mozilla/toolkit/components/startup/src/nsAppStartup.cpp, line 152]
XRE_main()  [mozilla/toolkit/xre/nsAppRunner.cpp, line 2644]
main()  [mozilla/browser/app/nsBrowserApp.cpp, line 62]
libc.so.6 + 0x15f9c (0xb7364f9c)
crash doesn't exist on crash-stats in last 24 days for any version of FF
Is this still an issue in Firefox 3.5?

If it is not, we should set the resolution of the bug to WORKSFORME.
Assignee: printing → nobody
QA Contact: printing
Works fine for me in Vista, but I suspect the UI seen by the reporter is specific to Windows 2000.  We wouldn't even know whether this crash is common on Windows 2000, since Breakpad doesn't work there (bug 382124).  So I think this is worth retesting.
Whiteboard: [needs retesting on Windows 2000]
Jesse: I still have a Win2000 box and VM, I will try to reproduce this in the next week or so.
tmyoung, ping?
I'm going to have to build a new VM, so if someone already has one or a Win2K system without a printer, then they will be able to test this sooner, but I can still make a new VM if nobody has one handy.
Tanner, please check if you could help bug 488847 for which we want to build a w2k vm but miss a (msdn) license.
I could not reproduce in a win2k vm using Firefox 1.0 (what the reporter used), 1.5, or 3.0.

Feel free to loop me into other win2k stuff.
Status: UNCONFIRMED → RESOLVED
Closed: 15 years ago
Resolution: --- → WORKSFORME
Crash Signature: [@ nsPrintEngine::FirePrintCompletionEvent ]
You need to log in before you can comment on or make changes to this bug.