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.
no more error with texlive 2014 but I can't see the image with okular
this seems to work fine with texlive 2015