Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 489024 - =app-text/texlive-2013 - xelatex fails with pstricks - Error: /invalidfileaccess in --run--
Summary: =app-text/texlive-2013 - xelatex fails with pstricks - Error: /invalidfileacc...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: TeX project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-22 15:32 UTC by Juergen Rose
Modified: 2015-07-28 06:43 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2013-10-22 15:32:03 UTC
Xelatex fails with a small tex file with pstricks:

rose@leopard:/home_leopard/rose/Txt/projects/ClosePackingOfSpheres/Report(189)$ cat xelatex_test.tex
\documentclass[10pt,a4paper]{article}

\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{pstricks,pst-grad}

\begin{document}
hello world

\begin{figure}[ht!]
  \begin{centering}
    \begin{pspicture}[](3,3)
      \pscircle*[linecolor=green](1.5,1.5){0.25}
    \end{pspicture}
    \caption{Circles}
    \label{fig:circles_0}
  \end{centering}
\end{figure}

\end{document}

rose@leopard:/home_leopard/rose/Txt/projects/ClosePackingOfSpheres/Report(190)$ xelatex xelatex_test.tex
This is XeTeX, Version 3.1415926-2.5-0.9999.3 (TeX Live 2013)
 restricted \write18 enabled.
entering extended mode
(./xelatex_test.tex
LaTeX2e <2011/06/27>
...
(/usr/share/texmf-dist/tex/generic/pst-grad/pst-grad.tex
`pst-grad' v1.06, 2006/11/27 (tvz,dg,hv))) (./xelatex_test.aux) [1]
(./xelatex_test.aux)Error: /invalidfileaccess in --run--
Operand stack:
   (/usr/share/texmf-dist/dvips/pstricks/pstricks.pro)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   false   1   %stopped_push   1900   1   3   %oparray_pop   1899   1   3   %oparray_pop   1883   1   3   %oparray_pop   1771   1   3   %oparray_pop   --nostringval--   %errorexec_pop   .runexec2   --nostringval--   --nostringval--   --nostringval--   2   %stopped_push   --nostringval--   1900   1   3   %oparray_pop   --nostringval--
Dictionary stack:
   --dict:1179/1684(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--
Current allocation mode is local
Current file position is 56
GPL Ghostscript 9.10: Unrecoverable error, exit code 1


This seems to be a know issue, compare: http://tug.org/PSTricks/main.cgi/ .
There it is written, that the option -dNOSAFER should be added to the ps2pdf 
line of  .../texlive/20XX/texmf/dvipdfmx/dvipdfmx.cfg.

With gentoo the corresponding file seems to be /etc/texmf/dvipdfmx/dvipdfmx.cfg. I don't know, if this is a bug. But in any case the life would be easier, if this option would added as a default option to 
/etc/texmf/dvipdfmx/dvipdfmx.cfg.
Comment 1 Alexis Ballier gentoo-dev 2014-11-03 15:03:17 UTC
no more error with texlive 2014 but I can't see the image with okular
Comment 2 Alexis Ballier gentoo-dev 2015-07-28 06:43:16 UTC
this seems to work fine with texlive 2015