bug-auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#37719: 11.91; preview-latex not working (again?)


From: Dylan Thurston
Subject: bug#37719: 11.91; preview-latex not working (again?)
Date: Sat, 12 Oct 2019 12:11:06 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

To: address@hidden
Subject: 11.91; preview-latex not working again
From: Dylan Thurston <address@hidden>
--text follows this line--

Preview-latex has stopped working, with errors about /invalidfileaccess.
(I sometimes also get errors about /typecheck; I have not isolated
exactly when that happens.)

On this minimal TeX file:
```
\documentclass{article}

\begin{document}
Testing. $1+1=2$
\end{document}
```

I get the following error message:

```
/usr/bin/gs -dOutputFile\=\(_region_.prv/tmpLERquC/pr1-1.png\) -q -dDELAYSAFER 
-dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 
-sDEVICE\=png16m -r96.1119x96.0946
GS>{<</PermitFileReading[(_region_.pdf)(_region_.prv/tmpLERquC/preview.dsc)]>> 
setuserparams .locksafe} stopped pop {DELAYSAFER{.setsafe}if}stopped 
pop/.preview-BP currentpagedevice/BeginPage get dup null eq{pop{pop}bind}if 
def<</BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1 ne 
or{.preview-BP }{pop}ifelse}bind/PageSize[1 
1]>>setpagedevice/preview-do{/.preview-ST[count 4 roll save]def dup length 0 
eq{pop}{setpagedevice}{ifelse exec}stopped{handleerror quit}if .preview-ST 
aload pop restore}bind def  (_region_.prv/tmpLERquC/preview.dsc)(r)file 
/.preview-ST 1 index def dup 0 setfileposition 412()/SubFileDecode filter cvx 
exec .preview-ST dup dup 412 setfileposition 51()/SubFileDecode filter 
cvx<<>>preview-do
Error: /invalidfileaccess in --file--
Operand stack:
   (_region_.prv/tmpLERquC/preview.dsc)   (r)
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--   
%loop_continue   --nostringval--   --nostringval--   false   1   %stopped_push  
 .runexec2   --nostringval--   --nostringval--   --nostringval--   2   
%stopped_push   --nostringval--
Dictionary stack:
   --dict:746/1123(ro)(G)--   --dict:0/20(G)--   --dict:77/200(L)--
Current allocation mode is local
Last OS error: Permission denied
Current file position is 567
GS<2>
```

Since permissions might be an issue, here are the relevant files left
around:

```
dpt@tulip:/tmp$ ls -lRa _region_.prv/
_region_.prv/:
total 72
drwxr-xr-x  3 dpt  dpt   4096 Oct 12 11:52 .
drwxrwxrwt 20 root root 61440 Oct 12 11:52 ..
drwx------  2 dpt  dpt   4096 Oct 12 11:52 tmpLERquC

_region_.prv/tmpLERquC:
total 12
drwx------ 2 dpt dpt 4096 Oct 12 11:52 .
drwxr-xr-x 3 dpt dpt 4096 Oct 12 11:52 ..
-rw-r--r-- 1 dpt dpt  489 Oct 12 11:52 preview.dsc
dpt@tulip:/tmp$ ls -lRa _region_.*
-rw-r--r-- 1 dpt dpt 3516 Oct 12 11:52 _region_.log
-rw-r--r-- 1 dpt dpt 9149 Oct 12 11:52 _region_.pdf
-rw-r--r-- 1 dpt dpt  240 Oct 12 11:51 _region_.tex

_region_.prv:
total 72
drwxr-xr-x  3 dpt  dpt   4096 Oct 12 11:52 .
drwxrwxrwt 20 root root 61440 Oct 12 11:52 ..
drwx------  2 dpt  dpt   4096 Oct 12 11:52 tmpLERquC

_region_.prv/tmpLERquC:
total 12
drwx------ 2 dpt dpt 4096 Oct 12 11:52 .
drwxr-xr-x 3 dpt dpt 4096 Oct 12 11:52 ..
-rw-r--r-- 1 dpt dpt  489 Oct 12 11:52 preview.dsc
```

