Same behavior on Vista Business SP2, 64 bit...
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Sergiy Radyakin
Gesendet: Montag, 10. August 2009 02:24
An: statalist@hsphsun2.harvard.edu
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
clear
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:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/