Bug 187174 - Okular gives "Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory!" warning
Summary: Okular gives "Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory!...
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.8
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-03-14 21:06 UTC by Tim Landscheidt
Modified: 2009-06-06 22:08 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Landscheidt 2009-03-14 21:06:14 UTC
Version:           0.8 (using 4.2.00 (KDE 4.2.0), 4.2.0-15.fc10 Fedora)
Compiler:          gcc
OS:                Linux (i686) release 2.6.27.19-170.2.35.fc10.i686

Okular gives a warning on every file that is opened:

| [tim@lockfix ~/Desktop/Agenda]$ okular ~/Dokumente/user-guide-a4.pdf
| okular(8661): Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory!
| [tim@lockfix ~/Desktop/Agenda]$ okular ~/Dokumente/user-guide-a4.pdf ~/Dokumente/features.pdf
| okular(8668): Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory!
| okular(8668): Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory!
| [tim@lockfix ~/Desktop/Agenda]$
Comment 1 Pino Toscano 2009-03-14 21:31:12 UTC
What is the problem with those warnings? In Okular's context, they are harmless, and unuseful.
Comment 2 Luke Peterson 2009-05-19 03:00:58 UTC
(In reply to comment #1)
> What is the problem with those warnings? In Okular's context, they are
> harmless, and unuseful.

I use vim to edit .tex files and have a mapping that calls okular to view the output .pdf file.  When I do this, the error message:
Attempt to use QAction "bookmark_action_0" with KXMLGUIFactory!
shows up in the middle of my vim buffer.  It goes away once I scroll that line off of the screen, but it is annoying.  

Is there a good reason for okular complaining when you ask it to do one of it's main tasks (open a .pdf)?
Comment 3 Tim Landscheidt 2009-06-06 21:54:02 UTC
Pino said it right: The warnings are "unuseful". They hamper work: Whether you start okular on the command line or (sorry, no vi here :-)) Emacs, they cluster your screen. I often use "okular * &" on the shell, and then "mv" or "rm" the shown files. With the unnecessary warnings, this requires periodic C-l to clear the screen.

Besides that, they also overshadow any real issues that may be hidden beneath. As a non-developer, I cannot judge whether the warnings indicate a problem, or a problem soon to emerge, or if "they are harmless". That's why I filed the two bugs. Do I know whether the bookmark_action_0 warning reflects the missing xmlns in Konqueror's bookmarks.xml? No, and I do not want to ask every time I run okular.

IMVHO a program should never output warnings in "normal" operations, so that the user does not become accustomed to them and misses a critical one. Or the developer when testing the program.
Comment 4 Pino Toscano 2009-06-06 22:08:46 UTC
Beside the fact you can redirect the stderr on console to /dev/null (okular 2>/dev/null), you can disable those warnings from `kdebugdialog`.
At least, in KDE 4.3 they are not a problem anymore (not that they were a problem before, just a generic warning to a situation that is not problematic in Okular).