Bug 330042 - okular can't open some pdf
Summary: okular can't open some pdf
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.18.0
Platform: Mint (Ubuntu based) Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-16 18:45 UTC by Anton Kornberg
Modified: 2014-01-23 06:39 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
callgrind output (1.86 MB, application/octet-stream)
2014-01-19 21:24 UTC, Dmitriy A. Perlow
Details
May be OK. (779.93 KB, application/x-gzip)
2014-01-20 16:36 UTC, Dmitriy A. Perlow
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Anton Kornberg 2014-01-16 18:45:34 UTC
Some pdf files can't be opened by okular.

For example: https://www.dropbox.com/s/1xw1bz34t5uiwnw/Klaus%20Friedrich%20-%20Tribology%20of%20Polymeric%20Nanocomposites%20%28RED%20BOOK%29.pdf

The program freezes for a minute, then opens the first page. When trying to scroll through, same with the second page, etc. Other viewers opens this one well.
Comment 1 Yuri Chornoivan 2014-01-16 19:20:24 UTC
The linked file can be successfully opened and viewed here with poppler 0.25.1 and Okular 0.18.60.
Comment 2 Anton Kornberg 2014-01-16 20:19:57 UTC
Thank you for your reply. If I'm not mistaken, Evince uses libpoppler as well. But Evince can open this file properly on my system, unlike Okular. Other users said that during scrolling of this file they had short freezing of audio-files.
Comment 3 Burkhard Lück 2014-01-16 21:47:23 UTC
opens fine here with 
Okular: 0.18.0 in Kubuntu 12.04 KDE 4.12.0
Compiled from sources in stable: Okular: 0.18.1 with KDE: 4.12.1
Compiled from sources in master Okular: 0.18.60 with KDE Development Platform: 4.12.60
All using Qt: 4.8.2 + poppler 0.18.4
Comment 4 Albert Astals Cid 2014-01-16 22:05:07 UTC
which poppler are you using?
Comment 5 Dmitriy A. Perlow 2014-01-17 03:53:59 UTC
Hello.
The file can be opened at my machine but cpu will work at 100% with system freezing if pages are scrolled.

%okular --version
Qt: 4.8.5
KDE Development Platform: 4.11.3
Okular: 0.17.3

%zypper se -is poppler
S | Name             | Type    | Version     | Arch   | Repository             
--+------------------+---------+-------------+--------+------------------------
i | libpoppler-cpp0  | package | 0.24.3-1.1  | x86_64 | local-openSUSE-13.1-OSS
i | libpoppler-qt4-4 | package | 0.24.3-1.1  | x86_64 | local-openSUSE-13.1-OSS
i | libpoppler43     | package | 0.24.3-1.1  | x86_64 | local-openSUSE-13.1-OSS
i | poppler-data     | package | 0.4.6-5.1.2 | noarch | local-openSUSE-13.1-OSS
i | poppler-tools    | package | 0.24.3-1.1  | x86_64 | local-openSUSE-13.1-OSS
Comment 6 Albert Astals Cid 2014-01-19 21:18:47 UTC
Can you please run valgrind --tool=callgrind okular thefile.pdf and attach the callgrind.out.$pid file that is created?
Comment 7 Dmitriy A. Perlow 2014-01-19 21:24:21 UTC
Created attachment 84733 [details]
callgrind output

[~] %valgrind --tool=callgrind okular ~/Downloads/Klaus\ Friedrich\ -\ Tribology\ of\ Polymeric\ Nanocomposites\ \(RED\ BOOK\).pdf [0:19]
==17327== Callgrind, a call-graph generating cache profiler
==17327== Copyright (C) 2002-2012, and GNU GPL'd, by Josef Weidendorfer et al.
==17327== Using Valgrind-3.8.1 and LibVEX; rerun with -h for copyright info
==17327== Command: okular /home/da/Downloads/Klaus\ Friedrich\ -\ Tribology\ of\ Polymeric\ Nanocomposites\ (RED\ BOOK).pdf
==17327== 
==17327== For interactive control, run 'callgrind_control -h'.
^C==17327== 
==17327== Events    : Ir
==17327== Collected : 524505519
==17327== 
==17327== I   refs:      524,505,519

[~] %
Comment 8 Albert Astals Cid 2014-01-19 21:38:11 UTC
Did you let it run for a good while? Doesn't seem it did any rendering from what i can see in the attachment. Also maybe you can install the poppler debug package if it exists for your distribution?
Comment 9 Dmitriy A. Perlow 2014-01-20 03:49:21 UTC
Nope. I waited 3 minuted, OK, I'll do so today.
Comment 10 Dmitriy A. Perlow 2014-01-20 16:36:40 UTC
Created attachment 84749 [details]
May be OK.
Comment 11 Albert Astals Cid 2014-01-20 19:32:06 UTC
Yeah that includes more stuff but doesn't tell anything interesting. It's strange because i'm running similar versions to what you have (just a bit newer okular) and it works fine for me.

Any change you can update to okular that comes with the 4.12 releases?
Comment 12 Dmitriy A. Perlow 2014-01-20 20:21:17 UTC
Yep, you are completely right!
%okular --version
Qt: 4.8.5
KDE Development Platform: 4.11.4
Okular: 0.18.1 (from KDE 4.12.1)
No freezing.
Comment 13 Albert Astals Cid 2014-01-20 20:23:27 UTC
Ok, i'll leave this open since Anton never replied
Comment 14 Anton Kornberg 2014-01-22 06:28:52 UTC
Hello,

Thanks a lot for your patience! The problem was solved after changing Linux Mint 16 KDE to Kubuntu 13.10. Actually, I am not so advanced linux user, I couldn't find the way how to update my okular and poppler. I updated the kernel and the KDE, just in case. Well, that was all I could. But only original Kubuntu installation worked. Thanks again!
Comment 15 Anton Kornberg 2014-01-23 02:57:08 UTC
That's me again. I have hurried a little bit. Indeed, after installation there was no problems, but now it occurred again. Not like before, but anyways, it's not comfortable to work with some pdf files. They are constantly freezing when I try to scroll.
Comment 16 Anton Kornberg 2014-01-23 05:07:49 UTC
Sorry, me again. Thanks for your patience. I have updated KDE up to 4.12 and it helped. Actually, I tried to do the same when I had Linux Mint 16 KDE, and it didn't work. But in the case of Kubuntu 13.10 it worked.
Comment 17 Anton Kornberg 2014-01-23 06:39:29 UTC
(In reply to comment #11)
> Yeah that includes more stuff but doesn't tell anything interesting. It's
> strange because i'm running similar versions to what you have (just a bit
> newer okular) and it works fine for me.
> 
> Any change you can update to okular that comes with the 4.12 releases?

Sorry, I use this forum first time, I haven't noticed that I can reply for each post. Yes, it worked. I had updated KDE up to 4.12 and there is no problems anymore. Thank you!