Bug 156565 - system becomes unusable after opening attached PDF file
Summary: system becomes unusable after opening attached PDF file
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-24 17:47 UTC by Johannes Ranke
Modified: 2008-01-24 23:21 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
PDF that causes the problem as a test case (127.12 KB, application/pdf)
2008-01-24 17:48 UTC, Johannes Ranke
Details
gdb log (2.50 KB, text/plain)
2008-01-24 17:49 UTC, Johannes Ranke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johannes Ranke 2008-01-24 17:47:05 UTC
Version:            (using Devel)
Installed from:    Compiled sources
Compiler:          gcc version 4.2.3 20080114 (prerelease) (Debian 4.2.2-7) 
OS:                Linux

Opening the attached PDF makes the system unusable - I can recover it by <CTRL><ALT><BACKSPACE>. I installed poppler 0.6.3, deleted CMakeCache.txt and recompiled okular, but it still happens. I am also attaching the start of a gdb backtrace, but okular doesn't really crash, it just uses a lot of resources, so I don't know how to explicitly kill it without restarting X.
Comment 1 Johannes Ranke 2008-01-24 17:48:39 UTC
Created attachment 23245 [details]
PDF that causes the problem as a test case
Comment 2 Johannes Ranke 2008-01-24 17:49:50 UTC
Created attachment 23246 [details]
gdb log

I have no idea if this is helpful or not.
Comment 3 Johannes Ranke 2008-01-24 18:02:25 UTC
BTW, the file can be opened with evince from debian etch (poppler 0.4.5) and debian unstable (poppler 0.6.2) with no probs. Using okular compiled against poppler 0.6.2 produces the same problem. For this reason it seems to me it is not poppler creating the problem, although I don't know if it could be the Qt frontend.
Comment 4 Pino Toscano 2008-01-24 18:25:35 UTC
It seems to be a problem of the Qt4 frontend of Poppler.
Poppler-Qt4 0.4 is not affected as it has no code for reading annotations.
Comment 5 Albert Astals Cid 2008-01-24 21:15:47 UTC
will be fixed in next poppler 0.6 release, due for 26th january
Comment 6 Johannes Ranke 2008-01-24 22:34:04 UTC
I just compiled poppler from git, installed it to /usr/local/ and
rebuilt kdegraphics (after removing CMakeCache.txt). Now I get

[...] 

okular(11790)/kio (KIOJob) KIO::stat: stat
KUrl("file:///home/ranke/dok/jou/aquat_toxicol/interlandi02 nutrient-
toxicant in phytoplankton.pdf")
okular(11790)/kio (KDirLister) KDirLister::stop:
okular(11790)/kdecore (trader) KMimeTypeTrader::weightedOffers:
KMimeTypeTrader::weightedOffers(  "application/pdf" ,
"okular/Generator"  )
okular(11790)/kdecore (trader) KMimeTypeTrader::query: query for
mimeType  "application/pdf" ,  "okular/Generator"  : returning  1
offers
okular(11790)/kdecore (KLibLoader) kde4Factory: The library
"/home/ranke/kde/lib/kde4/okularGenerator_poppler.so" does not offer a
qt_plugin_instance function.
okular(11790)/kdecore (KLibLoader) kde3Factory: The library
"/home/ranke/kde/lib/kde4/okularGenerator_poppler.so" does not offer an
"init_okularGenerator_poppler" function.
okular(11790)/okular (app)
Okular::DocumentPrivate::loadGeneratorLibrary: Invalid plugin factory
for "okularGenerator_poppler"!
okular(11790)/kdeui (KNotification) KNotification::slotReceivedId: 0
okular(11790)/kdeui (KNotification) KNotification::~KNotification: 0
okular(11790)/kio (KDirLister) KDirLister::stop:

[...]

What did I do wrong?

Sorry for my scarce background knowledge - I am actually trying to help
by testing and reporting bugs...

* Albert Astals Cid <tsdgeos@terra.es> [080124 21:20]:
[bugs.kde.org quoted mail]
Comment 7 Pino Toscano 2008-01-24 22:44:09 UTC
You can find more instructions here: http://okular.kde.org/download.php.
Comment 8 Johannes Ranke 2008-01-24 23:21:51 UTC
Thanks so much, now it works!

Johannes