.xsession-errors-:0 file very large

Turned Debug off, logged out, removed ‘.xsession-errors-:0’ via a session on tty2, logged back in (SDDM; KDE Plasma 5):

  • ‘.xsession-errors-:0’ is still about 75K with Kontact running.

Some parts of the “fresh” ‘.xsession-errors-:0’:


Loading stage  "initial" 213
startkde: Starting up...
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
Initializing  "kcm_kgamma" :  "kcminit_kgamma"
Initializing  "kded_touchpad" :  "kcminit_touchpad"
Initializing  "kcm_input" :  "kcminit_mouse"
Initializing  "kcm_style" :  "kcminit_style"
QFile::copy: Empty or null file name
Initializing  "kcm_access" :  "kcminit_access"
kf5.kcoreaddons.kaboutdata: Could not initialize the equivalent properties of Q*Application: no instance (yet) existing.
Qt: Session management error: networkIdsList argument is NULL
Configuring Lock Action
detected kglobalaccel restarting, re-registering all shortcut keys
Session path: "/org/freedesktop/login1/session/_349"
kf5.kcoreaddons.kaboutdata: Could not initialize the equivalent properties of Q*Application: no instance (yet) existing.
Trying to convert empty KLocalizedString to QString.
Trying to convert empty KLocalizedString to QString.
Trying to convert empty KLocalizedString to QString.
Fehlgeschlagen: Modulinitialisierung fehlgeschlagen
Installing the delayed initialization callback.
Delayed initialization.
QObject::connect: Cannot queue arguments of type 'ObjectDescriptionType'
(Make sure 'ObjectDescriptionType' is registered using qRegisterMetaType().)
Reloading the khotkeys configuration
Version 2 File!
kdeconnect.core: KdeConnect daemon starting
New PolkitAgentListener  0x23bf6e0
Adding new listener  PolkitQt1::Agent::Listener(0x23d5ad0) for  0x23bf6e0
Listener online
true
Imported file "/usr/share/khotkeys/defaults.khotkeys"
Imported file "/usr/share/khotkeys/kde32b1.khotkeys"
Imported file "/usr/share/khotkeys/konqueror_gestures_kde321.khotkeys"
Imported file "/usr/share/khotkeys/spectacle.khotkeys"
Authentication agent result: true
 .
 .
 .
 .
akonadi.schemaversiontable                         OK
akonadi.tagattributetable                          OK
akonadi.tagremoteidresourcerelationtable           OK
akonadi.tagtable                                   OK
akonadi.tagtypetable                               OK
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
QDBusConnection: name 'org.freedesktop.Akonadi.Control' had owner '' but we thought it was ':1.26'
org.kde.akonadi.ETM: GEN true false false
org.kde.akonadi.ETM: collection: QVector()
org.kde.akonadi.ETM:
org.kde.akonadi.ETM: GEN true false false
org.kde.akonadi.ETM: collection: QVector()
org.kde.akonadi.ETM:
org.kde.akonadi.ETM: GEN true false true
org.kde.akonadi.ETM: collection: QVector()
 . 
 .
 .
completeShutdownOrCheckpoint called
OpenGL vendor string:                   X.Org
OpenGL renderer string:                 Gallium 0.4 on AMD OLAND (DRM 2.49.0 / 4.4.132-53-default, LLVM 3.8.0)
OpenGL version string:                  4.1 (Core Profile) Mesa 17.0.5
OpenGL shading language version string: 4.10
Driver:                                 Unknown
GPU class:                              Unknown
OpenGL version:                         4.1
GLSL version:                           4.10
Mesa version:                           17.0.5
X server version:                       1.18.3
Linux kernel version:                   4.4.132
Requires strict binding:                yes
GLSL shaders:                           yes
Texture NPOT support:                   yes
Virtual Machine:                        no
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/home/Users/xxx/.local/share", "/usr/share")
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/home/Users/xxx/.local/share", "/usr/share")
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/home/Users/xxx/.local/share", "/usr/share")
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/kwin-script.desktop, tried ("/home/Users/xxx/.local/share", "/usr/share")
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/kwin-effect.desktop, tried ("/home/Users/xxx/.local/share", "/usr/share")
 .
 .
 .
