[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: Stata 11 crashes after PNG export with a size option

From   "Martin Weiss" <>
To   <>
Subject   st: AW: Stata 11 crashes after PNG export with a size option
Date   Mon, 10 Aug 2009 09:00:25 +0200


Same behavior on Vista Business SP2, 64 bit...


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Sergiy Radyakin
Gesendet: Montag, 10. August 2009 02:24
Betreff: st: Stata 11 crashes after PNG export with a size option

Dear Stata users and developers,
there seems to be a problem with -graph export- command, when export
format is PNG and a documented sizing option (either of height or
width, or both) is specified.
In particular, Stata's executable crashes and all the unsaved data
currently in memory is lost. The message I get is: "An unhandled win32
exception occurred in StataMP-64.exe".

Here is a trivial code that reproduces the bug:

version 11
set memory 1m
sysuse auto
twoway line price weight
graph export "Bug.png", height(600) width(800) replace

/* where last command can also be (all fail):
graph export "Bug.png", height(600) replace
graph export "Bug.png", width(800) replace

Export to PNG without a sizing option works fine. Export with a
context-menu works fine. Export to PNG with sizing option on this
computer in Stata 9.2 and 10.1 works fine.
Stata fails after export regardless of which command was used to draw
the graph (line, scatter, area, etc) which implies -export- is guilty.
Before the crash, Stata actually produces the requested PNG file.
While Stata 10 (and Stata 9) scales the graph maintaining aspect ratio
to fit to the new dimensions, Stata 11 seems to stretch the graph,
which is not desirable. Is it the new behavior?

Is there any workaround for the current version of Stata 11? The
-version- statement doesn't help.

About: Windows Server 2003, Stata MP8-64, v11.0.669, born 13 Jul 2009.

Thank you,
    Sergiy Radyakin
*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index