Bug 315703 - Zoom, Selection, Text Selection (and possibly other) tools not working in 0.16.0 KDE 4.10 Kubuntu 12.04
Summary: Zoom, Selection, Text Selection (and possibly other) tools not working in 0.1...
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.16.0
Platform: Ubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-02-23 22:41 UTC by defectoscopny
Modified: 2013-03-23 16:23 UTC (History)
3 users (show)

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


Attachments
In action (89.25 KB, video/mp4)
2013-03-01 21:24 UTC, defectoscopny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description defectoscopny 2013-02-23 22:41:43 UTC
Noticed just now that Zoom, Selection and Text Selection don't work for me in Okular 0.16.0. I've installed it from the Kubuntu Backports ppa. Whenever I click the tool (or use the respective keyboard shortctut "CTRL+digit") to activate it, nothing happens - Okular remains in the "browsing" mode. Clicking an area and dragging the cursor has no effect . I also noticed that when I release the mouse and press the shortcut keys to activate the tools, the mouse cursor changes. However, it reverts to the browsing "hand" as soon as the mouse is moved or clicked.
Purging and reinstalling didn't help. What did help, though, was downgrading to 0.14.3 from the Precise Updates. The tools work flawlessly in the older version.

Reproducible: Always

Steps to Reproduce:
1. Launch Okular 0.16.0
2. Click Zoom / Selection / Text Selection or press the respective key combination to activate the required tool.
3. Notice how you're unable to zoom / select anything.
Actual Results:  
Nothing - that's the point.

Expected Results:  
It should have activated the tools I clicked.

Not sure what is relevant and what isn't. Please advise if more information is required.
Comment 1 Albert Astals Cid 2013-02-23 22:49:49 UTC
Okular 0.16.0 works fine here, i'm not using Kubuntu 12.04 though, you may want to file a bug in the kubuntu bug tracker of find help in any kubuntu forum, there's not much we I do here without being able to reproduce the problem. I understand that you have updated all kde packages and not just okular, no?
Comment 2 defectoscopny 2013-02-24 07:32:50 UTC
Yes, I've updated all the packages using the Kubuntu Backports PPA.
Looks like I'm alone with this issue - searching on the net for a similar bug returned no results.
Comment 3 Albert Astals Cid 2013-02-27 22:31:38 UTC
Do you think you could record a screen capture of what you are exactly doing (with recordmydesktop or similar tools) to see it live?
Comment 4 defectoscopny 2013-03-01 21:24:01 UTC
Created attachment 77673 [details]
In action

Took a screen capture of the issue. I'm new to recording / converting, so please advise if you can't play the file.
In the video, I'm first trying to press the buttons to get the tools activated. I then release the mouse and press Ctrl+4 to activate one of the tools. The cursor changes but reverts to "browsing mode" as soon as the mouse is moved.
Comment 5 Albert Astals Cid 2013-03-02 19:21:50 UTC
That is really weird, are you using non standard window manager or widget theme or anything? Can you try changing to plain kwin and oxygen? Don't think has anything to do but you never know
Comment 6 defectoscopny 2013-03-02 19:52:36 UTC
Hi and thanks for looking into this.
I've tried just now - the issue occurred with everything set to plain 'oxygen'. I did log out and back in after changing the theme and decorations.
Comment 7 Albert Astals Cid 2013-03-03 14:55:19 UTC
Sadly there's not much more we can do here, i'll leave the bug open to see if in the future someone can reproduce the issue besides you, we would also welcome if you can try newer okular/kde/ubuntu versions and report back if this has been fixed or not.

Thanks for caring about Okular and sorry we can't help more :-/
Comment 8 defectoscopny 2013-03-03 15:18:09 UTC
You cared enough to reply and suggest something, thanks (:

I'll try the new release when it gets to the Backports PPA and report.
Comment 9 defectoscopny 2013-03-06 19:01:32 UTC
Upgraded to 0.16.1 - still the same issue.
Comment 10 defectoscopny 2013-03-20 21:46:38 UTC
Hi everyone. I would request that you look into this again. I just noticed that if I run the latest version of Okular as root, the tools are working correctly! So is this a permissions issue, then?
Comment 11 Albert Astals Cid 2013-03-20 21:48:57 UTC
What about running as a different user that is not root?
Comment 12 Tomáš Poledný 2013-03-20 21:54:05 UTC
Can you try to delete configuration file of Okular? (on Kubuntu ~/.kde/share/config/okularrc )
Comment 13 defectoscopny 2013-03-20 22:32:00 UTC
Tried removing the config file - didn't avail.
Tried creating a new user (Systemsettings > User Management) and logging on to it, Okular worked perfectly well without root.
Comment 14 Albert Astals Cid 2013-03-20 23:57:28 UTC
Try also with ~/.kde/share/config/okularpartrc (copy it first somewhere to make sure if that was the error we have a way to reproduce it later)
Comment 15 defectoscopny 2013-03-21 07:22:03 UTC
Thank you for your suggestions, guys. Removing the okularpartrc file seems to have resolved the issue (rather, I simply renamed it). I then tried to check the contents of the renamed file but could not open it without sudo - looks like the owner was set to 'root' for some reason!

Not sure if this is related, but I remember Kate giving me errors, something like "katerc not writeable". I then changed the owner of the file from 'root' to myself and thus solved the issue. At least Kate cared enough to let me know (:

Appreciate your support!
Comment 16 Albert Astals Cid 2013-03-21 21:59:10 UTC
PEBKAC
Comment 17 defectoscopny 2013-03-22 21:46:08 UTC
Albert Astals Cid, as much as I appreciate your free time and effort put into helping me, please refrain from posting such comments in the future - some might find those offensive.

Still, though, if those were my actions that caused the issue, would you be so kind as to explain what exactly may have resulted in *rc files being owned by "root"? I'm also curious as to why the version from the Kubuntu Backports PPA and the one from the standard repo handle said file differently. I'd very much like to avoid it from this point onward.

Thanks!
Comment 18 Albert Astals Cid 2013-03-23 14:32:34 UTC
If you get offended by the truth that is your problem.

It's not our fault you changed the file ownership of the files.

Yes, we could give some feedback when we're not able to write to our own config files, you can file a bug about that if you want.
Comment 19 defectoscopny 2013-03-23 15:19:26 UTC
It's interesting that you should assume I changed the ownership. This is a fairly fresh Ubuntu installation and I have not messed with the configuration files at all.
Comment 20 Albert Astals Cid 2013-03-23 16:16:41 UTC
We never change permissions nor ownership of files and you're the first user ever to have this problem, so the simplest solution unless you can prove otherwise is that something something got broken in your system.

On the other hand if you have a way to reproduce the error on new users (you said you couldn't) please reopen the bug.
Comment 21 defectoscopny 2013-03-23 16:23:22 UTC
Glad this was just a miscommunication.

Proving something in this case would be troublesome as I've installed / reinstalled Precise quite a few times on different machines and had never seen this 'bug' before.
I will, nevertheless, keep an eye and let you know if I find some tangible info.

Thanks.