Bug #33179 Attempting to place an image on the canvas crashes the app
Submitted: 12 Dec 2007 18:25 Modified: 28 Mar 2008 17:25
Reporter: Peter Lavin Email Updates:
Status: Closed Impact on me:
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.0.10 OS:Windows (XP)
Assigned to: Alfredo Kojima CPU Architecture:Any
Tags: image

[12 Dec 2007 18:25] Peter Lavin
Attempting to place an image on the canvas crashes the application.

How to repeat:
Go to the EER Diagram page and select the image tool. Click on the canvas and select a PNG file. The application crashes with the following error signature:

EventType : BEX     P1 : MySQLWorkbench.exe     P2 :     
P3 : 474f4d0d     P4 : mscorwks.dll     P5 : 2.0.50727.832     P6 : 461f2e2a
P7 : 0021e171     P8 : c0000409     P9 : 00000000
[30 Jan 2008 14:01] Johannes Taxacher
not repeatable in latest version (only when run in ParallelsVM though)
[30 Jan 2008 15:58] Peter Lavin
This now works fine for me in 5.0.12 (on XP) but only with image files that have relatively small dimensions. If I try to place a large image (2100 by 2500 pixels) on the canvas it is not visible. I can see the outline of the image in the Model Navigator palette but I can't actually see the image. Changing the diagram size has no effect. If there is an upper limit on the size of images that can be placed on an EER diagram, it needs to be documented.
[20 Mar 2008 21:49] Alfredo Kojima
Fixed so that big images are shrinked. However, I wouldnt expect someone to 
attempt loading an image bigger than the canvas under normal work conditions.
[26 Mar 2008 2:11] Johannes Taxacher
fixed in SVN rev 2868 - now with full image-resize support
[28 Mar 2008 17:25] MC Brown
A note has been added to the 5.0.16rc changelog: 

Placing an image on to the canvas could crash the application. For images larger than the canvas, the image is automatically reduced so that it is properly visible on the canvas for editing.