Bug 270779

Summary: KStars prints unnecessarily to .xsession-errors
Product: [Applications] kstars Reporter: Torquil Macdonald Sørensen <torquil>
Component: generalAssignee: Akarsh Simha <akarsh.simha>
Status: RESOLVED FIXED    
Severity: normal CC: mutlaqja
Priority: NOR    
Version: 0.4   
Target Milestone: ---   
Platform: Debian unstable   
OS: Linux   
Latest Commit: Version Fixed In:

Description Torquil Macdonald Sørensen 2011-04-12 18:27:23 UTC
Version:           0.4 (using KDE 4.6.1) 
OS:                Linux

When I exit from kstars, my ~/.xsession-errors is "spammed" with FPS-info from kstars. This info makes it more difficult and/or time consuming to study legitimate error messages from other programs in the same file.

Excerpt:

.
.
.
FPS: 43.86
FPS: 37.99
FPS: 43.86
FPS: 43.86
FPS: 43.86
FPS: 42.37
FPS: 43.10
FPS: 43.86
FPS: 43.86
FPS: 43.10
FPS: 42.37
FPS: 43.86
FPS: 43.86
.
.
.

Btw, a similar thing happened also while running the KDE program "step" , that does physics simulations.

I have noticed that it is a recurring problem that applications print too much (non-errors) unnecessarily to .xsession-errors, obscuring real error messages.


Reproducible: Always




OS: Linux (x86_64) release 2.6.38.2
Compiler: gcc

KDE 4.6.1 from the Debian KDE maintainers repository at
http://pkg-kde.alioth.debian.org/
Comment 1 Alexey Khudiakov 2011-04-14 18:08:09 UTC
Git commit c354af67cc4e031b0151f23e49247522458c1605 by Khudyakov Alexey.
Committed on 14/04/2011 at 18:03.
Pushed by khudyakov into branch 'master'.

Factor out code for FPS calculation into SkyMapDrawAbstract class
and comment out actual printing to stderr.

It's somewhat pointless to calculate FPS and then throw it away
but it could be useful for debugging.

BUG: 270779

M  +10   -2    kstars/skymapdrawabstract.cpp     
M  +3    -1    kstars/skymapdrawabstract.h     
M  +1    -10   kstars/skymapgldraw.cpp     
M  +1    -8    kstars/skymapqdraw.cpp     

http://commits.kde.org/kstars/c354af67cc4e031b0151f23e49247522458c1605
Comment 2 Alexey Khudiakov 2011-05-07 21:33:48 UTC
Git commit 2c6268850813a1de913feef7ae070e0e319cd230 by Khudyakov Alexey.
Committed on 14/04/2011 at 18:03.
Pushed by khudyakov into branch '4.6'.

Factor out code for FPS calculation into SkyMapDrawAbstract class
and comment out actual printing to stderr.

It's somewhat pointless to calculate FPS and then throw it away
but it could be useful for debugging.

BUG: 270779

M  +10   -2    kstars/skymapdrawabstract.cpp     
M  +3    -1    kstars/skymapdrawabstract.h     
M  +1    -10   kstars/skymapgldraw.cpp     
M  +1    -8    kstars/skymapqdraw.cpp     

http://commits.kde.org/kstars/2c6268850813a1de913feef7ae070e0e319cd230