Bug 280123 - Okular generates console output even when this is disabled in kdebugdialog.
Summary: Okular generates console output even when this is disabled in kdebugdialog.
Status: RESOLVED FIXED
Alias: None
Product: okular
Classification: Applications
Component: general (show other bugs)
Version: 0.13
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-15 13:52 UTC by Peter Lewis
Modified: 2011-09-06 18:01 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 4.7.2


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lewis 2011-08-15 13:52:39 UTC
Version:           0.13 (using KDE 4.7.0) 
OS:                Linux

In kdebugdialog, I disabled all output. However, when trying to refresh a PDF file in Okular, if that file does not exist, it spews out text to the console:


% okular ~/work/file.pdf
okular(15885)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/pete/work"
okular(15885)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/pete/work"
okular(15885)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/pete/work"
okular(15885)/kio (KDirWatch) KDirWatchPrivate::removeEntry: doesn't know "/home/pete/work"
...

and so on.

Reproducible: Always

Steps to Reproduce:
Open okular from the terminal. Remove the PDF it is viewing.

(While this might sound an odd thing to do, it's what happens when you're generating a PDF file using latex. If I'm in vim on the console, then all the output gets spewed all over my vim session if it fails to compile.)

Actual Results:  
There is text on the console.

Expected Results:  
There should be no text.
Comment 1 Davor Cubranic 2011-08-16 05:30:56 UTC
Dupe of bug 277350. And this output is really the fault of KDELibs (the "kio" part in the output), not Okular.

In the meantime, I think you should be able to turn this off via settings in .kde/share/config/kdebugrc, where you can turn off output for higher importance levels that debug (i.e., warnings and errors).
Comment 2 Peter Lewis 2011-08-16 10:18:25 UTC
Thanks Davor, that's helpful.

However, it seems to me, and from reading the comments on the bug you linked to, that default behaviour should be to have this output disabled in kdelibs. I'll file a bug against that component.
Comment 3 Peter Lewis 2011-08-16 10:25:34 UTC
Reported against kdelibs: Bug 280178
Comment 4 Davor Cubranic 2011-08-16 17:26:35 UTC
Thanks Peter, I've been meaning to report that with Kdelibs too, and have subscribed to your report there.

Can you close this bug as either invalid or a duplicate of #277350, please?
Comment 5 Albert Astals Cid 2011-09-06 17:58:45 UTC
Git commit af4316a9386d389d483c07e24b7944cacb634e33 by Albert Astals Cid.
Committed on 06/09/2011 at 20:01.
Pushed by aacid into branch '4.7'.

Fix KDirWatchPrivate warnings

Need to add everything we remove or otherwise it complains we are trying to remove something we did not add
BUGS: 280123
FIXED-IN: 4.7.2

M  +10   -6    part.cpp

http://commits.kde.org/okular/af4316a9386d389d483c07e24b7944cacb634e33
Comment 6 Albert Astals Cid 2011-09-06 18:01:20 UTC
Git commit 200215bf4144f22966cc9d3c420f52d8798da453 by Albert Astals Cid.
Committed on 06/09/2011 at 20:01.
Pushed by aacid into branch 'master'.

Fix KDirWatchPrivate warnings

Need to add everything we remove or otherwise it complains we are trying to remove something we did not add
BUGS: 280123
FIXED-IN: 4.7.2
(cherry picked from commit af4316a9386d389d483c07e24b7944cacb634e33)

M  +10   -6    part.cpp

http://commits.kde.org/okular/200215bf4144f22966cc9d3c420f52d8798da453