emacs auctex latex-preview invalidfileaccess error and gs

Bug #789608 reported by George Moutsopoulos
This bug report is a duplicate of:  Bug #543266: preview latex fails with pdflatex. Edit Remove
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
auctex (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: auctex

I installed emacs 23.2.1 and auctex, an emacs extension for writen/compiling latex. Also installed gs 9.01. Using kubuntu natty. All installations from kubuntu repository.

Using the preview-latex feature in emacs I get an invalidfileaccess error. The bug seems to be corrected in
http://lists.gnu.org/archive/html/bu.../msg00017.html
and
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=610714

but I do't know how to apply the patch from http://lists.gnu.org/archive/html/bu.../msg00017.html. This is the output from emacs with the error:

gs -dOutputFile\=\(_region_.prv/tmp3086MfS/pr1-3.png\) -q -dSAFER -dNOPAUSE -DNOPLATFONTS -dPrinted -dTextAlphaBits\=4 -dGraphicsAlphaBits\=4 -sDEVICE\=png16m -r94.1897x94.1727
GS>{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 gsave 0.933608 0.890639 0.738293 setrgbcolor clippath fill grestore }{pop}ifelse}bind/PageSize[1 1]>>setpagedevice/preview-do{[count 3 roll save]3 1 roll dup length 0 eq{pop}{setpagedevice}{ifelse .runandhide}stopped{handleerror quit}if aload pop restore}bind def [(_region_.prv/tmp3086MfS/preview.ps)(r)file]aload exch dup 0 setfileposition 54521()/SubFileDecode filter cvx .runandhide aload pop dup dup 55385 setfileposition 216()/SubFileDecode filter cvx<<>>preview-do
Error: /typecheck in --setfileposition--
Operand stack:
   --nostringval-- (_region_.prv/tmp3086MfS/preview.ps) (r) (r) (r) 55601 55601 55601 55385
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:1163/1684(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)--
Current allocation mode is local
Current file position is 30
GS<9>

I thought it should be submitted as a bug to launchpad.

Revision history for this message
George Moutsopoulos (gmoutso) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in auctex (Ubuntu):
status: New → Confirmed
Revision history for this message
hideki (hideki) wrote :

Same here.
Installing preview.el from auctex cvs repo fixes this problem.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.