The image "widgets/scrollbar" doesn't contain any of the prefixes ("background-horizontal")
The image "widgets/scrollbar" doesn't contain any of the prefixes ("background-horizontal")
No metadata file in the package, expected it at: "/home/Users/xxx/Bilder/"
No metadata file in the package, expected it at: "/home/Users/xxx/Bilder/"
No metadata file in the package, expected it at: "/home/Users/xxx/Bilder/"
Couldn't find node arrow-down. Skipping rendering.
Couldn't find node arrow-up. Skipping rendering.
Couldn't find node arrow-right. Skipping rendering.
Couldn't find node arrow-left. Skipping rendering.
QPainter::begin: Paint device returned engine == 0, type: 2
QPainter::save: Painter not active
QPainter::translate: Painter not active
QPainter::scale: Painter not active
QPainter::worldTransform: Painter not active
QPainter::setPen: Painter not active
QPainter::setBrush: Painter not active
QPainter::setRenderHint: Painter must be active to set rendering hints
 .
 .
 .
QPainter::restore: Unbalanced save/restore
QPainter::end: Painter not active, aborted
kf5.kio.trash: listdir:  QUrl("trash:/")
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:83: TypeError: Cannot read property 'Layout' of null
KActivities: Database connection:  "kactivities_db_resources_140021508761856_readonly"
    query_only:          QVariant(qlonglong, 1)
    journal_mode:        QVariant(QString, "wal")
    wal_autocheckpoint:  QVariant(qlonglong, 100)
    synchronous:         QVariant(qlonglong, 0)
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
QObject::connect: invalid null parameter
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:347: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:348: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:349: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/ScrollView.qml:350: TypeError: Cannot read property 'padding' of null
file:///usr/lib64/qt5/qml/QtQuick/Controls/Button.qml:96: TypeError: Cannot read property of null
 .
 .
 .

Well, not every application uses Qt’s categorized logging for output (and it is not used for every output), and some of the messages you posted come from Qt itself and indicate possible programming mistakes.
Definitely something to be improved, but I don’t see the real problem or why we keep going on here.
75K is hardly an issue, is it?

Btw, as I already mentioned you don’t need to remove .xsession-errors-:0. It is automatically removed and recreated empty when you login.

@nrickert
I am the OP. I thought when the updates included a kernel update It fixed the problem of .xsession-errors-:0 being so huge, but of course it was only because I rebooted and it tripped this file back to 0.
From your suggestions on page 1:

**linux-3bka:/home/dabud #** tail .xsession-errors-:0
0009:fixme:font:GSUB_apply_feature We only handle SubType 1
0009:fixme:font:GSUB_apply_feature We only handle SubType 1
0009:fixme:font:GSUB_apply_feature We only handle SubType 1
0009:fixme:font:GSUB_apply_feature We only handle SubType 1
0009:fixme:font:GSUB_apply_feature We only handle SubType 1
0009:fixme:font:GSUB_apply_feature We only handle SubType 1
0009:fixme:font:GSUB_apply_feature We only handle SubType 1
0009:fixme:font:GSUB_apply_feature We only handle SubType 1
0009:fixme:font:GSUB_apply_feature We only handle SubType 1
0009:fixme:font:GSUB_apply_feature We only handle SubType 1
**linux-3bka:/home/dabud #**

less .xsession-errors-:0

