Summary: | 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 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Doc McCuddle <crazyned> |
Component: | New packages | Assignee: | MIPS Porters <mips> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | jer, kde, printing |
Priority: | High | ||
Version: | 2005.1 | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Doc McCuddle
2006-03-07 19:10:29 UTC
Might be a poppler problem, can you provide an example pdf that shows that behaviour? 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... Hmm they all works fine here, not rotated nor they crash. Which version of poppler are you using right now? Using: [I--] [ ] app-text/poppler-0.5.0-r4 (0) -cairo +jpeg +zlib Build poppler with -zlib or upgrade to a newer version (which has no zlib support at all). 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. 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. 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. 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... 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. sparc stable. 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! stable on ppc64 Stable on ppc arm done stable on alpha hppa done. x86 done (X_X) stable on amd64 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. All done here. |