Bug 341250

Summary: View is locked/frozen after Zoom to Auto Fit
Product: [Applications] okular Reporter: Richard Llom <richard.llom>
Component: PDF backendAssignee: Okular developers <okular-devel>
Status: CONFIRMED ---    
Severity: normal CC: aacid, acrylint, brendon, cfeck, nate
Priority: NOR    
Version First Reported In: 20.12.1   
Target Milestone: ---   
Platform: Chakra   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Example PDF
gdb output
Screencast of Okular with lock

Description Richard Llom 2014-11-25 11:19:20 UTC
In PDF, I noticed when going from high zoom to "Auto Fit" the whole PDF view "hangs", ie. it is not possible to drag by mouse, or scroll by keyboard.

Reproducible: Always

Steps to Reproduce:
1. Select high zoom level in toolbar ( I checked with 1600%, 800%, 400%).
2. Select Auto Fit in toolbar
--> View hangs.
Comment 1 Albert Astals Cid 2014-11-25 21:59:55 UTC
Any file?
Comment 2 Richard Llom 2014-11-26 12:04:36 UTC
Created attachment 89730 [details]
Example PDF

Here is one
Comment 3 Albert Astals Cid 2014-11-26 20:45:58 UTC
It works fine here. Can you please do this in a terminal

gdb -ex run okular
Open the file
Set zoom to auto fit
go back to the terminal
Press Control+C
write "thread apply all bt"
Attach the output of the command.
To exit from gdb write "quit"
Comment 4 Richard Llom 2014-11-26 21:31:50 UTC
Created attachment 89738 [details]
gdb output

like this?
Comment 5 Albert Astals Cid 2014-11-26 21:33:27 UTC
Are you sure you opened the file?
Comment 6 Christoph Feck 2014-11-27 00:59:12 UTC
I can reproduce btw, but the backtrace does not indicate a freeze. It really just waits for input.

- go to last page
- select 1600% zoom
- select Auto-Fit

Actual result:
- it displays first page, but no scroll bar
Comment 7 Richard Llom 2014-11-27 11:04:06 UTC
Created attachment 89741 [details]
Screencast of Okular with lock

Yes, I opened the file.

Also okular isn't really "frozen", there is still something happening. I attached a screencast of the problem, hope this helps.
Comment 8 Albert Astals Cid 2014-11-27 18:59:01 UTC
Ok, now i can reproduce it too.