Loading stage  "initial" 179
startkde: Starting up...
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/solidautoeject.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/networkstatus.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/kscreen.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/freespacenotifier.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/recentdocumentsnotifier.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/proxyscout.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/baloosearchmodule.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/soliduiserver.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/filenamesearchmodule.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/remotenotifier.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/remotedirnotify.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/bluedevil.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/statusnotifierwatcher.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/keyboard.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/ksysguard.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/appmenu.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/ktimezoned.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/desktopnotifier.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/networkmanagement.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/networkwatcher.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/device_automounter.so"
kf5.kded: No X-KDE-DBus-ServiceName found in "/usr/lib64/qt5/plugins/kf5/kded/khotkeys.so"
Initializing  "kded_touchpad" :  "kcminit_touchpad"
Initializing  "kcm_style" :  "kcminit_style"
Initializing  "kcm_kgamma" :  "kcminit_kgamma"
Initializing  "kcm_input" :  "kcminit_mouse"
Initializing  "kcm_access" :  "kcminit_access"
kf5.kcoreaddons.kaboutdata: Could not initialize the equivalent properties of Q*Application: no instance (yet) ex
isting.
detected kglobalaccel restarting, re-registering all shortcut keys
Qt: Session management error: networkIdsList argument is NULL
Configuring Lock Action
ksmserver: "/run/user/1000/KSMserver"
ksmserver: KSMServer: SetAProc_loc: conn  0 , prot= local , file= @/tmp/.ICE-unix/1765
ksmserver: KSMServer: SetAProc_loc: conn  1 , prot= unix , file= /tmp/.ICE-unix/1765
ksmserver: KSMServer::restoreSession  "saved at previous logout"
kscreen.kded: Config KScreen::Config(0xdf9780) is ready
kscreen.kded: PowerDevil SuspendSession action not available!
kscreen.kded: "The name org.kde.Solid.PowerManagement was not provided by any .service files"
kscreen.kded: Applying config
kscreen.kded: Applying known config "78a622e53f5605173192074254bf8116"
kscreen.kded: Finding a mode for QSize(1920, 1080) @ 60
kscreen.kded:   Found:  "72"   QSize(1920, 1080) @ 60
Ckscreen.kded: doApplyConfig()
kscreen.kded: Config applied
kscreen.kded: Monitor for changes:  true
kscreen: Requesting missing EDID for outputs (68)
kscreen.kded: Change detected
kscreen.kded: KScreen::Output( 68   "HDMI-2" connected enabled QPoint(0,0) QSize(1920, 1080) "72" )
ksmserver: Starting autostart service  "/etc/xdg/autostart/baloo_file.desktop"
ksmserver: Starting autostart service  "/etc/xdg/autostart/kdeconnectd.desktop"
ksmserver: Starting autostart service  "/etc/xdg/autostart/krunner.desktop"
ksmserver: Starting autostart service  "/etc/xdg/autostart/plasmashell.desktop"
ksmserver: Starting autostart service  "/etc/xdg/autostart/polkit-kde-authentication-agent-1.desktop"
ksmserver: Starting autostart service  "/etc/xdg/autostart/xembedsniproxy.desktop"
ksmserver: Autostart 0 done
Session path: "/org/freedesktop/login1/session/_32" line numbers... (interrupt to abort)
ksmserver: Kcminit phase 1 done
ksmserver: Starting autostart service  "/etc/xdg/autostart/pulseaudio.desktop"
ksmserver: Autostart 1 done
kf5.kcoreaddons.kaboutdata: Could not initialize the equivalent properties of Q*Application: no instance (yet) ex
isting.
kdeconnect.core: KdeConnect daemon starting
completeShutdownOrCheckpoint called
New PolkitAgentListener  0xf9c8e0
Adding new listener  PolkitQt1::Agent::Listener(0xfc3b20) for  0xf9c8e0
Listener online
Authentication agent result: true
completeShutdownOrCheckpoint called
powerdevil: Backend loaded, loading core
powerdevil: Core loaded, initializing backend
kdeconnect.core: onStart
powerdevil: No outputs have backlight property
powerdevil: Falling back to helper to get brightness
kdeconnect.core: KdeConnect daemon started
QDBusArgument: read from a write-only object
QDBusArgument: read from a write-only object
QDBusArgument: read from a write-only object
completeShutdownOrCheckpoint called
completeShutdownOrCheckpoint called
kdeconnect.core: Broadcasting identity packet
"\"fsrestore1\" - conversion of \"0,0,0,0\" to QRect failed"
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, trie
d ("/home/dabud/.local/share", "/usr/share")
Config timer connecting...
org.kde.baloo: "/home/dabud"
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, trie
d ("/home/dabud/.local/share", "/usr/share")
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, trie
d ("/home/dabud/.local/share", "/usr/share")
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, trie
d ("/home/dabud/.local/share", "/usr/share")
kf5.kcoreaddons.desktopparser: Could not locate service type file kservicetypes5/plasma-popupapplet.desktop, trie
d ("/home/dabud/.local/share", "/usr/share")
powerdevil: org.kde.powerdevil.backlighthelper.brightness failed
powerdevil: ""
powerdevil: Backend is ready, KDE Power Management system initialized
KGlobal::locale(): Warning your global KLocale is being recreated with a valid main component instead of a fake c
omponent, this usually means you tried to call i18n related functions before your main component was created. You
 should not do that since it most likely will not work
