evince shows a mostly blank pdf

Bug #116236 reported by hdante
192
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Poppler
Won't Fix
Medium
cairo
Fix Released
Medium
libcairo (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs
Gutsy
Fix Released
High
Sebastien Bacher

Bug Description

The current libcairo has a bug which makes several document being displayed as mostly blank, the bug is new in gutsy and an annoying one, the suggest fix comes from upstream, is part of the new libcairo 1.4.12 stable update and has been uploaded to hardy

TESTCASE

* open http://launchpadlibrarian.net/9927494/QuickStartGuide_240907.pdf
* notice that most of the document is blank
* open it using an another viewer, notice it's correctly displayed

There is several other example attached to the bug. The patch fixes the issue on gutsy and hardy

Revision history for this message
In , Frédéric Crozat (fcrozat) wrote :

Created an attachment (id=7121)
colored text not displayed

Revision history for this message
In , Freedesktop-pragmata (freedesktop-pragmata) wrote :

poppler 0.5.4 (plus cairo-1.3.12) are not able to properly display http://www.abm.uu.se/evahw/coupon.pdf.

xpdf and Adobe 7 display it fine.

Revision history for this message
hdante (hdante) wrote :

Binary package hint: evince

Evince doesn't correctly opens LeCroy's Camac-to-GPIB interface pdf manual at LeCroy website, while xpdf does.

ProblemType: Bug
Architecture: amd64
Date: Tue May 22 14:17:20 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/evince
Package: evince 0.8.1-0ubuntu1
PackageArchitecture: amd64
ProcCmdline: evince file:///home/hdante/Desktop/8901aman.pdf
ProcCwd: /home/hdante
ProcEnviron:
 LANGUAGE=pt_BR:pt:pt_PT
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=pt_BR.UTF-8
 SHELL=/bin/bash
SourcePackage: evince
Uname: Linux stoneoftears 2.6.20-15-generic #2 SMP Sun Apr 15 06:17:24 UTC 2007 x86_64 GNU/Linux

Revision history for this message
hdante (hdante) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thank you for your bug. Could you attach an example to the bug or give an URL to download one?

Changed in evince:
assignee: nobody → desktop-bugs
importance: Undecided → Low
status: Unconfirmed → Needs Info
Revision history for this message
hdante (hdante) wrote : Re: [Bug 116236] Re: evince shows a mostly blank pdf

 www.*lecroy*
.com/tm/library/manuals/Old_LRS_Manuals/OperatorsManual/8901aman.pdf

2007/5/22, Sebastien Bacher <email address hidden>:
>
> Thank you for your bug. Could you attach an example to the bug or give
> an URL to download one?
>
> ** Changed in: evince (Ubuntu)
> Importance: Undecided => Low
> Assignee: (unassigned) => Ubuntu Desktop Bugs
> Status: Unconfirmed => Needs Info
>
> --
> evince shows a mostly blank pdf
> https://bugs.launchpad.net/bugs/116236
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
Further understanding of the implicit or hidden meanings in this message is
left as an exercise to the reader. Hint: read again.

Henrique Dante de Almeida
<email address hidden>

Revision history for this message
Sebastien Bacher (seb128) wrote :

The text is displayed when selected. I've sent the bug upstream, http://bugzilla.gnome.org/show_bug.cgi?id=440697

Changed in evince:
status: Needs Info → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

poppler bug according to upstream

Changed in evince:
status: Unknown → Confirmed
Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :

What's wrong? It seems to work for me with poppler cvs head. I can see an error message in stdout though

Error: Unknown character collection Adobe-Identity

Revision history for this message
In , Jeff Muizelaar (jeff-infidigm) wrote :

*** Bug 11046 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Jeff Muizelaar (jeff-infidigm) wrote :

Caused by poppler sending bad glyph id's to cairo.
It looks like the embedded fonts do not contain a glyph for the 'space' character.

Changed in evince:
status: Confirmed → Invalid
Revision history for this message
In , Jeff Muizelaar (jeff-infidigm) wrote :

I'm thinking the best place to fix this might be in cairo. i.e. it should handle the error from FT_Load_Glyph more gracefully.

Revision history for this message
In , Jeff Muizelaar (jeff-infidigm) wrote :

Indeed some work has already been done to solve similar problems with cairo.

See this tree:
http://gitweb.freedesktop.org/?p=users/brianewins/cairo;a=shortlog;h=return-status

and the discussion surrounding it:
http://lists.freedesktop.org/archives/cairo/2007-July/010942.html

Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :
Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :
Revision history for this message
In , Sebastien Bacher (seb128) wrote :

somewhat similar ubuntu bug on https://bugs.launchpad.net/bugs/130105

Revision history for this message
In , Freedesktop-pragmata (freedesktop-pragmata) wrote :

The problem is that no text is displayed unless selected (using poppler-0.5.91).

Changed in evince:
status: Invalid → Confirmed
Revision history for this message
In , Freedesktop (freedesktop) wrote :

*** Bug 10401 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Freedesktop (freedesktop) wrote :

*** Bug 11298 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Freedesktop (freedesktop) wrote :
Revision history for this message
In , Freedesktop-pragmata (freedesktop-pragmata) wrote :

Behdad,

thanks for your analysis.

As far as I can understand, this is not a poppler bug. The issue is caused by cairo.

In that case, the question is whether there will be a cairo release in the 1.4 series that fixes this problem.

Thanks for your excellent work,

Pablo

Revision history for this message
In , Freedesktop (freedesktop) wrote :

(In reply to comment #7)
> Behdad,
>
> thanks for your analysis.
>
> As far as I can understand, this is not a poppler bug. The issue is caused by
> cairo.
>
> In that case, the question is whether there will be a cairo release in the 1.4
> series that fixes this problem.

Working on it:

http://lists.freedesktop.org/archives/cairo/2007-September/011395.html

> Thanks for your excellent work,
>
>
> Pablo
>

Revision history for this message
In , Freedesktop (freedesktop) wrote :

commit 79d975f84bcc32e91db517d71a7312e2e1d653d4
Author: Behdad Esfahbod <email address hidden>
Date: Wed Sep 12 17:45:11 2007 -0400

    [cairo-ft-font] Ignore FT_Load_Glyph errors other than out-of-memory
    Same for FT_Render_Glyph.

    When the user asks us to render a glyph that is not available in the font,
    it's mostly an unavoidable kind of error for them, as in, they can't
    avoid such a call. So it's not nice to put cairo_t in an error state and
    refuse any further drawying.

    Many PDF files are created using buggy software and cause such glpyh-not-found
    errors for CID 0 for example.

    Eventually we should propagate these kind of errors up and return it from
    the function call causing it, but that needs API change to add return value
    to all text functions, so for now we just ignore these errors.

Revision history for this message
In , Sebastien Bacher (seb128) wrote :

The patch fixes the rendering of several pdf but the bug description example is still buggy, reopening

Revision history for this message
Sebastien Bacher (seb128) wrote :
Changed in poppler:
status: Confirmed → Triaged
Revision history for this message
Sebastien Bacher (seb128) wrote :

libcairo (1.4.10-1ubuntu4) gutsy; urgency=low

  * debian/patches/90_from_git_fix_not_available_glyph_handling.dpatch:
    - patch from git, fix rendering issue when some glyphs are not available
      (LP: #116236)

 -- Sebastien Bacher <email address hidden> Fri, 28 Sep 2007 13:49:31 +0200

Changed in libcairo:
status: Triaged → Fix Released
Revision history for this message
sam tygier (samtygier) wrote :
Revision history for this message
Matteo Settenvini (tchernobog) wrote :

Also the attached PDF is mostly blank, whereas Adobe Acrobat shows it correctly. Is it also due to this problem, or due to transparency? Can anyone check?

Revision history for this message
sam tygier (samtygier) wrote :

this is still happening.

it is possible that two bugs have become muddled here
https://bugs.freedesktop.org/show_bug.cgi?id=8399
http://bugs.freedesktop.org/show_bug.cgi?id=9846

but both of those are open upstream.

there are many pdfs that still do not display after libcairo (1.4.10-1ubuntu4)
http://www.studentenwerk-dresden.de/docs/wohnen/gaestehaus_flyer200611.pdf
http://www.greenpeace.org.uk/files/pdfs/climate/howtosavetheclimatepers.pdf
http://launchpadlibrarian.net/9611234/nytimes-firefox-final.pdf

i think its right to raise the importance. this breaks rendering of many pdfs in a core app.

Changed in libcairo:
importance: Low → Medium
status: Fix Released → Confirmed
Revision history for this message
James Troup (elmo) wrote :

I'm also seeing this on gutsy with the attached PDF. The PDF renders fine with feisty evince and also with acroread.

Changed in libcairo:
status: Unknown → Confirmed
Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :

*** Bug 12823 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Runar-mopo (runar-mopo) wrote :

Background color also renders in white, apparently. See the attachment to bug 12823.

Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :

*** Bug 10484 has been marked as a duplicate of this bug. ***

Revision history for this message
Onno Leerink (onno-leerink-bode) wrote :

I can confirm the last comment. On feisty evince this document rendered fine but on gutsy the text and some pictures are missing. Rendering with xpdf is fine. When I select the text I can see it, the pictures do not show. Other PDF files do not show this problem.

Revision history for this message
refdoc (refdoc) wrote :

Ok, I have some comment which might be related.

I found yesteday when I upgraded via commandline from feisty to gutsy PDFs opened but appeared totally blank with evince. They were fine with acroread and they were fine with epdfview which also relies on the poppler libraries.

But then I noticed that evince was set to a zoom of 400% (not sure whether this was my fault or not) and I set it to 100% - immediately the pdf appeared fine. When I then went back to 400% zoom it zoomed fine and had no display problem. When I left evince and then reopened the file with 400% it was fine too as if the problem never existed.

Revision history for this message
refdoc (refdoc) wrote :

Further to above, the document posted by Onno (Dutch Laguna pricelist) is rendering incomplete both in epdfview and in evince.

Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :

I've just compiled cairo snapshot 1.5.2 and tried again with all of the test cases reported here (and its duplicates). All of them are rendered correctly now :-)

Thank you all for your help (and cairo team for fixing it, of course)

Revision history for this message
In , Frédéric Crozat (fcrozat) wrote :

This bug is in fact a duplicate of cairo bug #9846

Revision history for this message
In , Frédéric Crozat (fcrozat) wrote :

correction, to get all PDF rendered correctly, you need fixes for bugs #12284 AND #9846, ie git commit d62f8861689d8b9a9a837043fb78813f0407abd4 and 79d975f84bcc32e91db517d71a7312e2e1d653d4 against cairo 1.4.10

Changed in evince:
status: Confirmed → Invalid
Revision history for this message
The Walrus and the Carpenter (nikolai-bourbaki) wrote :

I've found some another example of this on the current evince 2.20.0 that comes with gusty 7.10 - When download PDF from "Physics Review", I find most files render correctly in KPDF but not in evince - The thumbnails are rendered in evince but not the full page view? I cannot repost copyrighted PDFs here but attach a screenshot.

Revision history for this message
sam tygier (samtygier) wrote :
Revision history for this message
Stephan7 (sshsteph007) wrote :

Comparing xpdf with Evince for the last (http://launchpadlibrarian.net/10546403/EXPRESS_11212007.pdf)
shows indeed that Evince is missing some parts.

Ubuntu gutsy 7.10 (updated upto 26 nov 2007)
xpdf --> 3.02-1.2ubuntu1.1
evince --> 2.20.1-0ubuntu1
libpango1.0-0 --> 1.18.3-0ubuntu1
libcairo2 --> 1.4.10-1ubuntu4

Revision history for this message
In , Jeff Muizelaar (jeff-infidigm) wrote :

Are you sure? coupon.pdf shows text fine for me.

Revision history for this message
In , Sebastien Bacher (seb128) wrote :

what libcairo version do you use?

Revision history for this message
In , Sebastien Bacher (seb128) wrote :

That's fixed using the new libcairo

Changed in libcairo:
status: Confirmed → Triaged
Changed in libcairo:
milestone: none → ubuntu-8.04
Revision history for this message
In , Jeff Muizelaar (jeff-infidigm) wrote :

*** Bug 11462 has been marked as a duplicate of this bug. ***

Changed in libcairo:
status: Confirmed → Fix Released
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Fixed upstream, thanks.

Changed in libcairo:
status: Triaged → Fix Committed
Revision history for this message
Stephan7 (sshsteph007) wrote :

Just updated ubuntu (5 dec 2007) and got libcairo2 1.4.10-1ubuntu4.1

However above document (http://launchpadlibrarian.net/10546403/EXPRESS_11212007.pdf) still fails.
And also http://launchpadlibrarian.net/10124030/35_prijslijst_nieuwe_laguna.pdf fails.

Trying the original first reported PDF document reads OK, so probably the others is another bug.

Revision history for this message
Mathijs (mdenburger) wrote :

Here's another PDF that is still not rendered correctly.

Revision history for this message
Sebastien Bacher (seb128) wrote :

libcairo (1.4.10-1ubuntu5) hardy; urgency=low

  * debian/patches/90_from_git_fix_zero_sized_bitmap_handling.dpatch:
    - patch from git, "Under rare circumstances we may need to extract a
      surface that represents a bitmap with width==0 and rows==0.
      Detect this case at the start and simply return a zero-sized surface."
      This fix some pdf being displayed as mostly blank when using evince
      (LP: #116236)

 -- Sebastien Bacher <email address hidden> Sat, 08 Dec 2007 12:40:12 +0100

Changed in libcairo:
status: Fix Committed → Fix Released
Revision history for this message
Sebastien Bacher (seb128) wrote :

I'm working on backporting to fix the gutsy

Changed in libcairo:
assignee: nobody → seb128
importance: Undecided → High
status: New → In Progress
Revision history for this message
Sebastien Bacher (seb128) wrote :
description: updated
description: updated
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :
Revision history for this message
Sebastien Bacher (seb128) wrote :

I've tested the patched version on gutsy and verified it fixes the issue using several of the example attached to the bug and uploaded to gutsy-proposed now

Revision history for this message
Ricardo Pérez López (ricardo) wrote :
Revision history for this message
Michael R. Head (burner) wrote :

Presumably this is why the GNUPDF project has started: http://gnupdf.org/Goals_and_Motivations

Revision history for this message
Martin Pitt (pitti) wrote :

For the record, patch approved. Previous upload has been superseded by -security, so needs to be redone.

Revision history for this message
Sebastien Bacher (seb128) wrote :

gnupdf has been started to workaround libcairo bugs which are not yet fixed? doesn't look like the right way to do things

Revision history for this message
Sebastien Bacher (seb128) wrote :

reuploaded as 1.4.10-1ubuntu4.3

Revision history for this message
Martin Pitt (pitti) wrote :

Accepted into gutsy-proposed, please test.

Changed in libcairo:
status: In Progress → Fix Committed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Verification done:

Test with libcairo2 1.4.10-1ubuntu4.2 it only show the text if you select it.
Test with libcairo2 1.4.10-1ubuntu4.3 it display the text and the images of the attached pdfs on the report, the bug is fixed, thanks.

Revision history for this message
Michael R. Head (burner) wrote :

Sweet. I had to restart X (quitting evince wasn't enough) after getting the new libcairo2 to see the change.

Revision history for this message
Kees Cook (kees) wrote :

This update will likely be going in as a security fix -- this bug was uncovered on all previous libcairo releases due to the recent memory allocation fixes.

Revision history for this message
Sebastien Bacher (seb128) wrote :

libcairo (1.4.10-1ubuntu4.4) gutsy-security; urgency=low

  * debian/patches/90_from_git_fix_zero_sized_bitmap_handling.dpatch:
    - patch from git, "Under rare circumstances we may need to extract a
      surface that represents a bitmap with width==0 and rows==0.
      Detect this case at the start and simply return a zero-sized surface."
      This fix some pdf being displayed as mostly blank when using evince
      (LP: #116236)

 -- Sebastien Bacher <email address hidden> Tue, 11 Dec 2007 10:24:49 +0100

Revision history for this message
Sebastien Bacher (seb128) wrote :

libcairo (1.4.2-0ubuntu1.3) feisty-security; urgency=low

  * debian/patches/90_from_git_fix_zero_sized_bitmap_handling.dpatch:
    - patch from git, "Under rare circumstances we may need to extract a
      surface that represents a bitmap with width==0 and rows==0.
      Detect this case at the start and simply return a zero-sized surface."
      This fix some pdf being displayed as mostly blank when using evince
      (LP: #116236)

 -- Sebastien Bacher <email address hidden> Tue, 11 Dec 2007 10:24:49 +0100

Changed in libcairo:
status: Fix Committed → Fix Released
Revision history for this message
yvan (yvan-strahm) wrote :

Thank you,

The new libcairo fixed the bug for me

Revision history for this message
Matteo Settenvini (tchernobog) wrote :

Fixes the rendering of the first page of the Firefox ad (http://launchpadlibrarian.net/9611234/nytimes-firefox-final.pdf) -- thanks!
However, the firefox logo on the second page isn't showed, whereas it should be present. So I guess either that is a different problem, or it requires a different solution.

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

There's a minor problem:

1. Download http://www.juntadeandalucia.es/educacion/portal/com/bin/Contenidos/RRHH/concursos_traslados_2008/Cuerpos_de_Secundaria/ORD251007/1194856560044_soliictud.pdf

2. Put the PDF file into your desktop (for instance).

3. If you open the file, it looks ok (great!).

4. BUT... the preview that Nautilus shows is mostly blank.

Revision history for this message
Ricardo Pérez López (ricardo) wrote :

OK, forget my last comment: it was a cache problem. The bug is fixed for me. Thanks a lot!

Revision history for this message
In , Carlos Garcia Campos (carlosgc) wrote :

Here is a document where the problem is still reproducible witht current poppler and cairo 1.6.5:

http://www.physco.com/evince/SP07_National_Satellite_P12.pdf

"The missing text in the attached PDF starts at the table on page 4, and runs to
the end of the document on page 11."

Originally reported here: http://bugzilla.gnome.org/show_bug.cgi?id=502806

I don't know whether it's the same problem or not.

Changed in evince:
importance: Unknown → Medium
status: Invalid → Won't Fix
Changed in libcairo:
importance: Unknown → Medium
Changed in evince:
importance: Medium → Unknown
Changed in libcairo:
importance: Medium → Unknown
Changed in evince:
importance: Unknown → Medium
Changed in libcairo:
importance: Unknown → Medium
Mathew Hodson (mhodson)
affects: evince → poppler
Mathew Hodson (mhodson)
affects: libcairo → cairo
To post a comment you must log in.