Bug 357611 - kscreen floods .xsession-errors with messages
Summary: kscreen floods .xsession-errors with messages
Status: RESOLVED FIXED
Alias: None
Product: KScreen
Classification: Plasma
Component: kded (other bugs)
Version First Reported In: 5.5.2
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Daniel Vrátil
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-06 10:21 UTC by Vadym Krevs
Modified: 2016-05-04 11:35 UTC (History)
5 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Vadym Krevs 2016-01-06 10:21:44 UTC
openSUSE Leap 42.1 with latest KDE Frameworks/Applications from openSUSE OBS.

rpm -qa | egrep "framework|plasma5|kscreen" | sort                                                                                                                                                                                                                           
frameworkintegration-plugin-5.17.0-85.2.x86_64                                                                                                                                                                                                                                 
kscreen5-5.5.2-57.2.x86_64                                                                                                                                                                                                                                                     
kscreen5-lang-5.5.2-57.2.noarch                                                                                                                                                                                                                                                
kscreenlocker-5.5.2-1.2.x86_64                                                                                                                                                                                                                                                 
kscreenlocker-lang-5.5.2-1.2.noarch                                                                                                                                                                                                                                            
libkscreen-1.0.5-3.1.x86_64                                                                                                                                                                                                                                                    
libkscreen1-1.0.5-3.1.x86_64                                                                                                                                                                                                                                                   
libkscreen2-plugin-5.5.2-67.2.x86_64                                                                                                                                                                                                                                           
plasma5-addons-5.5.2-74.2.x86_64
plasma5-addons-kimpanel-5.5.2-74.2.x86_64
plasma5-addons-lang-5.5.2-74.2.noarch
plasma5-desktop-5.5.2-128.1.x86_64
plasma5-desktop-branding-openSUSE-13.3-105.2.x86_64
plasma5-desktop-lang-5.5.2-128.1.noarch
plasma5-pa-5.5.2-23.2.x86_64
plasma5-pa-lang-5.5.2-23.2.noarch
plasma5-pk-updates-0.2-6.2.x86_64
plasma5-session-5.5.2-54.1.noarch
plasma5-workspace-5.5.2-158.1.x86_64
plasma5-workspace-branding-openSUSE-13.3-105.2.x86_64
plasma5-workspace-lang-5.5.2-158.1.noarch
plasma5-workspace-libs-5.5.2-158.1.x86_64
plasma5-workspace-wallpapers-5.5.2-50.1.noarch
plasma-framework-5.17.0-92.2.x86_64
plasma-framework-components-5.17.0-92.2.x86_64
plasma-framework-lang-5.17.0-92.2.noarch
plasma-framework-private-5.17.0-92.2.x86_64

Dual monitor setup.

The "Disable all debug output" is checked in kdebugdialog application.

Despite the above, the .xsession-errors file is flooded with repeated messages like:

kscreen: Primary output changed from KScreen::Output(Id: 735 , Name: "DVI-I-1" ) ( "DVI-I-1" ) to KScreen::Output(Id: 735 , Name: "DVI-I-1" ) ( "DVI-I-1" )
kscreen: Primary output changed from KScreen::Output(Id: 735 , Name: "DVI-I-1" ) ( "DVI-I-1" ) to KScreen::Output(Id: 735 , Name: "DVI-I-1" ) ( "DVI-I-1" )
kscreen: Primary output changed from KScreen::Output(Id: 735 , Name: "DVI-I-1" ) ( "DVI-I-1" ) to KScreen::Output(Id: 735 , Name: "DVI-I-1" ) ( "DVI-I-1" )
kscreen.kded: Change detected
kscreen: Primary output changed from KScreen::Output(Id: 735 , Name: "DVI-I-1" ) ( "DVI-I-1" ) to KScreen::Output(Id: 735 , Name: "DVI-I-1" ) ( "DVI-I-1" )
kscreen.kded: Saving current config to file
kscreen.kded: Calculating config ID for KScreen::Config(0x15c08b0)
kscreen.kded:   Part of the Id:  "72ae7113884ff9c8347557cdc9e25017"
kscreen.kded:   Part of the Id:  "cc33d043af77b95a92fcab46e281fc88"
kscreen.kded:   Config ID: "6a91f28f3017f8d722c4dfd1cbacc5dd"
kscreen.kded: Config saved on:  "/home/xxxx/.local/share/kscreen/6a91f28f3017f8d722c4dfd1cbacc5dd"