I don't see any reason why Emacs wouldn't be able to read that preview.dsc.

This looks similar to earlier permission issues with Ghostscript, but
I thought those were fixed in this latest version of auctex.

Emacs  : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11)
 of 2019-09-22, modified by Debian
Package: 11.91

current state:
==============
(setq
 AUCTeX-date "2017-07-24"
 window-system 'x
 LaTeX-version "2e"
 TeX-style-path '("/var/lib/auctex/emacs/"
                  "/usr/share/emacs/site-lisp/auctex/style"
                  "/home/dpt/.emacs.d/auctex/auto"
                  "/home/dpt/.emacs.d/auctex/style" "auto" "style")
 TeX-auto-save t
 TeX-parse-self t
 TeX-master "Smoothings"
 TeX-command-list '(("TeX"
                     "%(PDF)%(tex) %(file-line-error) %`%(extraopts) 
%S%(PDFout)%(mode)%' %t"
                     TeX-run-TeX nil (plain-tex-mode ams-tex-mode texinfo-mode)
                     :help "Run plain TeX")
                    ("LaTeX" "%`%l%(mode)%' %T" TeX-run-TeX nil
                     (latex-mode doctex-mode) :help "Run LaTeX")
                    ("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil
                     (texinfo-mode) :help "Run Makeinfo with Info output")
                    ("Makeinfo HTML" "makeinfo %(extraopts) --html %t"
                     TeX-run-compile nil (texinfo-mode) :help
                     "Run Makeinfo with HTML output")
                    ("AmSTeX" "amstex %(PDFout) %`%(extraopts) %S%(mode)%' %t"
                     TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
                    ("ConTeXt"
                     "%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
                     TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
                    ("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
                     TeX-run-TeX nil (context-mode) :help
                     "Run ConTeXt until completion")
                    ("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
                     "Run BibTeX")
                    ("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
                    ("View" "%V" TeX-run-discard-or-function t t :help
                     "Run Viewer")
                    ("Print" "%p" TeX-run-command t t :help "Print the file")
                    ("Queue" "%q" TeX-run-background nil t :help
                     "View the printer queue" :visible TeX-queue-command)
                    ("File" "%(o?)dvips %d -o %f " TeX-run-dvips t t :help
                     "Generate PostScript file")
                    ("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil t :help
                     "Convert DVI file to PostScript")
                    ("Dvipdfmx" "dvipdfmx %d" TeX-run-dvipdfmx nil t :help
                     "Convert DVI file to PDF with dvipdfmx")
                    ("Ps2pdf" "ps2pdf %f" TeX-run-ps2pdf nil t :help
                     "Convert PostScript file to PDF")
                    ("Glossaries" "makeglossaries %s" TeX-run-command nil t
                     :help "Run makeglossaries to create glossary file")
                    ("Index" "makeindex %s" TeX-run-index nil t :help
                     "Run makeindex to create index file")
                    ("upMendex" "upmendex %s" TeX-run-index t t :help
                     "Run upmendex to create index file")
                    ("Xindy" "texindy %s" TeX-run-command nil t :help
                     "Run xindy to create index file")
                    ("Check" "lacheck %s" TeX-run-compile nil (latex-mode) :help
                     "Check LaTeX file for correctness")
                    ("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
                     :help "Check LaTeX file for common mistakes")
                    ("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil t
                     :help "Spell-check the document")
                    ("Clean" "TeX-clean" TeX-run-function nil t :help
                     "Delete generated intermediate files")
                    ("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
                     "Delete generated intermediate and output files")
                    ("Other" "" TeX-run-command t t :help
                     "Run an arbitrary command")
                    )
 )





reply via email to

[Prev in Thread] Current Thread [Next in Thread]