Bug #52543 Error when many tables imported and Print Preview
Submitted: 2 Apr 2010 0:50 Modified: 6 Aug 2010 6:28
Reporter: Daniel Vieira Email Updates:
Status: Can't repeat Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S2 (Serious)
Version:5.2.16 OS:Windows
Assigned to: CPU Architecture:Any

[2 Apr 2010 0:50] Daniel Vieira
Description:
I made reverse engineering on my database where there are 90 tables. It drawn the tables (entity) pictures one above the other. I tried organize the entities but there were not much space. When I zoom out, it wasnt possible to see the area limits, so I tried to see throught Print Preview, and the error below happened.

-------
Exception = System.ArgumentException
Message = Parâmetro inválido.
FullText = System.ArgumentException: Parâmetro inválido.
   em System.Drawing.Image.get_RawFormat()
   em System.Drawing.Graphics.IgnoreMetafileErrors(Image image, Int32& errorStatus)
   em System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Int32 width, Int32 height)
   em System.Drawing.Graphics.DrawImage(Image image, Rectangle rect)
   em System.Windows.Forms.PrintPreviewControl.OnPaint(PaintEventArgs pevent)
   em System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
   em System.Windows.Forms.Control.WmPaint(Message& m)
   em System.Windows.Forms.Control.WndProc(Message& m)
   em System.Windows.Forms.PrintPreviewControl.WndProc(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How to repeat:
See description.

Suggested fix:
I suggest not just fixing the problem when Print Preview is executed, but the possibility to see limit bounds to drag the entities or a no limit area to work would be good. When the user want to print, she should specify the amount of pages and the figure size. Take the DBDesigner program as model.

Thanks.
[2 Apr 2010 5:49] Valeriy Kravchuk
Thank you for the problem report. Please, send the results from Help > System Info menu item.
[2 Apr 2010 6:34] Daniel Vieira
MySQL Workbench OSS for Windows version 5.2.16
Cairo Version: 1.8.8
Rendering Mode: OpenGL requested (create a diagram to confirm)
OpenGL Driver Version: 2.1.8787
OS: Microsoft Windows 7 Ultimate Edition (build 7600), 64-bit
CPU: 2x AMD Athlon(tm) 64 X2 Dual Core Processor 4600+, 4.0 GiB RAM
Video adapter info:
Adapter type: ATI Radeon HD 4800 Series 
Chip Type: ATI display adapter (0x9440)
BIOS String: 113-HD487AZHF81_113-BA0706-101
Video Memory: 1048576 KB
[5 Apr 2010 11:40] MySQL Verification Team
Could you please try need released version 5.2.17 and comment the result here?. Thanks in advance.
[5 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".
[22 Jul 2010 7:21] Roel Van de Paar
Please send your .mwb file (you can add it as a private comment) and an exact procedure for repeating this specific crash. Thanks!
[5 Aug 2010 18:09] Daniel Vieira
The error didn't occurs anymore.
[6 Aug 2010 6:28] Valeriy Kravchuk
Please, send a comment if you'll ever get similar problem with Workbench 5.2.25 or newer version.