Bug 6637 - [epdfview] Red and blue colors are switched
Summary: [epdfview] Red and blue colors are switched
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 2
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard: mga2-32-OK MGA2-64-OK
Keywords: validated_update
Depends on:
Blocks:
 
Reported: 2012-06-30 13:25 CEST by Raphael Groner
Modified: 2012-07-10 18:36 CEST (History)
7 users (show)

See Also:
Source RPM: epdfview
CVE:
Status comment:


Attachments
pdf shown with wrong colors (630.55 KB, application/pdf)
2012-06-30 13:26 CEST, Raphael Groner
Details
screenshot taken directly from website that was printed into pdf (341.89 KB, image/png)
2012-06-30 13:27 CEST, Raphael Groner
Details
wrong colors (455.62 KB, image/png)
2012-06-30 13:30 CEST, Raphael Groner
Details

Description Raphael Groner 2012-06-30 13:25:41 CEST
Description of problem:
It seems that epdfview confuses the values for red and blue for some images. See the attached reference pdf and compare with the png image. I remember a very old bug from older days. So I guess this is upstream related and a patch has to be available somewhere, sorry I've found no link so far. Maybe related more to poppler, dunno.

Version-Release number of selected component (if applicable):
epdfview 0.20.1
popper 0.1.8


How reproducible:
yes

Steps to Reproduce:
1. open pdf in epdfview
2.
3.
Comment 1 Raphael Groner 2012-06-30 13:26:53 CEST
Created attachment 2510 [details]
pdf shown with wrong colors
Comment 2 Raphael Groner 2012-06-30 13:27:41 CEST
Created attachment 2511 [details]
screenshot taken directly from website that was printed into pdf
Comment 3 Raphael Groner 2012-06-30 13:30:02 CEST
Created attachment 2512 [details]
wrong colors

