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


View this message in rfc822 format

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

>> Date: Thu, 05 Jan 2023 20:58:24 +0000
>> From: Gregory Heytings <gregory <at> heytings.org>
>> cc: Ihor Radchenko <yantar92 <at> posteo.net>, 60308 <at> debbugs.gnu.org,
>>     bugs <at> gnu.support
>>
>> >>> I can't read this file with emacs -Q:
>> >>>
>> >>> https://gnu.support/files/tmp/2023-01-05/FR%20205.pdf
>> >>
>> >> I can reproduce on Emacs 30 and Emacs 29, but not on Emacs 28
>> >>
>> >> Recipe: emacs -Q /path/to/the/linked/downloaded/pdf
>> >>
>> >> Observed: empty buffer
>> >> Expected: PDF page is displayed
>> >
>> > Can someone bisect this, please?
>> >
>>
>> FTR, that file opens fine here, with Emacs 29 at ec172d748f, at
>> d2a9dae400, at a6bad4d60f, at c59b8dfefa... and with Emacs 28.
>
> Thanks.
>
> So maybe the problem is updates to libraries/executables we use for
> viewing PDF?  AFAIR, this is DocView, and it use Ghostscript and
> libpng?  Maybe both Jean and Ihor had their systems updated recently?

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.)

Steve Berman


[backtrace (application/octet-stream, attachment)]

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

Previous Next


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