Bug 327149 - Okular hangs on opening some specific pdf file.
Summary: Okular hangs on opening some specific pdf file.
Status: RESOLVED UPSTREAM
Alias: None
Product: okular
Classification: Applications
Component: PDF backend (show other bugs)
Version: 0.17.2
Platform: Fedora RPMs Linux
: NOR crash
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-11-04 22:35 UTC by Elias Vanderstuyft
Modified: 2013-12-14 15:00 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Elias Vanderstuyft 2013-11-04 22:35:47 UTC
A document specific hang.

Reproducible: Always

Steps to Reproduce:
1. Find and download one of the following articles:
- IEEE-MTT 1992-12 vol40no12 New stability criterion (Edwards, Sinsky).pdf (867.716 KB)
- IEEE-MTT 1995-07 vol43no7 Deterministic amplifier design(Edwards, Cheng, Sinsky).pdf (737.989 KB)
You may have to be member of IEEE to do this. I can't send it as attachment because of copyrights.
2. Open one of them. => Hangs while opening.
Actual Results:  
Okular hangs, doesn't start up.

Expected Results:  
Open the document, without hanging.

Opening with 'evince' (Gnome Doc Viewer) works without problems.
Any other document I tried in my life did work with 'okular'.
Comment 1 Albert Astals Cid 2013-11-04 22:38:48 UTC
Without a file it's impossible to fix.
Comment 2 Elias Vanderstuyft 2013-11-04 22:49:17 UTC
(In reply to comment #1)
> Without a file it's impossible to fix.

I understand, but I can't infringe copyright...
Comment 3 Yuri Chornoivan 2013-11-05 05:53:44 UTC
Works fine, no hangs here for both files (poppler 0.24.2, Okular 0.17.60, default settings).

Ca you play with "Performance" configuration a bit to see if it helps?

http://docs.kde.org/stable/en/kdegraphics/okular/configperformance.html
Comment 4 Elias Vanderstuyft 2013-11-05 19:38:18 UTC
(In reply to comment #3)
> Works fine, no hangs here for both files (poppler 0.24.2, Okular 0.17.60,
> default settings).
> 
> Ca you play with "Performance" configuration a bit to see if it helps?
> 
> http://docs.kde.org/stable/en/kdegraphics/okular/configperformance.html

I tried about every possible configuration in the "Performance" tab, but still no change.

I also tested it on another computer with Okular from KDE 4.10.5 (Fedora 18, latest updates installed) and poppler 20.2:
that works.

Any other suggestions? (logs, etc.)
Comment 5 Yuri Chornoivan 2013-11-05 19:57:31 UTC
(In reply to comment #4)
> Any other suggestions? (logs, etc.)

Please try to temporarily move to other folder the following data:

1. Folder ~/.kde/share/apps/okular
2. File ~/.kde/share/config/okularrc

It may happen that there is some corruption in the configuration files.
Comment 6 Elias Vanderstuyft 2013-11-05 21:49:27 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > Any other suggestions? (logs, etc.)
> 
> Please try to temporarily move to other folder the following data:
> 
> 1. Folder ~/.kde/share/apps/okular
> 2. File ~/.kde/share/config/okularrc
> 
> It may happen that there is some corruption in the configuration files.

No, still no go:
I removed:
  ~/.kde/share/config/okularpartrc
  ~/.kde/share/config/okularrc and
  ~/.kde/share/apps/okular
Comment 7 Elias Vanderstuyft 2013-11-05 21:49:55 UTC
Changing the filename doesn't work either.
Comment 8 Elias Vanderstuyft 2013-11-06 21:01:08 UTC
I don't understand, now it works...
The only thing I did was:
- I opened Okular, opened a working pdf file via the File->Open menu, and than tried to open one of the above mentioned files via the File->Open menu, that worked!
After that, I could open the file without Okular running yet, this time without problems!
Comment 9 Elias Vanderstuyft 2013-11-11 11:50:13 UTC
After a reboot, the problem has returned.
The only way to circumvent the problem, is the way I mentioned in my previous comment:
- Open Okular, open a working pdf file via the File->Open menu, and than open one of the above mentioned files via the File->Open menu
Comment 10 Oliver Sander 2013-11-11 13:00:45 UTC
I tried this with Okular 0.16.5 from current Debian testing, and it worked flawlessly.
Comment 11 z_serhio 2013-11-13 22:24:00 UTC
I have the same problem with a certain file:
http://radare.org/get/radare.pdf
Okular hangs on opening the file. When launched from terminal the program ends with the segmentation fault message. Evince and others work nice.
I run openSUSE 12.2 with KDE 4.11.3.
Comment 12 Elias Vanderstuyft 2013-11-13 22:41:24 UTC
(In reply to comment #11)
> I have the same problem with a certain file:
> http://radare.org/get/radare.pdf
> Okular hangs on opening the file. When launched from terminal the program
> ends with the segmentation fault message. Evince and others work nice.
> I run openSUSE 12.2 with KDE 4.11.3.

For me, that file works...
Comment 13 Albert Astals Cid 2013-12-12 22:48:11 UTC
Ok, since we don't have a file that produces the problem i'll have to close the bug, please if someone can provide a file that causes Elias' problem attach it and reopen the bug.
Comment 14 Elias Vanderstuyft 2013-12-13 09:34:00 UTC
OK, I managed to find another file that exhibits the same problem, this time a public one: http://www.nrao.edu/meetings/isstt/papers/1994/1994802810.pdf

I also found out that if you wait long enough, the file will be opened.
Afterwards, if you scroll down until you reach the middle of the current page and the middle of the next page, Okular seems to hang again. However, I you wait long enough, you can scroll until the next mid-of-page, and so on. The same happens when you scroll up.

There is something common with the pdfs that exhibit these problems: they are often older and contain scanned text (instead of latex-written text) that is afterwards OCR-ed.
Comment 15 Albert Astals Cid 2013-12-14 10:49:27 UTC
That file is fine here, which poppler version do you have?
Comment 16 Elias Vanderstuyft 2013-12-14 13:40:15 UTC
KDE 4.11.3
Okular 0.17.3
PDF Backend 0.6.3
poppler 0.22.1-5.fc19.x86_64
Comment 17 Albert Astals Cid 2013-12-14 15:00:02 UTC
poppler 0.24 had a huge speed improvement in some files. Since it works fine for me i'm going to close it, if you still have this problem after updating to poppler 0.24 please reopen the bug.