Closed Bug 3526 Opened 26 years ago Closed 26 years ago

Apprunner: File|Print Preview crashes

Categories

(SeaMonkey :: UI Design, defect, P1)

Tracking

(Not tracked)

VERIFIED FIXED

People

(Reporter: mcafee, Assigned: slamm)

References

Details

Apprunner: File|Print Preview crashes #0 0x40c9c237 in nsBaseAppCore::FindNamedDOMNode (this=0x814b388, aName=@0xbfffe0b4, aParent=0x0, aCount=@0xbfffe15c, aEndCount=1) at nsBaseAppCore.cpp:147 #1 0x40ca0d9a in nsBrowserAppCore::SetButtonImage (this=0x814b388, aParentNode=0x810ee48, aBtnNum=1, aResName=@0xbfffe1a4) at nsBrowserAppCore.cpp:359 #2 0x40ca111f in nsBrowserAppCore::PrintPreview (this=0x814b388) at nsBrowserAppCore.cpp:399 #3 0x40ca83e8 in BrowserAppCorePrintPreview (cx=0x80cb528, obj=0x81a3720, argc=0, argv=0x8189468, rval=0xbfffe298) at nsJSBrowserAppCore.cpp:412 #4 0x406bf76f in js_Invoke (cx=0x80cb528, argc=0, constructing=0) at jsinterp.c:650 #5 0x406cf346 in js_Interpret (cx=0x80cb528, result=0xbfffe640) at jsinterp.c:2183 #6 0x406bf7cd in js_Invoke (cx=0x80cb528, argc=0, constructing=0) at jsinterp.c:666 #7 0x406cf346 in js_Interpret (cx=0x80cb528, result=0xbfffea8c) at jsinterp.c:2183 #8 0x406bfc88 in js_Execute (cx=0x80cb528, chain=0x80cc9c0, script=0x81c5760, fun=0x0, down=0x0, debugging=0, result=0xbfffea8c) at jsinterp.c:815 #9 0x406991c3 in JS_EvaluateUCScriptForPrincipals (cx=0x80cb528, obj=0x80cc9c0, principals=0x0, chars=0x81d7aa8, length=22, filename=0x4001b982 "", lineno=0, rval=0xbfffea8c) at jsapi.c:2324 #10 0x40620eb7 in nsJSContext::EvaluateString (this=0x80cb510, aScript=@0x81d7a88, aURL=0x4001b982 "", aLineNo=0, aRetValue=@0xbfffead8, aIsUndefined=0xbfffeae8) at nsJSEnvironment.cpp:89 #11 0x400152c7 in nsXULCommand::ExecuteJavaScriptString (this=0x81d7a80, aWebShell=0x809f9e8, aJavaScript=@0x81d7a88) at nsXULCommand.cpp:178 #12 0x400150ad in nsXULCommand::DoCommand (this=0x81d7a80) at nsXULCommand.cpp:140 #13 0x4001534b in nsXULCommand::MenuSelected (this=0x81d7a80, aMenuEvent=@0xbfffebe4) at nsXULCommand.cpp:192 #14 0x4007d3df in nsMenuItem::MenuSelected (this=0x81d7900, aMenuEvent=@0xbfffebe4) at nsMenuItem.cpp:327 #15 0x4007e953 in menu_item_activate_handler (w=0x8149abc, p=0x81d7900) at nsGtkEventHandler.cpp:592 #16 0x408e74bb in gtk_marshal_NONE__NONE (object=0x8149abc, func=0x4007e874 <menu_item_activate_handler(_GtkWidget *, void *)>, func_data=0x81d7900, args=0xbfffecc8) at gtkmarshal.c:363 #17 0x408abfb6 in gtk_handlers_run (handlers=0x81da818, signal=0xbfffec84, object=0x8149abc, params=0xbfffecc8, after=0) at gtksignal.c:1909 #18 0x408ab4c0 in gtk_signal_real_emit (object=0x8149abc, signal_id=89, params=0xbfffecc8) at gtksignal.c:1469 #19 0x408a97d0 in gtk_signal_emit (object=0x8149abc, signal_id=89) at gtksignal.c:552 #20 0x408de990 in gtk_widget_activate (widget=0x8149abc) at gtkwidget.c:2810 #21 0x40885d21 in gtk_menu_shell_activate_item (menu_shell=0x814bc38, menu_item=0x8149abc, force_deactivate=1) at gtkmenushell.c:834 #22 0x40885076 in gtk_menu_shell_button_release (widget=0x814bc38, event=0x80a0ea0) at gtkmenushell.c:497 #23 0x408e7199 in gtk_marshal_BOOL__POINTER (object=0x814bc38, func=0x40884ee8 <gtk_menu_shell_button_release>, func_data=0x0, args=0xbffff03c) at gtkmarshal.c:32 #24 0x408ab4f7 in gtk_signal_real_emit (object=0x814bc38, signal_id=21, params=0xbffff03c) at gtksignal.c:1484 #25 0x408a97d0 in gtk_signal_emit (object=0x814bc38, signal_id=21) at gtksignal.c:552 #26 0x408de854 in gtk_widget_event (widget=0x814bc38, event=0x80a0ea0) at gtkwidget.c:2784 #27 0x4087e6b5 in gtk_propagate_event (widget=0x8149abc, event=0x80a0ea0) at gtkmain.c:1295 #28 0x4087d9ea in gtk_main_do_event (event=0x80a0ea0) at gtkmain.c:752 #29 0x40923e86 in gdk_event_dispatch (source_data=0x0, current_time=0xbffff3bc, user_data=0x0) at gdkevents.c:2086 #30 0x4094fc83 in g_main_dispatch (current_time=0xbffff3bc) at gmain.c:647 #31 0x4095020f in g_main_iterate (block=1, dispatch=1) at gmain.c:854 #32 0x40950391 in g_main_run (loop=0x807e3b8) at gmain.c:912 #33 0x4087d45b in gtk_main () at gtkmain.c:475 #34 0x40076e90 in nsAppShell::Run (this=0x8064438) at nsAppShell.cpp:152 #35 0x4001571d in nsAppShellService::Run (this=0x8063ff0) at nsAppShellService.cpp:154 #36 0x8049d70 in main (argc=1, argv=0xbffff4c4) at nsAppRunner.cpp:285
restarted, now it just does nothing.
Assignee: don → slamm
OS: Linux → All
Priority: P3 → P1
Hardware: PC → All
Target Milestone: M3
Re-assigned to law@netscape.com; changed platform and OS to All; changed priority to P1 and target milestone to M3. Bill, the crash appears to happen on any platform. Just having the menu command do nothing would be fine for now.
Assignee: slamm → law
*** Bug 3603 has been marked as a duplicate of this bug. ***
Component: Apprunner → XPApps
Changed component to XPApps.
Re-assigned to matt@netscape.com. Matt, this doesn't need to work yet, it just needs to not crash.
This is the same crash as the "File|Change Icons" menu item (see bug #3602). Both of these menu items call BrowserPrintPreview() which crashes while trying to change the images on the toolbar buttons... I've removed the onclick handler until BrowserPrintPreview() can be rewritten to actually bring up a print preview window rather than change the look of the toolbar...
Assignee: matt → slamm
Re-assigned to slamm@netscape.com. Steve, David Hyatt's checking to Navigator.xul whacked Rick Potts' fix. Please remove the two onlcik handlers calling BrowserPrintPreview. In fact, remove or at lease comment out the damn BrowserPrintPreview function with a warning that it can cause pain and suffer if called.
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → FIXED
Disabled the call.
QA Contact: 3853
No longer crashes all platforms cool with Mar16 build. Marking Verified.
Status: RESOLVED → VERIFIED
Product: Core → Mozilla Application Suite
You need to log in before you can comment on or make changes to this bug.