powerdevil: Session path: "/org/freedesktop/login1/session/_32"
powerdevil: ACTIVE SESSION PATH: "/org/freedesktop/login1/session/_32"
powerdevil: Current session is now active
powerdevil: fd passing available: true
powerdevil: systemd powersave events handling inhibited, descriptor: 18
powerdevil: systemd support initialized
powerdevil: Got a valid offer for  "DPMSControl"
powerdevil: Core is ready, registering various services on the bus...
Trying to convert empty KLocalizedString to QString.
Trying to convert empty KLocalizedString to QString.
Trying to convert empty KLocalizedString to QString.
powerdevil: Can't contact ck
powerdevil: We are now into activity  "00000000-0000-0000-0000-000000000000"
powerdevil: () ()
powerdevil: () ()
powerdevil: No batteries found, loading AC
powerdevil: Activity is not forcing a profile
powerdevil: Handle button events action could not check for screen configuration
powerdevil: The profile  "AC" tried to activate "DimDisplay" a non-existent action. This is usually due to an ins
tallation problem, or to a configuration problem, or simply the action is not supported
org.kde.kcm_keyboard: Failed to open layout memory xml file for reading "/home/dabud/.local/share/kded5/keyboard/
session/layout_memory.xml" error: 5
Installing the delayed initialization callback.
ksmserver: Starting notification thread
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
ksmserver: Starting autostart service  "/etc/xdg/autostart/pasystray.desktop"
Delayed initialization.
ksmserver: Starting autostart service  "/etc/xdg/autostart/powerdevil.desktop"
Reloading the khotkeys configuration
ksmserver: Autostart 2 done
ksmserver: Kcminit phase 2 done
ksmserver: autostart service ("/usr/bin/start-pulseaudio-x11") finished with exit code  0
powerdevil: Can't contact ck
kscreen: Requesting missing EDID for outputs (68)
Version 2 File!
true
Imported file "/usr/share/khotkeys/konqueror_gestures_kde321.khotkeys"
Imported file "/usr/share/khotkeys/defaults.khotkeys"
Imported file "/usr/share/khotkeys/kde32b1.khotkeys"
Imported file "/usr/share/khotkeys/spectacle.khotkeys"
ksmserver: autostart service ("/usr/lib64/libexec/org_kde_powerdevil") finished with exit code  0
QXcbConnection: XCB error: 3 (BadWindow), sequence: 903, resource id: 23068680, major code: 18 (ChangeProperty), 
minor code: 0
.xsession-errors-:0 lines 97-146/426409725 0%

alculating line numbers... (interrupt to abort)

And the above sits there forever.
As discussed this file diminishes in size whenever I reboot, but always builds up gradually until I am told there is no more space in my HOME drive.

