Package: auctex;
Reported by: Dylan Thurston <dpt <at> bostoncoop.net>
Date: Sat, 12 Oct 2019 19:48:02 UTC
Severity: normal
Tags: fixed
Found in version 11.91
Done: Ikumi Keita <ikumi <at> ikumi.que.jp>
Bug is archived. No further changes may be made.
View this message in rfc822 format
From: Dylan Thurston <dpt <at> bostoncoop.net> To: Ikumi Keita <ikumi <at> ikumi.que.jp> Cc: 37719 <at> debbugs.gnu.org Subject: bug#37719: 11.91; preview-latex not working (again?) Date: Sun, 13 Oct 2019 11:31:49 -0400
On Sun, Oct 13, 2019 at 09:55:45PM +0900, Ikumi Keita wrote: > Hi Dylan, > > >>>>> Dylan Thurston <dpt <at> bostoncoop.net> writes: > > Preview-latex has stopped working, with errors about /invalidfileaccess. > > (I sometimes also get errors about /typecheck; I have not isolated > > exactly when that happens.) > > [...] > > > This looks similar to earlier permission issues with Ghostscript, but > > I thought those were fixed in this latest version of auctex. > > I think that you are accidentally using old AUCTeX, inferring from the > following diagnosis and the "Subject" header of your report. > > Current AUCTeX version is 12.1. Please confirm whether your AUCTeX is > new enough or not. Thank you, you were correct: for some reason I have not yet tracked down, emacs was using the system-installed version of AUCTeX (11.91) rather than the version I installed via ELPA, which is 12.1.2. I removed the system-installed version, and now the bug reporting headers read as expected: ``` 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: 12.1.2 current state: ============== (setq AUCTeX-date "2019-02-08" window-system 'x LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "/home/dpt/.emacs.d/elpa/auctex-12.1.2/style" "/home/dpt/.emacs.d/auctex/auto" "/home/dpt/.emacs.d/auctex/style" "auto" "style") ``` (full output at the end). Preview-latex is still not working; the error message (on the same minimal file) is now as follows: ``` /usr/bin/gs -dOutputFile\=\(_region_.prv/tmpWdemBH/pr1-1.png\) -q -dDELAYSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r96.1119x96.0946 GS>{<</PermitFileReading[(_region_.pdf)(_region_.prv/tmpWdemBH/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/tmpWdemBH/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/tmpWdemBH/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> ``` (It's maybe worth noting this was working perfectly until recently.) 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: 12.1.2 current state: ============== (setq AUCTeX-date "2019-02-08" window-system 'x LaTeX-version "2e" TeX-style-path '("~/.emacs.d/auctex" "/home/dpt/.emacs.d/elpa/auctex-12.1.2/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 t 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") ) )
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.