Page 1 sur 1

Animation, warning agaçant

Posté : dim. 29 juil. 2012, 03:50
par etienne25
Bonjour,
En compilant l'exemple "Génération d'un cône" trouvé ici (je prends exactement le code donné, sauf la dernière ligne où j'utilise label(A.pdf(... ), j'obtient le warning suivant:

Code : Tout sélectionner

 **** Warning:  Default viewing OC config dictionary has /BaseState /OFF

   **** This file had errors that were repaired or ignored.
   **** The file was produced by:
   **** >>>> MiKTeX pdfTeX-1.40.12 <<<<
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.


Ça semble être un warning émis par pdflatex, et non par Asymptote (quand on efface toutes les étiquettes de l'image, on perd le warning). L'animation fonctionne quand même, mais j'aime bien les compilations "propres", sans warning. Serait-ce ma distribution LaTeX qui cause problème? Merci à l'avance!

J'utilise
Win 7
Asymptote 2.16
MiKTeX 2.9

Re: Animation, warning agaçant

Posté : dim. 29 juil. 2012, 09:53
par maurice
Bonjour,

j'ai le même problème sous linux avec texlive2012 :

Code : Tout sélectionner

$ asy -f pdf -render=4 Cone-gen.asy
   **** Warning:  Default viewing OC config dictionary has /BaseState /OFF

   **** This file had errors that were repaired or ignored.
   **** The file was produced by:
   **** >>>> pdfTeX-1.40.13 <<<<
   **** Please notify the author of the software that produced this
   **** file that it does not conform to Adobe's published PDF
   **** specification.


et en plus, les labels n'apparaissent pas !

resultat.png
resultat.png (4.29 Kio) Vu 8066 fois


bruno

Re: Animation, warning agaçant

Posté : dim. 29 juil. 2012, 10:00
par maurice
Avec l'option de compilation -vvv voici ce qui apparait entre deux schéma identiques :

Code : Tout sélectionner

*gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEPSCrop -dSubsetFonts=true -dEmbedAllFonts=true -dMaxSubsetPct=100 -dPDFSETTINGS=/prepress -dCompatibilityLevel=1.4 -P -dSAFER -dAutoRotatePages=/None -g612x792 -dDEVICEWIDTHPOINTS=176 -dDEVICEHEIGHTPOINTS=209.887 -sOutputFile=Cone-gen+24.pdf Cone-gen+24_.eps
Wrote Cone-gen+24.pdf
Wrote Cone-gen+24.prc
Wrote Cone-gen+24.js
\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{\includemovie[3Dlights=Headlamp,text={\includegraphics[hiresbb]{Cone-gen+24.pdf}},label=,toolbar=true,3Daac=0.000000000000000000,3Dc2c=0.000000000000000000 0.000000000000000000 1.000000000000000000,3Dcoo=0.000000000000000000 0.000000000000000000 -461.327488442433036653,3Droll=0.000000000000000000,3Droo=461.327488442433036653,3Dbg=1.000000000000000000 1.000000000000000000 1.000000000000000000,3Djscript=Cone-gen+24.js]{174.6525pt}{217.81375pt}{Cone-gen+24.prc}}

<Cone-gen+24.pdf, id=56, 176.66pt x 210.6771pt> <use Cone-gen+24.pdf>
*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 174.6525pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 217.81375pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{$S$}


*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 7.92493pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{$S$}


*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 7.92493pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{$A$}


*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 8.80824pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{$A$}


*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 8.80824pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{$B$}


*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 9.53186pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{$B$}


*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 9.53186pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{$C$}


*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 9.26823pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{$C$}


*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 9.26823pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{$D$}


*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 10.08214pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*\fontsize{12}{14.4}\selectfont

*\usefont{\ASYencoding}{\ASYfamily}{\ASYseries}{\ASYshape}%

*\setbox\ASYbox=\hbox{$D$}


*(Please type a command or say `\end')
*\showthe\wd\ASYbox
> 10.08214pt.
<*> \showthe\wd\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\ht\ASYbox
> 8.2pt.
<*> \showthe\ht\ASYbox
                     

*
(Please type a command or say `\end')
*\showthe\dp\ASYbox
> 0.0pt.
<*> \showthe\dp\ASYbox
                     

*
(Please type a command or say `\end')
*gs -q -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dEPSCrop -dSubsetFonts=true -dEmbedAllFonts=true -dMaxSubsetPct=100 -dPDFSETTINGS=/prepress -dCompatibilityLevel=1.4 -P -dSAFER -dAutoRotatePages=/None -g612x792 -dDEVICEWIDTHPOINTS=176 -dDEVICEHEIGHTPOINTS=209.887 -sOutputFile=Cone-gen+27.pdf Cone-gen+27_.eps
Wrote Cone-gen+27.pdf
Wrote Cone-gen+27.prc
Wrote Cone-gen+27.js


Ce qui laisse supposer des problèmes pdflatex mais cela reste du charabia pour moi.

Bruno

Re: Animation, warning agaçant

Posté : dim. 29 juil. 2012, 10:08
par maurice
En commentant les trois lignes :

Code : Tout sélectionner

// dot("$S$",pS,align=N);
// dot("$A$",pA,align=S); dot("$B$",pB,align=SE);
// dot("$C$",pC,align=NE); dot("$D$",pD,align=NW);


le problème demeure ;

par contre avec l'option noprc, soit en ajoutant la ligne :

Code : Tout sélectionner

settings.prc=false;

Ça travaille, .... s'il n'y a pas de labels ...

Avec les labels, même message d'erreur mais les labels apparaissent cette fois.

Tout cela m'embrouille, il est plus sage d'attendre le passage d'un spécialiste.

Bruno

Re: Animation, warning agaçant

Posté : dim. 29 juil. 2012, 16:29
par GM
etienne25 a écrit :Bonjour,
En compilant l'exemple "Génération d'un cône" trouvé ici (je prends exactement le code donné, sauf la dernière ligne où j'utilise label(A.pdf(... ), j'obtient le warning suivant:

Cela semble lié à des modifications de ghostcript.
Le problème constaté avec la version 9.02-64b n'a pas lieu avec la 8.70-32b que j'ai encore d'installé :
je me suis contenté de changer

Code : Tout sélectionner

gs="C:\Program Files\gs\gs9.02\bin\gswin64c.exe";

en

Code : Tout sélectionner

gs="C:\Program Files\gs\gs8.70\bin\gswin32c.exe";

dans mon config.asy, pour le constater.

Quant à l'explication... aucune idée !

maurice a écrit :il est plus sage d'attendre le passage d'un spécialiste.

Pour ce genre de problème, je ne suis pas sûr qu'il y en ait ici : il faut peut-être à nouveau voir du côté du forum Asymptote officiel... où le problème n'est peut-être même pas encore connu.