My questions are these:
Why is this happening? [never happened in 42.2]
Is there a way to deplete this file without rebooting?
Or is there another way to handle this, prevent the file from building to an unmanageable size?
[Unfortunately I did not understand a lot of the conversation in posts after mine and prior to this one.]

Thank You

I think there’s a way to get “less” to recheck the end of the file.

In a terminal window (konsole or similar) you could use:

tail -f .xsession-errors-:0

and then you will see new lines as they show up. The “-f” tells “tail” to follow additions to the file.

Why is this happening? [never happened in 42.2]

Much the same should have been happening in 42.2 . So the change is that the file is now growing much faster because something is producing too much output.

Is there a way to deplete this file without rebooting?

“logout” followed by “login” should also reset the file.

Without a logout, you can try:

cp /dev/null .xsession-errors-:0

I’m not sure if that will work, because it depends on whatever kind of buffering is going on.

Today’s bad news:

  • I dumped the contents of KWallet to an XML file as a backup copy – which gets moved to a DVD-RAM …

‘.xsession-errors-:0’ contains lines such as:


Pass a valid window to KWallet::Wallet::openWallet().
Creating the cache for:  "/home/ … … "
sonnet.core: No scores for « KWallet string »
sonnet.core: Unable to identify string with dictionaries: « KWallet string »

Some of the strings are the Login IDs held in KWallet, others are the passwords … >:([HR][/HR]Recommendation:

After creating a backup XML of KWallet, logout; remove ‘.xsession-errors-:0’; login again …

That’s debug output by sonnet, KDE’s spell checker.
And it does look like Qt’s categorized logging (because of the “sonnet.core” prefix), so it should be possible to disable it via kdebugsettings.

I somehow doubt this is enabled by default, if it is a bug report may be in order. Although you should better try on a fresh user account first (or delete the config file, .config/QtProject/qtlogging.ini) before you really would file one.

It’s arguable whether this is a security risk though, as it not really associable to the kwallet password prompt.
And, no other user can read .xsession-errors-:0 anyway.

After creating a backup XML of KWallet, logout; remove ‘.xsession-errors-:0’; login again …

As I already wrote, ‘.xsession-errors-:0’ will be truncated (created from scratch) on login, so no need to remove it.

I took a look at ‘~/.config/QtProject/qtlogging.ini’ and found that, almost everything was set to false except for:


 > grep -i 'true' qtlogging.ini
log_importwizard.info=true
log_importwizard.warning=true
log_importwizard.critical=true
 > 

The Sonnet entries are all set to false:


 > grep -i 'sonnet' qtlogging.ini
sonnet.plugins.hunspell.info=false
sonnet.plugins.hunspell.debug=false
sonnet.plugins.hunspell.warning=false
sonnet.plugins.hunspell.critical=false
sonnet.plugins.voikko.info=false
sonnet.plugins.voikko.debug=false
sonnet.plugins.voikko.warning=false
sonnet.plugins.voikko.critical=false
 > 

I’ve changed all of the ‘true’ settings to ‘false’.

The posted output came from sonnet.core though, and not from any of the plugins…

Actually there is.

The redirection is created in the file /etc/X11/xdm/Xsession (which is run when a new X session is started).

You could modify it to redirect to /dev/null instead which would just discard everything.
To do that, search for these lines (it’s #158ff. here, but I’m on Leap 15):

            #exec > "$errfile" 2>&1
            #fate#316129: only put the error message to the logfile
            exec > /dev/null
            exec 2> "$errfile"
            break

and replace the red one with:

exec 2> /dev/null

Now, .xsession-errors-:0 should not be created anymore (or at least stay empty).

Your change may be overwritten by updates (I’m not sure), but at least SDDM would allow to set a custom one in its config (other DMs may or may not).

Other than that, you could set up a cron job to periodically delete it. Although, as nrickert already pointed out, as the file is still in use that may not necessarily free the space (worth a try though, I suppose, you could also manually delete it and see if it works).