Bug #52617 Print Preview Error with large models
Submitted: 6 Apr 2010 11:02 Modified: 26 May 2010 8:33
Reporter: Sam Stepanyan Email Updates:
Status: No Feedback Impact on me:
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.2.16, 5.2.17, 5.2.18 OS:Windows (XP SP3)
Assigned to: CPU Architecture:Any

[6 Apr 2010 11:02] Sam Stepanyan
Exception = System.ArgumentException
Message = Parameter is not valid.
FullText = System.ArgumentException: Parameter is not valid.
   at System.Drawing.Image.get_RawFormat()
   at System.Drawing.Graphics.IgnoreMetafileErrors(Image image, Int32& errorStatus)
   at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
   at System.Drawing.Graphics.DrawImage(Image image, Rectangle rect)
   at System.Windows.Forms.PrintPreviewControl.OnPaint(PaintEventArgs pevent)
   at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   at System.Windows.Forms.Control.WmPaint(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.PrintPreviewControl.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How to repeat:
Attempt to generate a print preview a multi-page document and use the page scroller control to go to the next page
[8 Apr 2010 16:33] Johannes Taxacher
Hi Sam,

could you please retry with latest release (5.2.17) to se if the problem is still there?
thanks in advance.
[9 Apr 2010 14:19] Sam Stepanyan
I can confirm that the same crash happens on 5.2.17 

I have a 3-page schema, when doing Print Preview the first page is displayed, click on the up arrow to go to page 2 -> crash
[13 Apr 2010 22:08] John Steele
I have the same problem going from page 2 to page 3 of 6 pages:

5.2.18 OSS Beta
Revision 5625
[26 Apr 2010 8:33] Sveta Smirnova
Thank you for the feedback.

I can not repeat described behavior. Please try current version 5.2.19 and if problem still exists send us model file problem is repeatable with.
[26 May 2010 23:00] Bugs System
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".