[poppler] poppler really slow when reading some documents

Christian Krause krause.chr at gmail.com
Tue Jan 3 09:52:08 PST 2006


Hi,

> > Sure. No difference. It is too slow to show the document:
> Not with evince. Can you try with the test applications inside poppler
> (especially qt4/tests/test-poppler-qt4 )?

1st test
qt/test-poppler-qt /tmp/serialata10a.pdf

the first page ist displayed within a second, switching to other pages
is fast, too

2nd test
Sorry, but I can't run the QT4 tests, because I haven't qt4 installed
yet and it is not available for my distribution.

3rd test
glib/test-poppler-glib /tmp/serialata10a.pdf

nothing is displayed, 100% CPU usage

> Can you try with KPDF from KDE 3.5?

Yes, it doesn't work. But this depends on the fact, that kdegraphics
3.5.0 has only "theoretical" poppler support. Something is linked
against poppler, but the xpdf stuff and the goo lib is built as well
(even if the project is configured --with-poppler) and used (as seen
in gdb).

> It does seem to be a problem with the glib test app. Maybe it could be in the
> glib bindings?

The glib test app works in the poppler 0.4.3, but eats 100% CPU in CVS
version (during the print_index function, which isn't in the 0.4.3):
(gdb) bt
#0  0xa797611c in memcpy () from /lib/libc.so.6
#1  0xa7f4310d in GooString::append () from poppler/.libs/libpoppler.so.0
#2  0xa7f0c16d in Lexer::getObj () from poppler/.libs/libpoppler.so.0
#3  0xa7f161da in Parser::shift () from poppler/.libs/libpoppler.so.0
#4  0xa7f16689 in Parser::getObj () from poppler/.libs/libpoppler.so.0
#5  0xa7f2133e in XRef::fetch () from poppler/.libs/libpoppler.so.0
#6  0xa7f119ef in Object::fetch () from poppler/.libs/libpoppler.so.0
#7  0xa7f1261d in OutlineItem::readItemList ()
   from poppler/.libs/libpoppler.so.0
#8  0xa7f12938 in OutlineItem::open () from poppler/.libs/libpoppler.so.0
#9  0xa7e6bdb9 in poppler_index_iter_get_child ()
   from glib/.libs/libpoppler-glib.so.0
#10 0x080491f8 in print_index ()
#11 0x08049211 in print_index ()
#12 0x08049211 in print_index ()
#13 0x080495da in main ()

Best regards,
Christian


More information about the poppler mailing list