Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 132883 - evince 0.5.2 doenst work well with some pdfs
Summary: evince 0.5.2 doenst work well with some pdfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-10 05:07 UTC by Silas Francisco
Modified: 2007-03-04 21:18 UTC (History)
2 users (show)

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


Attachments
Example of PDF (en-teste8.pdf,49.21 KB, application/pdf)
2006-05-10 05:08 UTC, Silas Francisco
Details
The mentioned japanese pdf (ryushintaro.pdf,98.31 KB, application/pdf)
2006-05-18 13:49 UTC, Rafał Mużyło
Details
my postscipt file (fig1.ps,731 bytes, application/postscript)
2006-05-18 13:56 UTC, Rafał Mużyło
Details
the mentioned file (praca-draft01.dvi,1.42 KB, application/x-dvi)
2006-05-22 11:18 UTC, Rafał Mużyło
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Silas Francisco 2006-05-10 05:07:24 UTC
I've got some pdfs that evince used to work, but with 0.5.2 doesnt.
Comment 1 Silas Francisco 2006-05-10 05:08:28 UTC
Created attachment 86541 [details]
Example of PDF
Comment 2 Renato Crisóstomo 2006-05-15 03:42:21 UTC
I can confirm this bug too.
Evince shows nothing but a "Loading" page, while eating about 90% CPU for about a minute. Then shows a poor quality rendering of the document.
Comment 3 foser (RETIRED) gentoo-dev 2006-05-15 05:30:19 UTC
I can reproduce it's slow and the quality suboptimal, but comment #1 suggest it doesn't work at all (?)
Comment 4 Silas Francisco 2006-05-15 09:20:03 UTC
(In reply to comment #3)
> I can reproduce it's slow and the quality suboptimal, but comment #1 suggest it
> doesn't work at all (?)
> 

No, its the loading thing... like you :-)
Comment 5 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-05-16 08:42:35 UTC
I see suboptimal display, for sure, but no loading time issues here.  The "LOADING" screen barely flashes before the PDF is loaded.

I'm working on getting 0.5.3 into portage, but there are poppler issues.  That might fix the problem.
Comment 6 Rafał Mużyło 2006-05-18 13:45:45 UTC
OK, I've got a really dumb question here, which may have a part of solution of the problem. I can reproduce the bug here, I've got evince built with USE="-dbus -nautilus" and somehow I get the idea that it could be caused by "-dbus", so was dbus set or not:
1. for those, who can reproduce bug
2. for those who can't ?

Also, I'm getting some strange effects with postscript files (examples instaled with ghostscript). When I open those by `evince <filename with path>` in most cases they open fine, until I try to open a file from different directory, cause then when I reload that file evince gets stuck at "Loading" screen. I've wrote a small postscript file that gets stuck at that screen no matter if it's open with full path or not (gsx displays it fine). Could those of you who got the problem with that pdf check this issue too ?

One more thing, I've got a strange issue with a pdf with japanese text. Ghostscript is installed with cjk flag, so CMaps are here, xpdf (portage tree /poppler version) needs only one file more - Adobe-Japan1.cidToUnicode which I got from xpdf site. IIRC one of the previous versions also read xpdfrc file and could display this pdf correctly, in fact unless my memory has failed me, around Easter evince was working correctly. However, now (if I correctly understood strace output) xpdfrc does not get read at all. Is this a poppler bug, an evince bug, a gentoo bug or am I missing something, cause xpdf still works.

app-text/evince-0.5.2-r1
app-text/poppler-0.5.1-r1
Comment 7 Rafał Mużyło 2006-05-18 13:49:31 UTC
Created attachment 87008 [details]
The mentioned japanese pdf

Needed lines in xpdfrc are:
cidToUnicode    Adobe-Japan1 //path to//Adobe-Japan1.cidToUnicode
cMapDir         Adobe-Japan1    /usr/share/ghostscript/Resource/CMap
Comment 8 Rafał Mużyło 2006-05-18 13:56:08 UTC
Created attachment 87009 [details]
my postscipt file

