This code:
size(3cm);
draw(unitsquare);
label("$A$",(0,0),SW);
label("$B$",(1,0),SE);
label("$C$",(1,1),NE);
label("$D$",(0,1),NW);
taken from the first paragraph of the section 3.4 of the Asymptote manual, instead of producing the image shown in the manual, on my system outputs an image with the square shifted downwards with only the upper part of the square visible (pls see the attached eps file). Above is an area of white space capable of accommodating the whole square should the compilation process complete successfully. Additionally, I get this warning message on exit:
C:\Program Files\MiKTeX 2.9\miktex\bin\x64\dvips.exe: warning: -t selected paper may be too small
Commenting out all label commands, like this:
size(3cm);
draw(unitsquare);
//label("$A$",(0,0),SW);
//label("$B$",(1,0),SE);
//label("$C$",(1,1),NE);
//label("$D$",(0,1),NW);
produces a correct image of the square.
The problem seems to have appeared with the major update of the MikTeX installation at the end of the year, but that is only my guess. I discovered it recently, when I ran a code that worked fine in November last year. It is my guess also that some changes to dvips could be the reason, but I don't know anything of the internals of Asymptote and how it invokes dvips.
I am running Windows 10, Asymptote 2.38 and MiKTeX 2.9.6200 64-bit.
Thank you.
I have just checked I have dvips(k) 5.996, which seems to be a new compilation. Others have reported other problems with this new version:
http://tex.stackexchange.com/questions/343695/dvips5-996-vs-dvips-5-90a-error-with-special-emgraph
Marek
This is a duplicate of a bug that was fixed in Asymptote 2.39:
https://github.com/vectorgraphics/asymptote/issues/24
All further bug reports should be made on github.