Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 125430 - stabilize app-text/poppler-0.5.0-r5 - WAS: kpdf: kde-base/kpdf-3.5.1-r1 =>kde-base/kpdf-3.5.1-r2 introduces bug that causes all images to be rotated 90 degrees
Summary: stabilize app-text/poppler-0.5.0-r5 - WAS: kpdf: kde-base/kpdf-3.5.1-r1 =>kde...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: MIPS Porters
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-07 19:10 UTC by Doc McCuddle
Modified: 2006-08-04 15:55 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Doc McCuddle 2006-03-07 19:10:29 UTC
For whatever reason, the latest kde-base/kpdf-3.5.1-r2 rotates all KPDF rendered images embedded inside PDFs at 90 degree angles. The bug does not exist in kde-base/kpdf-3.5.1-r1.

Portage 2.0.54 (default-linux/x86/2005.1, gcc-3.3.5-20050130, glibc-2.3.4.20041102-r1, 2.6.14-gentoo-r5 i686)
=================================================================
System uname: 2.6.14-gentoo-r5 i686 AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.6.14
ccache version 2.3 [enabled]
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.11
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-Os -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-Os -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 3dnow 3dnowext X a52 aac acl adns alsa apm arts audiofile avi berkdb bitmap-fonts bzip2 cdr crypt djbfft dts dvd dvdr eds emboss encode ethereal expat fam ffmpeg flac foomaticdb fortran gd gdbm gif gpm gstreamer gtk2 hal idn imlib ipv6 java jpeg kde kdeenablefinal lcms libg++ libwww mad mikmod mmx mmxext mng motif mp3 mpeg nptl nvidia ogg oggvorbis opengl pam pcre pdflib perl png python qt quicktime readline spell sse ssl tcpd theora threads tiff truetype truetype-fonts type1-fonts udev urandom usb vorbis xine xml xml2 xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-08 02:30:50 UTC
Might be a poppler problem, can you provide an example pdf that shows that behaviour?
Comment 2 Doc McCuddle 2006-03-08 11:43:16 UTC
I had thought that all images were displayed this way, but as I search for some links to post, I found that a few aren't, though may are. Here are some links to PDFs as well as links to images to how an example page renders on my system.

PDF: http://www.fda.gov/cder/about/whatwedo/testtube.pdf
Image of Page 1: http://putfile.com/pic.php?pic=3/6613205327.jpg&s=x10

PDF: http://www.truecrypt.org/docs/TrueCrypt User Guide.pdf
Image of Page 6: http://putfile.com/pic.php?pic=3/6613224247.jpg&s=x10

PDF: http://download.microsoft.com/download/0/7/1/0715a190-70f5-4b0d-8ced-f9d1e046aa6a/netbench.pdf
Image of Page 17: http://putfile.com/pic.php?pic=3/6613231276.jpg&s=x10

On the last link is an example of Page 17, where the images in the main document are not rotated, but the lower left image in the footer is.

I have these installed:
[I--] [  ] app-text/poppler-0.5.0-r4 (0)
[I--] [  ] app-text/poppler-bindings-0.5.0 (0)

However, I tried recompiling the problem version KPDF with each of the following, which resulted in no change at all:
app-text/poppler-0.4.3-r4
app-text/poppler-0.5.0-r5

Also, I discovered what may be a related bug. This latest r2 version of KPDF crashes altogether when trying to load the following PDF, but kde-base/kpdf-3.5.1-r1 does not crash and loads it correctly:
http://theory.lcs.mit.edu/~rivest/LiskovRivestWagner-TweakableBlockCiphers.pdf

The crash I get seems to be either one of:

Error (62272): Unexpected end of file in flate stream
Error (62785): Unexpected end of file in flate stream
kpdf: Fatal IO error: client killed
KCrash: Application 'kpdf' crashing...

--OR--

*** glibc detected *** double free or corruption (out): 0x082c8080 ***
KCrash: Application 'kpdf' crashing...
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-08 12:01:50 UTC
Hmm they all works fine here, not rotated nor they crash.

Which version of poppler are you using right now?
Comment 4 Doc McCuddle 2006-03-08 12:05:42 UTC
Using:
[I--] [  ] app-text/poppler-0.5.0-r4 (0) -cairo +jpeg +zlib
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-03-08 12:23:28 UTC
Build poppler with -zlib or upgrade to a newer version (which has no zlib support at all).
Comment 6 Stefan Schweizer (RETIRED) gentoo-dev 2006-03-08 12:56:53 UTC
Arches: Please stabilize the bugfix-revision poppler-0.5.0-r5

