[XeTeX] xetex, pstricks, dvipdfmx-unsafe.cfg

Herbert Schulz herbs at wideopenwest.com
Fri Mar 19 13:47:14 CET 2021

> On Mar 19, 2021, at 2:58 AM, Bruno Voisin via XeTeX <xetex at tug.org> wrote:
> % xdvipdfmx TransparencyTest.xdv      
> TransparencyTest.xdv -> TransparencyTest.pdf
> [1Error: /invalidfileaccess in --run--
> Operand stack:
>   (/usr/local/texlive/2021/texmf-dist/dvips/pstricks/pstricks.pro)   (r)
> Execution stack:
>   %interp_exit   .runexec2   --nostringval--   run   --nostringval--   2 %stopped_push   --nostringval--   run   run   false   1   %stopped_push 1974   1   3   %oparray_pop   1973   1   3   %oparray_pop   1961   1   3 %oparray_pop   1817   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   run   --nostringval--   2 %stopped_push   --nostringval--   1974   1   3   %oparray_pop   run
> Dictionary stack:
>   --dict:755/1123(ro)(G)--   --dict:0/20(G)--   --dict:75/200(L)--
> Current allocation mode is local
> Last OS error: Permission denied
> Current file position is 69
> GPL Ghostscript 9.53.3: Unrecoverable error, exit code 1
> xdvipdfmx:warning: Filtering file via command -->rungs -q -dALLOWPSTRANSPARENCY -dSAFER -dNOPAUSE -dBATCH -dEPSCrop -sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=1.5 -dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dAutoRotatePages=/None -sOutputFile='/var/folders/1r/dhdtft1s4qgfjwbcpkfhqf5c0000gn/T/dvipdfmx.bo4MzD' '/var/folders/1r/dhdtft1s4qgfjwbcpkfhqf5c0000gn/T/dvipdfmx.FXyduh' -c quit<-- failed.
> xdvipdfmx:warning: Image format conversion for PSTricks failed.
> xdvipdfmx:warning: Interpreting special command pst: (ps:) failed.
> xdvipdfmx:warning: >> at page="1" position="(233.752, 569.147)" (in PDF)
> xdvipdfmx:warning: >> xxx "pst:  tx at Dict begin STP newpath 0.8 SLW 1 0 0 setrgbcolor   28"
> ]
> 6500 bytes written


Sigh... After today's update I just checked texmf-dist/dvipdfmx/dvipdfmx.cfg and, indeed, there is now a -dSAFER flag added to the rungs command. The file date is March 17.

If I now run

xelatex -no-pdf TransparencyTest.tex

and then

xdvipdfmx TransparencyTest.xdv

the output is still

$ xdvipdfmx TransparencyTest.xdv 
TransparencyTest.xdv -> TransparencyTest.pdf
[1   **** WARNING: .setopacityalpha is deprecated (as of 9.53.0) and will be removed in a future release
   **** See .setfillconstantalpha/.setalphaisshape for the improved solution
   **** WARNING: .setopacityalpha is deprecated (as of 9.53.0) and will be removed in a future release
   **** See .setfillconstantalpha/.setalphaisshape for the improved solution
6979 bytes written

and I get a correct PDF. So still no failure. Now that Bruno is also getting a failure I'm really confused.

All this with gd 9.53.3 on the Mac.

PS: to make sure we're all on the same page here's the file I use:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: TransparencyTest.tex
Type: application/octet-stream
Size: 372 bytes
Desc: not available
URL: <https://tug.org/pipermail/xetex/attachments/20210319/e6f4e45d/attachment.obj>
-------------- next part --------------

Note: besides am update to dvipdfmx there was an update to dvipdfmx.universal-darwin and all the formats were also rebuilt today if that's relevant.

Good Luck,

Herb Schulz
herbs at wideopenwest.com

More information about the XeTeX mailing list.