Bug #32320 Print crashes (when printer is not available?)
Submitted: 13 Nov 2007 15:19 Modified: 15 Mar 2008 12:39
Reporter: Ulf Wendel Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.0.8.2095 Beta OS:Windows
Assigned to: Johannes Taxacher CPU Architecture:Any

[13 Nov 2007 15:19] Ulf Wendel
Description:
I'm getting a crash when I try to print a model with a rudimentary table. I guess its not about WB but rather my borked printer configuration. No printer is connected to my system when I try to print the model.

Please note this is about WB 5.0.8.2095 Beta. 5.0.8.2095 Beta is newer than 1.1.10. You can download it from ftp://ftp.mysql.com/pub/mysql/download/gui-tools/mysql-workbench-internal-5.0.8.2094-beta-... . Please note also the special and temporary handling of these "pre public beta" bug reports.

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.ComponentModel.Win32Exception: Der RPC-Server ist nicht verfügbar
   bei System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
   bei System.Windows.Forms.PrintControllerWithStatusDialog.OnStartPrint(PrintDocument document, PrintEventArgs e)
   bei System.Drawing.Printing.PrintController.Print(PrintDocument document)
   bei System.Drawing.Printing.PrintDocument.Print()
   bei System.Windows.Forms.PrintPreviewDialog.OnprintToolStripButtonClick(Object sender, EventArgs e)
   bei System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
   bei System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
   bei System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
   bei System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
   bei System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
   bei System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
   bei System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   bei System.Windows.Forms.ToolStrip.WndProc(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.832 (QFE.050727-8300).
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
MySQLWorkbench
    Assembly-Version: 5.0.8.2094.
    Win32-Version: 5.0.8.2094.
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/MySQLWorkbench.exe.
----------------------------------------
wb.wr
    Assembly-Version: 0.0.0.0.
    Win32-Version: .
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/wb.wr.DLL.
----------------------------------------
grt.wr
    Assembly-Version: 0.0.0.0.
    Win32-Version: .
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/grt.wr.DLL.
----------------------------------------
MySQLCsUtilities
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/MySQLCsUtilities.DLL.
----------------------------------------
msvcm80
    Assembly-Version: 8.0.50727.762.
    Win32-Version: 8.00.50727.762.
    CodeBase: file:///C:/WINDOWS/WinSxS/x86_Microsoft.VC80.CRT_1fc8b3b9a1e18e3b_8.0.50727.762_x-ww_6b128700/msvcm80.dll.
----------------------------------------
MySQLGrtShell
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/MySQLGrtShell.EXE.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.832 (QFE.050727-8300).
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.832 (QFE.050727-8300).
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.832 (QFE.050727-8300).
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
WeifenLuo.WinFormsUI.Docking
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.0.0.
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/WeifenLuo.WinFormsUI.Docking.DLL.
----------------------------------------
MySQLWorkbenchEditors
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/MySQLWorkbenchEditors.DLL.
----------------------------------------
Aga.Controls
    Assembly-Version: 1.6.0.0.
    Win32-Version: 1.6.0.0.
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/Aga.Controls.DLL.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.42 (RTM.050727-4200).
    CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms.resources/2.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
grt.helpers.be
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/grt.helpers.be.DLL.
----------------------------------------
mscorlib.resources
    Assembly-Version: 2.0.0.0.
    Win32-Version: 2.0.50727.832 (QFE.050727-8300).
    CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll.
----------------------------------------
db.mysql.editors.wbp.fe
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/db.mysql.editors.wbp.fe.DLL.
----------------------------------------
db.mysql.editors.wbp.wr
    Assembly-Version: 0.0.0.0.
    Win32-Version: .
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/db.mysql.editors.wbp.wr.DLL.
----------------------------------------
grt.db.wr
    Assembly-Version: 0.0.0.0.
    Win32-Version: .
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/grt.db.wr.DLL.
----------------------------------------
wb.printing.wbp.fe
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/wb.printing.wbp.fe.DLL.
----------------------------------------
wb.printing.wbp.wr
    Assembly-Version: 0.0.0.0.
    Win32-Version: .
    CodeBase: file:///c:/tmp/MySQL%20Workbench%205.0.8.2094%20Beta/wb.printing.wbp.wr.DLL.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

How to repeat:
Start WB. Add a diagram. Add a table. File -> Print. First I get this exception then I get a warning that the print plugin has caused a problem.
[12 Mar 2008 16:39] Johannes Taxacher
cannot be reproduced in 5.0.14a so this mut be fixed in the meantime while having changed a lot of printing related parts.
[15 Mar 2008 12:39] MC Brown
A note has been added to the 5.15 changelog: 

Printing a model when there is no printer connected could result in an application exception.