Statalist


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

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


From   Federico Belotti <f.belotti@econometrics.it>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: AW: Stata 11 crashes after PNG export with a size option
Date   Mon, 10 Aug 2009 10:06:02 +0200

Same behavior on:

Windows  Server  2003  R2  Standard X64 edition SP2
Stata MP4-64bit 11.0 base    13jul2009

Best,

Federico

--
Federico Belotti
Faculty of Economics
Department of Financial and Quantitative Economics
Tor Vergata University
tel: +39 06 7259 5624/25
e-mail: federico.belotti@uniroma2.it



Tim wrote:
And on Vista Ultimate SP2, 32 bit

Martin Weiss wrote:
<>


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/

*
*   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/



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