Closed Bug 181068 Opened 23 years ago Closed 23 years ago

Mozilla freezes when starts printing [fixed by erasing the fastload file]

Categories

(Core :: XUL, defect)

x86
Linux
defect
Not set
critical

Tracking

()

VERIFIED DUPLICATE of bug 169777

People

(Reporter: mozilla-bugs, Assigned: bugs)

Details

(Keywords: hang)

Reproducible: today - 100%, but was working OK yesterday As soon as I click on the "Print" button in the print dlg, Mozilla freezes with 100% CPU usage - it does not even get a chance to redraw the portion of the window that was hidden by the print dialog. Freeze happens, no matter whether I am trying to print directly or to a file. If printing to a file, the first 32768 bytes of the file get written out. This is BuildID 2002111716 (trunk) compiled and running on Red Hat Linux 7.3. The weird thing is that it was just printing fine yesterday (running exact same binaries on the exact same machine) and I have no idea what have changed! Trying it several times on several very different pages (http://www.cs.caltech.edu, http://bugzilla.mozilla.org/enter_bug.cgi?product=Browser, http://www.lib.ru/ZELQZNY/head.txt_with-big-pictures.html) and attaching gdb several times to each, I saw a bunch of very similar stack traces. The following one was the most common (I saw it for each of the 3 URLs): (gdb) bt #0 0x420daca4 in read () from /lib/i686/libc.so.6 #1 0x40226b18 in __DTOR_END__ () from /lib/i686/libpthread.so.0 #2 0x40202950 in pt_Read () from /usr/lib/libnspr4.so #3 0x401ef2a7 in PR_Read () from /usr/lib/libnspr4.so #4 0x405e9d39 in nsFileInputStream::Read () from /usr/lib/mozilla-1.2b/components/libnecko.so #5 0x405e5dbf in nsBufferedInputStream::Fill () from /usr/lib/mozilla-1.2b/components/libnecko.so #6 0x405e5c1c in nsBufferedInputStream::Read () from /usr/lib/mozilla-1.2b/components/libnecko.so #7 0x4015c21b in nsFastLoadFileReader::Read () from /usr/lib/libxpcom.so #8 0x401588fb in nsBinaryInputStream::Read32 () from /usr/lib/libxpcom.so #9 0x40158b94 in nsBinaryInputStream::ReadString () from /usr/lib/libxpcom.so #10 0x4088cf74 in nsXULPrototypeDocument::Read () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #11 0x40889680 in nsXULPrototypeCache::GetPrototype () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #12 0x40b7030e in nsChromeProtocolHandler::NewChannel () from /usr/lib/mozilla-1.2b/components/libchrome.so #13 0x405f141b in nsIOService::NewChannelFromURI () from /usr/lib/mozilla-1.2b/components/libnecko.so #14 0x4111712f in nsDocShell::DoURILoad () from /usr/lib/mozilla-1.2b/components/libdocshell.so #15 0x41116b74 in nsDocShell::InternalLoad () from /usr/lib/mozilla-1.2b/components/libdocshell.so #16 0x41108de6 in nsDocShell::LoadURI () from /usr/lib/mozilla-1.2b/components/libdocshell.so #17 0x4053d58a in nsWindowWatcher::OpenWindowJS () from /usr/lib/mozilla-1.2b/components/libembedcomponents.so #18 0x4053bd6a in nsWindowWatcher::OpenWindow () from /usr/lib/mozilla-1.2b/components/libembedcomponents.so #19 0x41151bdc in GlobalWindowImpl::OpenInternal () from /usr/lib/mozilla-1.2b/components/libjsdom.so #20 0x4114d709 in GlobalWindowImpl::OpenDialog () from /usr/lib/mozilla-1.2b/components/libjsdom.so #21 0x40543bd6 in nsPrintProgress::OpenProgressDialog () from /usr/lib/mozilla-1.2b/components/libembedcomponents.so #22 0x40542bac in nsPrintingPromptService::ShowProgress () from /usr/lib/mozilla-1.2b/components/libembedcomponents.so #23 0x408e0b3c in nsPrintEngine::ShowPrintProgress () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #24 0x408dea7c in nsPrintEngine::Print () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #25 0x4090c263 in DocumentViewerImpl::Print () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #26 0x401a6588 in XPTC_InvokeByIndex () from /usr/lib/libxpcom.so #27 0x405b98ae in XPCWrappedNative::CallMethod () from /usr/lib/mozilla-1.2b/components/libxpconnect.so #28 0x405c0830 in XPC_WN_CallMethod () from /usr/lib/mozilla-1.2b/components/libxpconnect.so #29 0x4009c11f in js_Invoke () from /usr/lib/libmozjs.so #30 0x400a46e5 in js_Interpret () from /usr/lib/libmozjs.so #31 0x4009c180 in js_Invoke () from /usr/lib/libmozjs.so #32 0x4009c382 in js_InternalInvoke () from /usr/lib/libmozjs.so #33 0x4007b462 in JS_CallFunctionValue () from /usr/lib/libmozjs.so #34 0x41141640 in nsJSContext::CallEventHandler () from /usr/lib/mozilla-1.2b/components/libjsdom.so #35 0x41179e18 in nsJSEventListener::HandleEvent () from /usr/lib/mozilla-1.2b/components/libjsdom.so #36 0x406fb103 in nsEventListenerManager::HandleEventSubType () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #37 0x406fdac8 in nsEventListenerManager::HandleEvent () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #38 0x40861afc in nsXULElement::HandleDOMEvent () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #39 0x40861c3e in nsXULElement::HandleDOMEvent () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #40 0x40861c3e in nsXULElement::HandleDOMEvent () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #41 0x418c528e in PresShell::HandleDOMEventWithTarget () from /usr/lib/mozilla-1.2b/components/libgklayout.so #42 0x4196d2aa in nsButtonBoxFrame::MouseClicked () from /usr/lib/mozilla-1.2b/components/libgklayout.so #43 0x4196ce48 in nsButtonBoxFrame::HandleEvent () from /usr/lib/mozilla-1.2b/components/libgklayout.so #44 0x418c51b0 in PresShell::HandleEventInternal () from /usr/lib/mozilla-1.2b/components/libgklayout.so #45 0x418c4f6b in PresShell::HandleEventWithTarget () from /usr/lib/mozilla-1.2b/components/libgklayout.so #46 0x4070622d in nsEventStateManager::CheckForAndDispatchClick () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #47 0x40704257 in nsEventStateManager::PostHandleEvent () from /usr/lib/mozilla-1.2b/components/libgkcontent.so #48 0x418c51ed in PresShell::HandleEventInternal () from /usr/lib/mozilla-1.2b/components/libgklayout.so #49 0x418c4ecf in PresShell::HandleEvent () from /usr/lib/mozilla-1.2b/components/libgklayout.so #50 0x41a52e3c in nsViewManager::HandleEvent () from /usr/lib/mozilla-1.2b/components/libgkview.so #51 0x41a46f97 in nsView::HandleEvent () from /usr/lib/mozilla-1.2b/components/libgkview.so #52 0x41a522ff in nsViewManager::DispatchEvent () from /usr/lib/mozilla-1.2b/components/libgkview.so #53 0x41a46a92 in HandleEvent () from /usr/lib/mozilla-1.2b/components/libgkview.so #54 0x40a78db1 in nsWidget::DispatchEvent () from /usr/lib/mozilla-1.2b/components/libwidget_gtk.so #55 0x40a78ca7 in nsWidget::DispatchWindowEvent () from /usr/lib/mozilla-1.2b/components/libwidget_gtk.so #56 0x40a78e3f in nsWidget::DispatchMouseEvent () from /usr/lib/mozilla-1.2b/components/libwidget_gtk.so #57 0x40a7993c in nsWidget::OnButtonReleaseSignal () from /usr/lib/mozilla-1.2b/components/libwidget_gtk.so #58 0x40a7d309 in nsWindow::OnButtonReleaseSignal () from /usr/lib/mozilla-1.2b/components/libwidget_gtk.so #59 0x40a7d59d in nsWindow::HandleGDKEvent () from /usr/lib/mozilla-1.2b/components/libwidget_gtk.so #60 0x40a7289a in dispatch_superwin_event () from /usr/lib/mozilla-1.2b/components/libwidget_gtk.so #61 0x40a7266f in handle_gdk_event () from /usr/lib/mozilla-1.2b/components/libwidget_gtk.so #62 0x4036fd6f in gdk_event_dispatch () from /usr/lib/libgdk-1.2.so.0 #63 0x403a1773 in g_main_dispatch () from /usr/lib/libglib-1.2.so.0 #64 0x403a1d39 in g_main_iterate () from /usr/lib/libglib-1.2.so.0 #65 0x403a1eec in g_main_run () from /usr/lib/libglib-1.2.so.0 #66 0x402be2e3 in gtk_main () from /usr/lib/libgtk-1.2.so.0 #67 0x40a694f9 in nsAppShell::Run () from /usr/lib/mozilla-1.2b/components/libwidget_gtk.so #68 0x40a4d182 in nsAppShellService::Run () from /usr/lib/mozilla-1.2b/components/libnsappshell.so #69 0x08053586 in main1 () #70 0x08053edb in main () #71 0x42017499 in __libc_start_main () from /lib/i686/libc.so.6 P.S. The only other "print freezing" bug that I could find is bug 77309 (presumably a plugin-related freeze), so I made sure to temporarily remove the flash plugin (the only one I have installed) and this didn't make any difference (none of the pages had any flash on them, but one of the things that did change since yesterday was that I've upgraded the plugin, so I wanted to be sure it's not related).
have you tried deleting the xul.fasl file form the mozilla directory?
Not yet. But you are right - this is very likely to be caused be it.
I was not able to reproduce it on the same machine, but just had it happen on a different machine - BuildID 2002112018 commpiled (with xft) and running on Red Hat Linux 8.0. The problem went away as soon as I removed the XUL.fasl file.
Assignee: rods → hyatt
Blocks: FastLoadMeta
Component: Printing → XP Toolkit/Widgets: XUL
Keywords: hang
QA Contact: sujay → shrir
Summary: Mozilla freezes when starts printing. → Mozilla freezes when starts printing [fixed by erasing the fastload file]
jrgm, are there dups of this? Maybe the printing dialog (xul, I guess) is the key to reproducibility. If someone can make this happen under a debug build, please email me or get in touch with me via irc.mozilla.org. /be
Assignee: hyatt → ben
QA Contact: shrir → jrgm
Based on description and comment 3: This bug should be marked as a duplicate of bug 169777.
*** This bug has been marked as a duplicate of 169777 ***
Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → DUPLICATE
v
No longer blocks: FastLoadMeta
Status: RESOLVED → VERIFIED
Component: XP Toolkit/Widgets: XUL → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.