It fixes some bugs(like this one) from -r4 and I do not want a lot of dupes.
Comment 7 Doc McCuddle 2006-03-08 13:59:12 UTC
I just want to make clear what I said in comment #2. At that time I had tried every poppler in my portage tree, recompiling kpdf each time as well. These versions were

app-text/poppler-0.4.3-r4
app-text/poppler-0.5.0-r4 (current)
app-text/poppler-0.5.0-r5

Granted 0.4.3-r4 and 0.5.0-r4 were done so with +zlib, 0.5.0-r5 does not have a zlib flag, so I had already tried a version without zlib. To double check, I checked the configure output and it does say "use zlib: no".

Now, I went ahead and tried recompiling with the other two versions that have the zlib option without zlib (USE=-zlib), along kpdf, as you suggested, but the problems persist.

I should have synced before initially posting, because I noticed app-text/poppler-0.5.1 is there that I didn't have, which also has no zlib flag. I synced and I am now in the process of trying to get this version tested, and it compiles fine. However KPDF compilation is bailing on configure:

checking for poppler-qt >= 0.3.1... configure: error: --with-poppler was given, but test for poppler failed

If I can get it compiled, I'll report on whether using poppler-0.5.1 fixes the rotate problem. Again, building without zlib in poppler does not appear to solve either rotation or crashing problem, at least for those in portage < 0.5.1.
Comment 8 Doc McCuddle 2006-03-08 19:41:23 UTC
I have now successfully compiled app-text/poppler-0.5.0-r5 by doing this http://bugs.gentoo.org/show_bug.cgi?id=125248#c2.

The installed components on my system now look like this:
app-text/poppler-0.5.1  +jpeg
app-text/poppler-bindings-0.5.1  -cairo -gtk +qt
kde-base/kpdf-3.5.1-r2  +arts -debug +kdeenablefinal -kdexdeltas -xinerama

However, things actually got worse. Not only are the images still rotated, but when trying to click through a page from a PDF with an embedded rotated image, KPDF crashes whenever it reaches the page to load it in the main view.

Is there a "bugfix-revision poppler-0.5.0-r5" that's not in portage? I have tried every ebuild version that is in portage right now and all cause these problems on my system.
Comment 9 Doc McCuddle 2006-03-08 19:44:08 UTC
CORRECTION:
Comment #8 should instead being "I have now successfully compiled app-text/poppler-0.5.1 by doing this
http://bugs.gentoo.org/show_bug.cgi?id=125248#c2."

I wrote the wrong version of poppler in that sentence. Sorry...
Comment 10 Doc McCuddle 2006-03-08 22:10:39 UTC
I fixed both the image rotation and crash bugs with by removing "-Os" from CFLAGS for the app-text/poppler package. I tried with both newer poppler (0.5.1) that doesn't have zlib and later poppler (0.5.0-r4) with zlib built in and both work fine. This particular problem doesn't involve zlib but this CFLAG option should probably be stripped or reduced to something functional for poppler ebuilds.
Comment 11 Gustavo Zacarias (RETIRED) gentoo-dev 2006-03-09 09:48:34 UTC
sparc stable.
Comment 12 Stefan Schweizer (RETIRED) gentoo-dev 2006-03-09 10:07:28 UTC
I added the -Os -> -O2 replacing in the 0.5.0-r4 and -r5 ebuilds. Stabilization of -r5 because of the zlib issue is still needed!
Comment 13 Markus Rothe (RETIRED) gentoo-dev 2006-03-10 11:28:42 UTC
stable on ppc64
Comment 14 nixnut (RETIRED) gentoo-dev 2006-03-11 11:32:23 UTC
Stable on ppc
Comment 15 Markus Ullmann (RETIRED) gentoo-dev 2006-03-11 13:46:02 UTC
arm done
Comment 16 Jose Luis Rivero (yoswink) (RETIRED) gentoo-dev 2006-03-11 16:14:20 UTC
stable on alpha
Comment 17 Jeroen Roovers (RETIRED) gentoo-dev 2006-03-13 17:32:54 UTC
hppa done.
Comment 18 Joshua Jackson (RETIRED) gentoo-dev 2006-03-13 21:57:21 UTC
x86 done (X_X)
Comment 19 Luis Medinas (RETIRED) gentoo-dev 2006-03-18 18:03:52 UTC
stable on amd64
Comment 20 Stefan Schweizer (RETIRED) gentoo-dev 2006-04-04 04:11:20 UTC
mips team: do your work!

By the way, it is better to have no package stable at all, then to mark packages stable late. Because usually old stable versions suffer from bugs like this one.

I suggest you to drop the stable mips keyword.
Comment 21 Jakub Moc (RETIRED) gentoo-dev 2006-08-04 15:55:49 UTC
All done here.