This file is very simple, cause I don't realy know postscript, it's just few lines I wrote when I was trying to illustrate a rather elementary geometry problem (secondary school at most) (it's not finished yet)
Comment 9 Silas Francisco 2006-05-18 14:21:36 UTC
app-text/evince-0.5.2-r1  +dbus -debug -djvu -doc -dvi +nautilus -t1lib +tiff
and i can reproduce the bug
Comment 10 Silas Francisco 2006-05-18 14:27:43 UTC
with fig1.ps i've the same problem...
but i only get loading...

by the way, i've some pdfs that instead of a gray box with letters written on it, i get a black box with black letters :-/
Printing has no problem though...
Comment 11 Rafał Mużyło 2006-05-21 07:25:28 UTC
As a sidenote, while checking a few things about evince, I noticed something "funny" about poppler-bindings-0.5.1(-r1) ebuild. Namely, in src_install it does `dolib.a poppler/libpoppler-cairo.la`. What is so "funny" about it you ask ? Well, that file contains lines "library_names='' old_library='libpoppler-cairo.a'" but in poppler sources in poppler/Makefile.am there are lines "poppler_cairo = libpoppler-cairo.la noinst_LTLIBRARIES = $(poppler_cairo)" so libpoppler-cairo.a IS NOT installed. So, did somebody missed that, cause without this file libpoppler-cairo.la is kind of pointless.
Comment 12 Rafał Mużyło 2006-05-21 09:42:30 UTC
Maybe I should mention that this bug report comes from a machine where I'm only a normal user, so writing to /etc/xpdfrc and stuff is a no go. But I managed to find a "hack" solution to japanese pdf problem.
In evince sources, in pdf/ev-poppler.cc if I add 
globalParams = new GlobalParams("");  line to 
pdf_document_init (PdfDocument *pdf_document) 
and add
#include <GlobalParams.h> 
at poppler include block of that file then pdf is displayed correctly (with a good .xpdfrc) .
Do you think it counts as an upstream evince bug ?
Comment 13 Rafał Mużyło 2006-05-21 10:56:15 UTC
BTW. as far as I can tell evince 0.5.3 does NOT solve any of my two problems (ps and japanese) , and neither does it solve the loading problem (this bug).
Comment 14 Rafał Mużyło 2006-05-22 11:18:35 UTC
Created attachment 87270 [details]
the mentioned file

OK, one more bug (maybe I should register at evince bugzilla ?), this time for dvi files. A file, that I created myself is displayed correctly in xdvi, in evince, however many characters are missing (see attached file).
Comment 15 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-05-22 13:47:54 UTC
Definitely point that one upstream.  None of us are actually evince or poppler devs.  (however, a new version of poppler/evince is about to be released, so you might want to wait for that...)
Comment 16 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-05-22 19:41:39 UTC
Okay, evince 0.5.3 is in the tree.  Could people in this bug with problems try again with that?
Comment 17 Silas Francisco 2006-05-23 04:45:44 UTC
(In reply to comment #16)
> Okay, evince 0.5.3 is in the tree.  Could people in this bug with problems try
> again with that?
> 

The loading problem has gone, but now the text isn't suboptimal, it's worse, it's full of dots... :/ oh, and evince crashes when i close window. (using problematic pdfs)
Comment 18 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-05-23 08:46:09 UTC
Yeah, I can see that too.  Definitely report both of them upstream.
Comment 19 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-05-23 08:57:23 UTC
And post the bug URL here when you do, please.
Comment 20 Rafał Mużyło 2006-05-23 09:36:08 UTC
How about that part that is definitly not upstream, namely the problem I mentioned in comment #11 ?
Comment 21 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-05-23 10:00:35 UTC
Could you move it to a different bug, so that we don't lose track of it (like I already did once)?
Comment 22 Renato Crisóstomo 2006-05-23 15:55:29 UTC
Just installed 0.5.3 and I'm having the problems described in #17.
The dvi file crashes the application when loading.
Comment 23 Daniel Gryniewicz (RETIRED) gentoo-dev 2006-05-24 18:05:07 UTC
There's a new version of poppler on the way.  Upstream managed to break some things...
Comment 24 Rémi Cardona (RETIRED) gentoo-dev 2007-03-04 21:18:04 UTC
I checked the build and package for issues regarding the poppler-cairo.la. The latest stable version still creates a pkg-config file, but the .la is no longer created. I think we could even remove the emake sections of the ebuild.

As for the document, this really needs to be checked upstream (I've sent them my share of pdfs to fix :) )

Thanks