Evince displays red haze over graphic elements

Bug #109995 reported by Pat Leamon
14
Affects Status Importance Assigned to Milestone
Poppler
Fix Released
Medium
poppler (Ubuntu)
Fix Released
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: evince

A program I'm writing uses JFreeChart and Jasper Reports to generate PDF's via Webwork. The charts in these PDF's now have a red haze over the top of them when viewed with Evince 0.8.1 (I upgraded to 7.04 this morning) The haze appears to be centered around the middle of the pictures (gets darker towards the middle). This did not happen with the evince that ships with Dapper or Edgy, and Adobe pdf viewer renders it correctly in windows. I'll try to attach a generated PDF to this bug report.

ProblemType: Bug
Architecture: i386
Date: Wed Apr 25 16:39:55 2007
DistroRelease: Ubuntu 7.04
ExecutablePath: /usr/bin/evince
Package: evince 0.8.1-0ubuntu1
PackageArchitecture: i386
ProcCmdline: /usr/bin/evince /tmp/favourites-6.action
ProcCwd: /home/patrick
ProcEnviron:
 SHELL=/bin/bash
 PATH=/bin:/usr/bin:/usr/X11R6/bin
 LANG=en_GB.UTF-8
 LANGUAGE=en_GB:en
SourcePackage: evince
Uname: Linux bighead 2.6.20-15-generic #2 SMP Sun Apr 15 07:36:31 UTC 2007 i686 GNU/Linux

Revision history for this message
Pat Leamon (pleamonhp) wrote :
Revision history for this message
Pat Leamon (pleamonhp) wrote :
Revision history for this message
Pat Leamon (pleamonhp) wrote :
Revision history for this message
didier (did447-deactivatedaccount) wrote :

But ok in xpdf

Changed in evince:
status: Unconfirmed → Confirmed
Revision history for this message
In , Nickolay V. Shmyrev (nshmyrev) wrote :

This is the same problem as in bug 3387, but with different document.

Revision history for this message
In , Nickolay V. Shmyrev (nshmyrev) wrote :

Created an attachment (id=9897)
Test document

This document draws 1x1 image pattern and as a result cairo device output has red opaque rectangle drawn around the picture.

Revision history for this message
In , Nickolay V. Shmyrev (nshmyrev) wrote :

Cairo bug 5904 scaling 1x1 images doesn't have useful results

Revision history for this message
Franck (alci) wrote :

Hi,

I reported the same problem to evince list, and it appears to be a problem with Cairo, no plopper. See
https://bugs.freedesktop.org/show_bug.cgi?id=10881

Changed in evince:
assignee: nobody → desktop-bugs
importance: Undecided → Low
Changed in poppler:
status: Unknown → Confirmed
Revision history for this message
Franck (alci) wrote :

The bug is still present in Gusty with evince package 2.19.92-0ubuntu1...

Changed in poppler:
status: Confirmed → Triaged
Revision history for this message
Franck (alci) wrote :

Hardy beta, evince 2.22.0ubuntu2: still doesn't work.

Revision history for this message
Franck (alci) wrote :

This long living bug is still present in Intrepid Alpha4...
Don't know how to help on this one ?

Revision history for this message
In , Nickolay V. Shmyrev (nshmyrev) wrote :

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

Revision history for this message
In , Nickolay V. Shmyrev (nshmyrev) wrote :

Created an attachment (id=20195)
Quick and dirty patch to fix this issue

Revision history for this message
Franck (alci) wrote :

Nickolay Shmyrev (Evince developper) recently submitted a "quick and dirty" patch to this specific problem.

See https://bugs.freedesktop.org/show_bug.cgi?id=10881#c4
I would like to test it, but I really have no clue how to do it...
Could someone help me on this ? (ie provide a patch poppler lib, or better teach me how to do it myself (at least some pointers))

The patch is :

diff --git a/poppler/CairoOutputDev.cc b/poppler/CairoOutputDev.cc
index 26b8010..f5e5c9a 100644
--- a/poppler/CairoOutputDev.cc
+++ b/poppler/CairoOutputDev.cc
@@ -1609,6 +1609,9 @@ void CairoOutputDev::drawImage(GfxState *state, Object *ref, Stream *str,
   cairo_matrix_t matrix;
   int is_identity_transform;

+ if (width == 1 && height == 1)
+ return;
+
   buffer = (unsigned char *)gmalloc (width * height * 4);

   /* TODO: Do we want to cache these? */

Revision history for this message
Franck (alci) wrote :

I tried this :

apt-get install dpkg-dev
apt-get source poppler
apt-get build-dep poppler <-- LOT of stuff here

changed the source in poppler/CairoOutputDev.cc

dpkg-buildpackage -rfakeroot -uc -b
dpkg -i libpoppler3_0.8.7-1_amd64.deb

Then I tried a red report, but it is still broken. The point is I can't tell if I am really using the modified version of poppler or not, or if my build take my modification into account or not, ... so it is difficult to go back to Nickolay :(

Any hint ?

Revision history for this message
Paco Avila (monkiki) wrote :

Can somebody confirm the fix?

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

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

Revision history for this message
encompass (encompass) wrote :

Well, I haven't seen any change, I still have the issue here in my documents still in 8.10. I will test with 9.04 soon.
Regards,
Jason

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

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

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

Fixed in git master.

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

the bug has been fixed upstream now

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

the new version fixing this issue is in karmic now

Changed in poppler (Ubuntu):
status: Fix Committed → Fix Released
Changed in poppler:
importance: Unknown → Medium
Changed in poppler:
importance: Medium → Unknown
Changed in poppler:
importance: Unknown → Medium
Revision history for this message
Franck (alci) wrote :

I think this bug is solved in Maverick (evince 2.32.0-0ubuntu1). At least, I can view the example "red" pdf attached to this bug report.

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

Duplicates of this bug

Other bug subscribers

Remote bug watches

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