Reproducible: Always

Steps to Reproduce:
1. Just login into KDE and tail -f .xsession-errors
2.
3.

Actual Results:  
kscreen.kded keeps writing to .xsession-errors

Expected Results:  
kscreen.kded should obey kdebugdialog settings
Comment 1 Vadym Krevs 2016-01-07 14:59:36 UTC
Also, systemd's journal is filled with numerous identical messages ( at least 20000)

Jan 07 14:54:59 HOSTNAME org.kde.KScreen[29960]: kscreen: Primary output changed from KScreen::Output(Id: 735 , Name: "DVI-I-1" ) ( "DVI-I-1" ) to KScreen::Output(Id: 735 , Name: "DVI-I-1" ) ( "DVI-I-1" )
Comment 2 bib 2016-02-23 09:57:09 UTC
<AOL>
Me too
</AOL>

Can't see why it is telling us it is setting something to which it already has been set.

I assume this is to do with screens not being shown when the main monitor has been disconnected.
Comment 3 Vadym Krevs 2016-02-25 15:09:57 UTC
Nope, my two monitors at work (and the single laptop screen at home) are not being physically connected and disconnected all the time ...
Comment 4 dcg 2016-03-16 15:56:39 UTC
Can confirm...I only have one screen, I have never disconnected it, but every few minutes I get this:

kscreen: Primary output changed from KScreen::Output(Id: 71 , Name: "HDMI3" ) ( "HDMI3" ) to KScreen::Output(Id: 71 , Name: "HDMI3" ) ( "HDMI3" )
kscreen: Primary output changed from KScreen::Output(Id: 71 , Name: "HDMI3" ) ( "HDMI3" ) to KScreen::Output(Id: 71 , Name: "HDMI3" ) ( "HDMI3" )
Comment 5 Thiago Macieira 2016-04-25 17:27:20 UTC
Confirmed.
Comment 6 dcg 2016-04-25 17:42:36 UTC
FWIW, the messages seem to have disappeared in the latest Plasma release (5.6)
Comment 7 Thiago Macieira 2016-04-25 18:23:57 UTC
5.6.2 here and it's still producing debugging output.
Comment 8 Sebastian Kügler 2016-05-04 01:16:11 UTC
Thiago, are you sure you have 

- libkscreen 5.6.2 installed?
- restarted your kded5 in the past few months? ;)

I've removed the bogus debug message in libkscreen dcc520fe3715 which is from last November.
Comment 9 Thiago Macieira 2016-05-04 07:24:23 UTC
There are still a lot of messages, but nowhere as many as before. I don't think I should call this a flood anymore.

Messages are like:

[   312.010] kded5(1693 1693): kscreen: starting external backend launcher for ""
[   312.011] plasmashell(1748 1748): kscreen:   starting external backend launcher for ""
[   312.013] kwin(1728 1728):   QXcbConnection: XCB error: 3 (BadWindow), sequence: 63480, resource id: 20971528, major code: 18 (ChangeProperty), minor code: 0
[   312.024] kded5(1693 1693): kscreen.kded:    Change detected
[   312.310] kded5(1693 1693): kscreen.kded:    Saving current config to file
[   312.310] kded5(1693 1693): kscreen.kded:    Calculating config ID for KScreen::Config(0x26b1740)
[   312.310] kded5(1693 1693): kscreen.kded:            Part of the Id:  "8f1a4a6b5eec2d11cb59060b47b3610a"
[   312.310] kded5(1693 1693): kscreen.kded:            Config ID: "b0002e5da0363ca4c838e70f9a3faa6c"
[   312.310] kded5(1693 1693): kscreen.kded:    Config saved on:  "/home/thiago/.local/share/kscreen/b0002e5da0363ca4c838e70f9a3faa6c"

It happens in bursts. It might be due to a faulty connection...
Comment 10 Sebastian Kügler 2016-05-04 11:35:42 UTC
It's not a faulty connection, it's actually useful debug output (we have some bugs involving dynamic screen configuration, that's where we need this information -- I hope we'll be able to get rid of it rather sooner than later, of course).

I've changed it to categorized logging, so you can disable it. Categories are in kdebugsettings, but disabling kscreen.* will help as well.