Bug 277572

Summary: okular not able to display simple 4.8MB pdf file on a notebook with 4GB of memory
Product: [Applications] okular Reporter: Arkadiusz Miskiewicz <arekm>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: RESOLVED FIXED    
Severity: normal CC: aacid, fabiodurso
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Unlisted Binaries   
OS: Linux   
Latest Commit: Version Fixed In:

Description Arkadiusz Miskiewicz 2011-07-11 19:15:13 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Trying to view this pdf:
http://www.a1torun-kowal.pl/sites/default/files/file/mapa-przebieg-a1-przez-woj-kujawsko-pomorskie.pdf

with okular causes
okular(15271)/okular (app) Okular::DocumentPrivate::sendGeneratorRequest: Running out of memory on page 0 (6736x9536 px);

which is a shame because evince and xpdf is able to display it.

Reproducible: Always

Steps to Reproduce:
Open http://www.a1torun-kowal.pl/sites/default/files/file/mapa-przebieg-a1-przez-woj-kujawsko-pomorskie.pdf in okular.

Actual Results:  
Displays nothing after long time.

Expected Results:  
I should be able to see and view map that's inside of this pdf.
Comment 1 Arkadiusz Miskiewicz 2011-07-11 19:30:55 UTC
That was from okular 0.12.5 (kde 4.6.5)
Comment 2 Davor Cubranic 2011-07-12 15:43:21 UTC
I can't reproduce in 0.12.2. It could be your graphics card. Can you give us the details of card and driver?
Comment 3 Arkadiusz Miskiewicz 2011-07-12 15:56:17 UTC
intel gm45 mobile, dri2 enabled, 3d working, latest kernel, intel driver, xserver, mesa, so unlikely driver fault (as other apps work fine, including 3D games).

Try making zoom more than 200% ?
Comment 4 Albert Astals Cid 2011-07-12 16:45:05 UTC
This is a known problem, if the zoomed page is too big we bail out before exhausting system memory.

It seems in this case we are being "conservative", since you probably have those 245MB to spend. We need to improve the painting algorithm so that for "high levels" of zoom we do not need the whole page to be rendered. Unfortunately this is easier to say than to do.
Comment 5 Davor Cubranic 2011-07-12 17:40:59 UTC
Ah, right: I see it. It's printed to stderr. Confirmed, and I'm running an integrated ATI X200 card with radeon (open source) driver.
Comment 6 Davor Cubranic 2011-07-12 17:48:21 UTC
Related to 185676, although that one is for DjVu and this is PDF.
Comment 7 Fabio D'Urso 2014-05-08 13:56:26 UTC
The original document is no longer available. However, with the recent (okular >= 0.16, ie KDE >= 4.10) tiled rendering features it should work now.
Thanks for caring about okular :)
Comment 9 Albert Astals Cid 2014-05-08 15:28:48 UTC
Thanks for linking the file :-)

As said by Fabio on recent okular versions you should not have problems opening this file, but we'd be interested if you can try it and  if you still have this problem please reopen this bug :-)
Comment 10 Arkadiusz Miskiewicz 2014-05-08 15:30:03 UTC
Works ok for me (okular from kde 4.13.0).