> On 19 Mar 2021, at 14:09, Bruno Voisin <[email protected]> wrote:
>
> I'll try to investigate later today what may have triggered the problem.
Thanks to much debugging by Herb Schulz off-list the source of the problem has
now been identified, I think.
There are two dvipdfmx.cfg in tlpretest:
% kpsewhich -progname=dvipdfmx -format=othertext -all dvipdfmx.cfg
/usr/local/texlive/2021/texmf-config/dvipdfmx/dvipdfmx.cfg
/usr/local/texlive/2021/texmf-dist/dvipdfmx/dvipdfmx.cfg
The one in texmf-config has precedence, and its call of gs includes
-dDELAYSAFER (a synonym for -dNOSAFER):
D "rungs -q -dALLOWPSTRANSPARENCY -dDELAYSAFER -dNOPAUSE -dBATCH -dEPSCrop
-sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=%v
-dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode
-dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode
-dAutoRotatePages=/None -sOutputFile='%o' '%i' -c quit"
It's used by default, and gives no error with TransparencyTest.xdv.
The version in texmf-dist is the one modified by Akira, and its call of gs
includes -dSAFER:
D "rungs -q -dALLOWPSTRANSPARENCY -dSAFER -dNOPAUSE -dBATCH -dEPSCrop
-sPAPERSIZE=a0 -sDEVICE=pdfwrite -dCompatibilityLevel=%v
-dAutoFilterGrayImages=false -dGrayImageFilter=/FlateEncode
-dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode
-dAutoRotatePages=/None -sOutputFile='%o' '%i' -c quit"
It's this version which gives the error reported by Akira with
TransparencyTest.xdv:
[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
By the way, I tried removing -dSAFER from this second version: the output is
the same, confirming that -dSAFER is indeed the gs default.
Bruno Voisin