GNU bug report logs - #60308
30.0.50; Can't read some PDF files any more

Previous Next

Package: emacs;

Reported by: Jean Louis <bugs <at> gnu.support>

Date: Sun, 25 Dec 2022 11:37:02 UTC

Severity: normal

Found in version 30.0.50

Done: Eli Zaretskii <eliz <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 60308 <at> debbugs.gnu.org (full text, mbox):

From: Stephen Berman <stephen.berman <at> gmx.net>
To: Gregory Heytings <gregory <at> heytings.org>
Cc: Eli Zaretskii <eliz <at> gnu.org>, yantar92 <at> posteo.net, 60308 <at> debbugs.gnu.org,
 bugs <at> gnu.support
Subject: Re: bug#60308: 30.0.50; Can't read some PDF files any more
Date: Fri, 06 Jan 2023 11:32:24 +0100
[Message part 1 (text/plain, inline)]
On Fri, 06 Jan 2023 10:10:03 +0000 Gregory Heytings <gregory <at> heytings.org> wrote:

>>
>> I see the problem in Emacs 29 and master, but not in Emacs 28, on the same
>> system, i.e. with the same image libraries.  When the bad display appears,
>> the following entry appears in *Messages*:
>>
>> Error parsing SVG image: XML parse error: Error domain 1 code 68 on line
>> 7393 column 18 of data: StartTag: invalid element name
>>
>> This seems to comes from svg_load_image in image.c.  I started Emacs 29 with
>> -Q in gdb after setting a breakpoint at svg_load_image, opened the PDF file,
>> hit the breakpoint and stepped through till the bad display appeared.  The
>> ouput of bt full is attached.  (I also ran Emacs 28 under gdb with the same
>> breakpoint, and there visiting the PDF file does not hit the breakpoint.)
>>
>
> Thanks.  Can you please also share the "/tmp/docview1000/FR
> 205.pdf-7039e6f9886aceec549c36d51591d258/page-1.svg" file?

Attached (gzipped).  In the mean time I found the problem: that file
contains occurrences of "<" and that causes the error; after replacing
them with "&lt;" the PDF is displayed correctly.

On Fri, 06 Jan 2023 10:22:02 +0000 Gregory Heytings <gregory <at> heytings.org> wrote:

>
> And also the output of "mutool -v" (IOW, the version of mupdf that is
> installed on your computer)?

mutool version 1.21.0

Steve Berman

[page-1.svg.gz (application/octet-stream, attachment)]

This bug report was last modified 2 years and 188 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.