red and blue color values are confused
Comment 4 Raphael Groner 2012-06-30 13:32:46 CEST
Version-Release number of selected component (if applicable):
epdfview 0.1.8
poppler 0.20.1
Comment 5 Raphael Groner 2012-06-30 13:43:32 CEST
$ ldd /usr/bin/epdfview 
	linux-gate.so.1 =>  (0xffffe000)
	libgthread-2.0.so.0 => /lib/libgthread-2.0.so.0 (0xb772e000)
	libglib-2.0.so.0 => /lib/libglib-2.0.so.0 (0xb7635000)
	libpoppler-glib.so.8 => /usr/lib/libpoppler-glib.so.8 (0xb75f9000)
	libgdk-x11-2.0.so.0 => /usr/lib/libgdk-x11-2.0.so.0 (0xb754a000)
	libcairo.so.2 => /usr/lib/libcairo.so.2 (0xb742a000)
	libgobject-2.0.so.0 => /lib/libgobject-2.0.so.0 (0xb73da000)
	libgtk-x11-2.0.so.0 => /usr/lib/libgtk-x11-2.0.so.0 (0xb6f7c000)
	libgdk_pixbuf-2.0.so.0 => /usr/lib/libgdk_pixbuf-2.0.so.0 (0xb6f5b000)
	libpango-1.0.so.0 => /usr/lib/libpango-1.0.so.0 (0xb6f10000)
	libcups.so.2 => /usr/lib/libcups.so.2 (0xb6eb7000)
	libpthread.so.0 => /lib/i686/libpthread.so.0 (0xb6e9d000)
	libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6db5000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6d98000)
	libc.so.6 => /lib/i686/libc.so.6 (0xb6c19000)
	libpcre.so.0 => /lib/libpcre.so.0 (0xb6bda000)
	librt.so.1 => /lib/i686/librt.so.1 (0xb6bd1000)
	libpoppler.so.26 => /usr/lib/libpoppler.so.26 (0xb69c6000)
	libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0xb693c000)
	libm.so.6 => /lib/i686/libm.so.6 (0xb6911000)
	libpangocairo-1.0.so.0 => /usr/lib/libpangocairo-1.0.so.0 (0xb6904000)
	libgio-2.0.so.0 => /lib/libgio-2.0.so.0 (0xb679e000)
	libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0xb6768000)
	libXext.so.6 => /usr/lib/libXext.so.6 (0xb6756000)
	libXrender.so.1 => /usr/lib/libXrender.so.1 (0xb674c000)
	libXinerama.so.1 => /usr/lib/libXinerama.so.1 (0xb6748000)
	libXi.so.6 => /usr/lib/libXi.so.6 (0xb6737000)
	libXrandr.so.2 => /usr/lib/libXrandr.so.2 (0xb672e000)
	libXcursor.so.1 => /usr/lib/libXcursor.so.1 (0xb6723000)
	libXcomposite.so.1 => /usr/lib/libXcomposite.so.1 (0xb671f000)
	libXdamage.so.1 => /usr/lib/libXdamage.so.1 (0xb671b000)
	libXfixes.so.3 => /usr/lib/libXfixes.so.3 (0xb6715000)
	libX11.so.6 => /usr/lib/libX11.so.6 (0xb65dc000)
	libpixman-1.so.0 => /usr/lib/libpixman-1.so.0 (0xb6544000)
	libEGL.so.1 => /usr/lib/libEGL.so.1 (0xb6525000)
	libdl.so.2 => /lib/libdl.so.2 (0xb6520000)
	libpng15.so.15 => /usr/lib/libpng15.so.15 (0xb64d2000)
	libxcb-shm.so.0 => /usr/lib/libxcb-shm.so.0 (0xb64cd000)
	libxcb-render.so.0 => /usr/lib/libxcb-render.so.0 (0xb64c2000)
	libxcb.so.1 => /usr/lib/libxcb.so.1 (0xb64a0000)
	libz.so.1 => /lib/libz.so.1 (0xb6488000)
	libGL.so.1 => /usr/lib/libGL.so.1 (0xb6428000)
	libffi.so.5 => /usr/lib/libffi.so.5 (0xb6420000)
	libatk-1.0.so.0 => /usr/lib/libatk-1.0.so.0 (0xb63ff000)
	libgmodule-2.0.so.0 => /lib/libgmodule-2.0.so.0 (0xb63fa000)
	libpangoft2-1.0.so.0 => /usr/lib/libpangoft2-1.0.so.0 (0xb63ce000)
	libgssapi_krb5.so.2 => /usr/lib/libgssapi_krb5.so.2 (0xb638c000)
	libgnutls.so.28 => /usr/lib/libgnutls.so.28 (0xb6287000)
	libavahi-common.so.3 => /usr/lib/libavahi-common.so.3 (0xb6279000)
	libavahi-client.so.3 => /usr/lib/libavahi-client.so.3 (0xb6267000)
	/lib/ld-linux.so.2 (0xb7747000)
	liblcms2.so.2 => /usr/lib/liblcms2.so.2 (0xb6218000)
	libtiff.so.5 => /usr/lib/libtiff.so.5 (0xb61a4000)
	libjpeg.so.8 => /usr/lib/libjpeg.so.8 (0xb614c000)
	libopenjpeg.so.1 => /usr/lib/libopenjpeg.so.1 (0xb6126000)
	libresolv.so.2 => /lib/libresolv.so.2 (0xb610e000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0xb5fbd000)
	libX11-xcb.so.1 => /usr/lib/libX11-xcb.so.1 (0xb5fb9000)
	libxcb-dri2.so.0 => /usr/lib/libxcb-dri2.so.0 (0xb5fb3000)
	libxcb-xfixes.so.0 => /usr/lib/libxcb-xfixes.so.0 (0xb5fab000)
	libudev.so.0 => /lib/libudev.so.0 (0xb5f9a000)
	libdrm.so.2 => /usr/lib/libdrm.so.2 (0xb5f8d000)
	libwayland-client.so.0 => /usr/lib/libwayland-client.so.0 (0xb5f84000)
	libwayland-server.so.0 => /usr/lib/libwayland-server.so.0 (0xb5f78000)
	libgbm.so.1 => /usr/lib/libgbm.so.1 (0xb5f72000)
	libXau.so.6 => /usr/lib/libXau.so.6 (0xb5f6e000)
	libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0xb5f67000)
	libglapi.so.0 => /usr/lib/libglapi.so.0 (0xb5f49000)
	libxcb-glx.so.0 => /usr/lib/libxcb-glx.so.0 (0xb5f30000)
	libXxf86vm.so.1 => /usr/lib/libXxf86vm.so.1 (0xb5f2a000)
	libkrb5.so.3 => /usr/lib/libkrb5.so.3 (0xb5e4d000)
	libk5crypto.so.3 => /usr/lib/libk5crypto.so.3 (0xb5e22000)
	libcom_err.so.2 => /lib/libcom_err.so.2 (0xb5e1c000)
	libkrb5support.so.0 => /usr/lib/libkrb5support.so.0 (0xb5e12000)
	libtasn1.so.3 => /usr/lib/libtasn1.so.3 (0xb5e00000)
	libnettle.so.4 => /usr/lib/libnettle.so.4 (0xb5dd7000)
	libhogweed.so.2 => /usr/lib/libhogweed.so.2 (0xb5dc3000)
	libgmp.so.10 => /usr/lib/libgmp.so.10 (0xb5d58000)
	libp11-kit.so.0 => /usr/lib/libp11-kit.so.0 (0xb5d46000)
	libdbus-1.so.3 => /lib/libdbus-1.so.3 (0xb5cfb000)
	liblzma.so.5 => /lib/liblzma.so.5 (0xb5cc9000)
	libjbig.so.1 => /usr/lib/libjbig.so.1 (0xb5cbc000)
