Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#747181: xpdf: too many warning messages

275 views
Skip to first unread message

Vincent Lefevre

unread,
May 6, 2014, 4:50:01 AM5/6/14
to
Package: xpdf
Version: 3.03-17
Severity: wishlist

On some PDF files, xpdf outputs many warning messages, such as:

Syntax Warning: Bad bounding box in Type 3 glyph

These warnings can fill up the terminal, distract the user, and make
xpdf slow (I have an example where there are more that 1000 warnings
per page). At most one warning per page should be output, possibly
with the number of times it occurred.

-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xpdf depends on:
ii libc6 2.18-5
ii libgcc1 1:4.9.0-2
ii libpoppler44 0.24.5-3
ii libstdc++6 4.9.0-2
ii libx11-6 2:1.6.2-1
ii libxm4 2.3.4-5
ii libxt6 1:1.1.4-1

Versions of packages xpdf recommends:
ii cups-bsd 1.7.2-3
ii gsfonts-x11 0.22
ii poppler-data 0.4.6-5
ii poppler-utils 0.24.5-3

xpdf suggests no packages.

-- no debconf information


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Masanori Goto

unread,
Aug 30, 2018, 7:20:03 PM8/30/18
to
Hi,

Yes, xpdf shows many warnings, and adding "-q" command line option
should make xpdf silent. Could you try it out? Thanks!

Vincent Lefevre

unread,
Sep 17, 2021, 8:50:04 AM9/17/21
to
Control: retitle -1 xpdf: too many incorrect warning messages
Control: severity -1 minor

Hi,

On 2018-08-31 08:10:52 +0900, Masanori Goto wrote:
> Yes, xpdf shows many warnings, and adding "-q" command line option
> should make xpdf silent. Could you try it out? Thanks!

The -q option silences the warnings, but it is described as

Don't print any messages or errors.

i.e. it will also silence the errors, which is not acceptable.

Moreover, there shouldn't be a need to silence anything, as
the PDF file (generated by ps2pdf) appears to be correct;
in particular, atril and xournal don't complain.

The warning comes from xpdf/SplashOutputDev.cc

if (xMin - xt < t3Font->glyphX ||
yMin - yt < t3Font->glyphY ||
xMax - xt > t3Font->glyphX + t3Font->glyphW ||
yMax - yt > t3Font->glyphY + t3Font->glyphH) {
if (t3Font->validBBox) {
error(errSyntaxWarning, -1, "Bad bounding box in Type 3 glyph");
}
return;
}

Note that the values are double's, so that the comparisons may be
subject to floating-point rounding errors. I don't know whether
this is the reason here (I could try to look at this more closely),
but I suppose that this code could issue warnings only because of
that.

If this warning comes from a bug in xpdf, such a bug should be fixed.

--
Vincent Lefèvre <vin...@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

Vincent Lefevre

unread,
Sep 17, 2021, 9:40:04 AM9/17/21
to
On 2021-09-17 14:40:06 +0200, Vincent Lefevre wrote:
> The warning comes from xpdf/SplashOutputDev.cc
>
> if (xMin - xt < t3Font->glyphX ||
> yMin - yt < t3Font->glyphY ||
> xMax - xt > t3Font->glyphX + t3Font->glyphW ||
> yMax - yt > t3Font->glyphY + t3Font->glyphH) {
> if (t3Font->validBBox) {
> error(errSyntaxWarning, -1, "Bad bounding box in Type 3 glyph");
> }
> return;
> }

Actually it doesn't (commenting out this line doesn't change
anything). Perhaps a bug in poppler, then, as it has similar
code in poppler/SplashOutputDev.cc:

if (xMin - xt < t3Font->glyphX || yMin - yt < t3Font->glyphY || xMax - xt > t3Font->glyphX + t3Font->glyphW || yMax - yt > t3Font->glyphY + t3Font->glyphH) {
if (t3Font->validBBox) {
error(errSyntaxWarning, -1, "Bad bounding box in Type 3 glyph");
}
return;
}

Masanori Goto

unread,
Sep 17, 2021, 9:20:04 PM9/17/21
to
Thanks for the check.  It sounds more poppler side.  I just read this email, but are you OK to reassign it to poppler?
Also it might be better to annotate a prefix like "poppler" in the error in general - though it's a bit of a large change...

2021年9月17日(金) 22:30 Vincent Lefevre <vin...@vinc17.net>:

Vincent Lefevre

unread,
Sep 17, 2021, 10:00:02 PM9/17/21
to
Control: reassign -1 libpoppler102 20.09.0-3.1
Control: retitle -1 poppler: many incorrect messages "Syntax Warning: Bad bounding box in Type 3 glyph"
Control: affects -1 xpdf

On 2021-09-18 10:14:03 +0900, Masanori Goto wrote:
> Thanks for the check. It sounds more poppler side. I just read this
> email, but are you OK to reassign it to poppler?

Doing it now.

> Also it might be better to annotate a prefix like "poppler" in the error in
> general - though it's a bit of a large change...

Yes, but if this can be done in the error() function, that would
be quite a small change.
0 new messages