PR# 4281 Diagram PNG button sometimes cannot save and gives meaningless error message

Problem Report Summary
Submitter: peter_gummer
Category: EiffelStudio
Priority: Low
Date: 2005/02/09
Class: Bug
Severity: Non-critical
Number: 4281
Release: 5.6.0601
Confidential: No
Status: Open
Responsible:
Environment: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0
Synopsis: Diagram PNG button sometimes cannot save and gives meaningless error message

Description
If the zoom is a large number on a large diagram, then the "Export diagram to PNG" button sometimes displays a "Warning" dialog with the message, "Could not save dialgram to C:\ANY.png".

The file is created, but is only a few bytes in size.

I have seen this happening even at zooms as low as 75%.

Sometimes exporting works, but then attempting exactly the same export a second time immediately afterwards fails.

Because the message is unclear, I don't know the real reason for the error.

The first time I saw it, I thought it was refusing to overwrite an existing file, so I deleted the file and tried again, but I got the same error.

I suspect the error is due to the image being too big. If so, this should be stated clearly by the message.
To Reproduce
1. Open an EiffelStudio project (I happened to choose a .NET console application, but I doubt that's relevant).

2. Target the Diagram tool to ANY.

3. Set the zoom drop down list 1000%.

4. Click the PNG button.

5. Click OK to save ANY.png. This produces the error.
Problem Report Interactions
From:peter_gummer    Date:2005/11/11    Download