Comment 6 Raphael Groner 2012-06-30 13:54:32 CEST
$ urpmq -i libpng15_15 libpng12_0 libjpeg62 libjpeg8 libdrm-common libdrm2 |grep -i version
Version     : 2.4.37
Version     : 1.5.11
Version     : 2.4.37
Version     : 1.2.0
Version     : 1.2.0
Version     : 1.2.49
Comment 7 Raphael Groner 2012-06-30 15:35:01 CEST
Claws-Mail pdf plugin and mupdf both don't show that behaviour.

Source RPM: (none) => epdfview-0.1.8-2.mga2

Comment 8 Manuel Hiebel 2012-07-01 19:35:20 CEST
I can reproduce this bug with sumatrapdf under windows (vm)

Are you agree to close this bug as wontfix ?
Comment 9 Raphael Groner 2012-07-01 20:12:44 CEST
(In reply to comment #8)
> I can reproduce this bug with sumatrapdf under windows (vm)

Honestly, then you should report a bug to sumatrapdf developers. (Out of scope here).

> Are you agree to close this bug as wontfix ?

No. I disagree. We should consider to report that bug then to upstream development. 
But it's not reproducible on other distributions, for instance ArchLinux with same versions of both epdfview and libpoppler.
Comment 10 Christian Dersch 2012-07-01 20:13:23 CEST
(In reply to comment #8)
> I can reproduce this bug with sumatrapdf under windows (vm)
> 
> Are you agree to close this bug as wontfix ?

Are you serious? "We wont fix this because others have this bug too?". I use Arch Linux too and there the bug doesn't exist with epdfview.

Greetings,

Christian

CC: (none) => chrisdersch

Comment 11 Manuel Hiebel 2012-07-01 21:11:22 CEST
let see that with the maintainer then, a don't have one

Source RPM: epdfview-0.1.8-2.mga2 => poppler
CC: (none) => fundawang, pterjan

Funda Wang 2012-07-01 23:19:30 CEST

Whiteboard: (none) => MGA2TOO

Comment 12 Funda Wang 2012-07-01 23:21:56 CEST
epdfview 0.1.8-3.mga3 should looks better.

Status: NEW => ASSIGNED
Assignee: bugsquad => fundawang
Source RPM: poppler => epdfview
Keywords: (none) => NEEDINFO

Comment 13 Raphael Groner 2012-07-02 22:39:14 CEST
(In reply to comment #12)
> epdfview 0.1.8-3.mga3 should looks better.

Approved. Thanks for the fix.

Resolution: (none) => FIXED
Status: ASSIGNED => RESOLVED

Comment 14 Manuel Hiebel 2012-07-02 23:09:10 CEST
reopening for mga2 since it was pushed to.

Suggested Advisory:
-------------
Updated epdfview add a patch to fix confusion of the values for red and blue for some images in PDF.

https://bugs.mageia.org/show_bug.cgi?id=6637
-------------

SRPM: epdfview-0.1.8-2.1.mga2.src.rpm

QA: easy test case with attachment 2510 [details]
thanks

Hardware: i586 => All
Keywords: NEEDINFO => (none)
Status: RESOLVED => REOPENED
Resolution: FIXED => (none)
Assignee: fundawang => qa-bugs

Raphael Groner 2012-07-03 09:50:39 CEST

Version: Cauldron => 2

Comment 15 Dave Hodgins 2012-07-05 03:50:56 CEST
Testing complete on Mageia 2 i586.

Thanks for including the sample that clearly shows the problem.

CC: (none) => davidwhodgins
Whiteboard: MGA2TOO => MGA2TOO, mga2-32-OK

Comment 16 Zoltan Balaton 2012-07-05 18:12:56 CEST
Tested on MGA2 x86_64. Successfully reproduced the problem with both the included sample and some other pdf files and verified that the package built from epdfview-0.1.8-2.1.mga2.src.rpm fixes it for all files that showed the problem before and still can open them correctly.

Could someone validate this update please?

CC: (none) => balaton
Whiteboard: MGA2TOO, mga2-32-OK => MGA2TOO, mga2-32-OK MGA2-64-OK

Comment 17 claire robinson 2012-07-05 18:21:38 CEST
Thanks Zoltan, you can validate updates if you wish.

Validating

Suggested Advisory:
-------------
Updated epdfview add a patch to fix confusion of the values for red and blue
for some images in PDF.

https://bugs.mageia.org/show_bug.cgi?id=6637
-------------

SRPM: epdfview-0.1.8-2.1.mga2.src.rpm

Could sysadmin please push from core/updates_testing to core/updates

Thanks!

Keywords: (none) => validated_update
CC: (none) => sysadmin-bugs
Whiteboard: MGA2TOO, mga2-32-OK MGA2-64-OK => mga2-32-OK MGA2-64-OK

Comment 18 Thomas Backlund 2012-07-10 18:36:45 CEST
Update pushed:
https://wiki.mageia.org/en/Support/Advisories/MGAA-2012-0112

Status: REOPENED => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.