Bug 360561 - KConfig warnings cannot be silenced
Summary: KConfig warnings cannot be silenced
Status: CONFIRMED
Alias: None
Product: frameworks-kconfig
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 5.104.0
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: Matthew Dawson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-03-15 14:45 UTC by Laurent Bonnaud
Modified: 2023-04-02 11:12 UTC (History)
7 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 Laurent Bonnaud 2016-03-15 14:45:02 UTC
I see many error messages like those in my ~/.xsession-errors file:

[...]
"\"fsrestore1\" - conversion of \"481,481,0,0\" to QRect failed"
"\"fsrestore2\" - conversion of \"481,481,0,0\" to QRect failed"
"\"fsrestore3\" - conversion of \"481,481,0,0\" to QRect failed"
[...]

This looks a lot like bug #306898 that was in KDE4.

This is with neon packages as of today: 

Package: plasma-workspace 
Version: 4:5.5.4+git20160315.1136+15.10-0

Sorry for reporting this to a plasmashell/general, please reassign if necessary. 


Reproducible: Always
Comment 1 Erik Quaeghebeur 2016-04-26 08:38:57 UTC
I can confirm this. It seems kwin_x11 is logging this.

Next to the 481 one, I also have

"\"fsrestore?\" - conversion of \"342,342,0,0\" to QRect failed"

with ? in {1,...,9}.
Comment 2 Laurent Bonnaud 2016-04-26 08:41:21 UTC
SInce my inital report I upgraded my system to Ubuntu 16.04 and Neon packages:

Package: kwin
Version: 4:5.6.3+p16.04+git20160426.0359-0

and the error messages are still there.
Comment 3 Martin Flöser 2016-08-27 16:07:31 UTC
> I can confirm this. It seems kwin_x11 is logging this.

why do you think KWin is logging this? Can you please change the debug pattern to include the actual process?
Comment 4 Martin Flöser 2016-10-28 19:13:29 UTC
Reassigning to KConfig. The warning messages are logged by KConfig. See for example: src/core/kconfiggroup.cpp

    case QMetaType::QRect: {
        const QList<int> list = asIntList(value);

        if (list.count() != 4) {
            qWarning() << errString(pKey, value, aDefault)
                       << formatError(4, list.count());
            return aDefault;
        }

Due to the usage of qWarning instead of qCWarning the warnings cannot be silenced and clutter xsession-errors.
Comment 5 Erik Quaeghebeur 2016-10-28 20:25:06 UTC
(In reply to Martin Gräßlin from comment #3)
> > I can confirm this. It seems kwin_x11 is logging this.
> 
> why do you think KWin is logging this? Can you please change the debug
> pattern to include the actual process?

Sorry, I seem to have missed this comment, but got alerted by comment #4. In any case, if it is still useful:

okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"fsrestore1\" - conversion of \"0,0,0,0\" to QRect failed"
okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"fsrestore2\" - conversion of \"481,481,0,0\" to QRect failed"
okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"fsrestore3\" - conversion of \"481,481,0,0\" to QRect failed"
okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"fsrestore4\" - conversion of \"481,481,0,0\" to QRect failed"
okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"restore5\" - conversion of \"0,0,0,0\" to QRect failed"
okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"fsrestore5\" - conversion of \"0,0,0,0\" to QRect failed"
okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"fsrestore6\" - conversion of \"0,0,0,0\" to QRect failed"
okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"restore7\" - conversion of \"-4,0,797,0\" to QRect failed"
okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"fsrestore7\" - conversion of \"0,0,0,0\" to QRect failed"
okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"restore8\" - conversion of \"1010,0,797,0\" to QRect failed"
okt 27 18:36:13 <hostname> kwin_x11[2215]: "\"fsrestore8\" - conversion of \"0,0,0,0\" to QRect failed"
Comment 6 Laurent Bonnaud 2016-12-25 20:54:57 UTC
This bug is still in neon packages as of version 5.29.0+p16.04+git20161220.1217-0.
Comment 7 Laurent Bonnaud 2017-04-10 16:23:03 UTC
This bug still exists in Kubuntu 17.04 and this package version:

Package: libkf5configcore5
Version: 5.31.0-0ubuntu1
Comment 8 Laurent Bonnaud 2019-05-14 09:56:13 UTC
This bug still exists in Kubuntu 19.04 and this package version:

Package: libkf5configcore5
Version: 5.56.0-0ubuntu1