Registered Member
|
Then performing logout from kde session - some applications hard killed, for example chrome, firefox
On next login and launching this applications reports as they were not correctly closed I fount this bug https://bugs.kde.org/show_bug.cgi?id=248459 and set in .kde4/share/config/ksmserverrc the clientShutdownTimeoutSecs=99 and legacySaveTimeoutSecs=99 But this not helped. Am i doing this wrong ? I using kde4 from opensuse 13.2 64 bit (kdebase4-workspace-4.11.20-29.5.x86_64) |
Registered Member
|
am i post to correct forum, or try something else ?
|
|
It's not the correct subforum (KWin manages windows, it has no deal in session management) but I don't know where to ask either.
However, I'd try to raise the value even more and measure whether that timeout actually passes. It's more than weird that the browsers need more than 99 seconds to store their stuff. It's more likely they actually crashed on exit? About "doing it wrong": What does your ~/.kde4/share/config/ksmserverrc look like? (at least the [General] secion) |
Registered Member
|
yes, its seems like browser crashed, but then browser has 1 tab - all fine closed and restored
and then i manually close browser with many tabs and windows - it closes fine and next launch also fine so i think session management kills browser too fast my ksmserverrc "General" section is: [General] clientShutdownTimeoutSecs=99 confirmLogout=true excludeApps= legacySaveTimeoutSecs=99 loginMode=restoreSavedSession offerShutdown=true screenCount=1 shutdownType=0 can i get some logs from session management to see what happands on logout ? |
|
Does the logout take more than 1.5 minutes then?
To log ksmserver, run "kdebugdialog --fullmode" and redirect all output for ksmserver (1218) into some file (eg. ~/ksmserver.log) which you can inspect afterwards (for "protectionTimeout" mentions) |
Registered Member
|
thanks for kdebugdialog, here the log for logout then login:
ksmserver(1523) KSMServer::performLegacySessionSave: Saving legacy session apps ksmserver(1523) KSMServer::performLegacySessionSave: Done saving 6 legacy session apps ksmserver(1523) KSMServer::completeShutdownOrCheckpoint: Starting logout event ksmserver(1523) KSMServer::logoutSoundFinished: Logout event finished ksmserver(1523) KSMServer::startKilling: Starting killing clients ksmserver(1523) KSMServer::startKilling: completeShutdown: client "kwinsmhelper" ( 10153c8e1eb000145777303400000015230000 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "/usr/bin/krunner" ( 10153c8e1eb000145777303400000015230001 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "/usr/bin/plasma-desktop" ( 10153c8e1eb000145777303400000015230002 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "/usr/bin/kmix" ( 10153c8e1eb000145710629900000018060012 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "/usr/bin/konsole" ( 10153c8e1eb000145712097000000015280009 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "/usr/bin/kate" ( 10153c8e1eb000145719577000000015100110 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "/usr/bin/qbittorrent" ( 10153c8e1eb000145727301000000015080011 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "/usr/bin/skype" ( 10153c8e1eb000145727702400000015080021 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "/usr/lib64/kde4/libexec/polkit-kde-authentication-agent-1" ( 10153c8e1eb000145777303600000015230007 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "/usr/bin/klipper" ( 10153c8e1eb000145777303600000015230006 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "pulseaudio" ( 10153c8e1eb000145777303700000015230008 ) ksmserver(1523) KSMServer::startKilling: completeShutdown: client "/usr/lib/mozilla/kmozillahelper" ( 10153c8e1eb000145777303800000015230009 ) ksmserver(1523) KSMServer::startKilling: We killed all clients. We have now clients.count()= 13 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 13 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 12 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 11 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 10 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 9 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 8 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 7 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 6 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 5 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 4 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 3 ksmserver(1523) KSMServer::completeKilling: KSMServer::completeKilling clients.count()= 2 ksmserver(1523) KSMServer::timeoutQuit: SmsDie timeout, client "kwin" ( 10153c8e1eb000145710629200000018060000 ) ksmserver(1523) KSMServer::timeoutQuit: SmsDie timeout, client "/usr/bin/qbittorrent" ( 10153c8e1eb000145727301000000015080011 ) ksmserver(1523) KSMServer::killWM: Starting killing WM ksmserver(1523) KSMServer::killWM: killWM: client "kwin" ( 10153c8e1eb000145710629200000018060000 ) ksmserver(1523) KSMServer::completeKillingWM: KSMServer::completeKillingWM clients.count()= 2 ksmserver(1523) KSMServer::completeKillingWM: KSMServer::completeKillingWM clients.count()= 1 ksmserver(1523) KSMServer::completeKillingWM: KSMServer::completeKillingWM clients.count()= 0 ksmserver(3818) SetAuthentication_local: KSMServer: SetAProc_loc: conn 0 , prot= local , file= @/tmp/.ICE-unix/3818 ksmserver(3818) SetAuthentication_local: KSMServer: SetAProc_loc: conn 1 , prot= unix , file= /tmp/.ICE-unix/3818 ksmserver(3818) KSMServer::restoreSession: KSMServer::restoreSession "saved by user" ksmserver(3818) KSMServer::autoStart0Done: Autostart 0 done ksmserver(3818) KSMServer::kcmPhase1Done: Kcminit phase 1 done ksmserver(3818) KSMServer::autoStart1Done: Autostart 1 done ksmserver(3818) KSMServer::kcmPhase2Done: Kcminit phase 2 done ksmserver(3818) KSMServer::autoStart2Done: Autostart 2 done then i login again firefox reports about "Well, this is embarrassing." ... logout not takes 99 seconds, but as usual quick (up to 10 seconds, or less) in this log i dont see chrome, he also reports as crashed |
|
the timeout does not seem to be the problem (no such delay nor debug mention), ie. the client will perform a crash-on-exit or falsely believe so, because it forgets/fails to delete its lock files on session endings.
maybe you unmount/encrypt your home dir onl ogout? |
Registered Member
|
no umount home dir used
no encription used in my log from ksmserver(1523) i cant see any lines about firefox or chrome they are killed by signal SIGTERM or SIGKILL ? |
|
They're not killed at all - I assume they invalidly quit when receiving the signal that the session is about to end (Qt4 & 5 do the same, KMainWindow used to work around that and will in upcoming releases, but that's no relevant here)
I'm pretty sure you're dealing with bugs in the particular clients, not actual kills by the session manager. |
Registered Member
|
thanks, i`ll try firefox forums to ask |
Registered users: Bing [Bot], Evergrowing, Google [Bot]