multiple kate sessions running after login

Bug #254347 reported by Paul Loughman
2
Affects Status Importance Assigned to Milestone
kdesdk (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hardy Heron running KDE 4.1.00

Starting today - August 1, 2008 - logging in from KDM results in multiple open sessions of Kate, all with an empty document. It started with four such sessions. It's now up to six.

The only 'fix' is to remove the hidden .kde4 folder in the users home directory, and, you have to do so from outside of a running X/KDM session. Removing the folder from within the current session results in a 'new' .kde4 folder being created instantly.

I had to reboot into one of my other Kubuntu installations and delete the .kde4 folder in HH KDE 4.1.00. Performing a shutdown are reboot back into HH KDE 4.1.00 resulted in no running sessions of Kate. Yet later this same day, the behavior returned. The only thing that was done 'on the system' was to run Adept Manager and later, apt-get.

I'm not sure this behavior is a KDM issue, but ....

Revision history for this message
Nick Ellery (nick.ellery) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at [WWW] https://wiki.ubuntu.com/Bugs/FindRightPackage . I have classified this bug as a bug in kate.

Revision history for this message
Paul Loughman (snowhog) wrote :
Download full text (4.3 KiB)

Reviewing https://wiki.ubuntu.com/Bugs/FindRightPackage gave me some insight into looking for evidence of what's happening. I looked at my .xsessions-errors file, filtered through grep on kate and found interesting things! I moved the file and logged out and rebooted. This ensured a new .xsession-errors file would be created. When I logged in through KDM and the desktop loaded, kate launched seven instances - up by one since I logged this bug. I killed them all and then made a copy of the new .xsessions-errors file, which is attached (xsession-errros200808022151). It also contains interesting entries, like these:

kate(6226): createDoc
kate(6227): createDoc
kate(6229): createDoc
kate(6225): createDoc
kate(6228): createDoc
kate(6230): createDoc
kate(6226) KateSessionManager::KateSessionManager: LOCAL SESSION DIR: "/home/pa
ul/.kde4/share/apps/kate/sessions"
kate(6226) KateApp::initKate: Setting KATE_PID: ' 6226 '
kate(6227) KateSessionManager::KateSessionManager: LOCAL SESSION DIR: "/home/pa
ul/.kde4/share/apps/kate/sessions"
kate(6227) KateApp::initKate: Setting KATE_PID: ' 6227 '
kate(6225) KateSessionManager::KateSessionManager: LOCAL SESSION DIR: "/home/pa
ul/.kde4/share/apps/kate/sessions"
kate(6225) KateApp::initKate: Setting KATE_PID: ' 6225 '
kate(6229) KateSessionManager::KateSessionManager: LOCAL SESSION DIR: "/home/pa
ul/.kde4/share/apps/kate/sessions"
kate(6229) KateApp::initKate: Setting KATE_PID: ' 6229 '
kate(6228) KateSessionManager::KateSessionManager: LOCAL SESSION DIR: "/home/pa
ul/.kde4/share/apps/kate/sessions"
kate(6228) KateApp::initKate: Setting KATE_PID: ' 6228 '
kate(6230) KateSessionManager::KateSessionManager: LOCAL SESSION DIR: "/home/pa
ul/.kde4/share/apps/kate/sessions"
kate(6230) KateApp::initKate: Setting KATE_PID: ' 6230 '
kate(6226) KateSession::init: Warning, session file not found: "default.kateses
sion"
kate(6227) KateSession::init: Warning, session file not found: "default.kateses
sion"
kate(6225) KateSession::init: Warning, session file not found: "default.kateses
sion"
kate(6229) KateSession::init: Warning, session file not found: "default.kateses
sion"
kate(6228) KateSession::init: Warning, session file not found...

Read more...

Revision history for this message
rhino (ffrominside) wrote :

Hi all

This problem cuz when you close kate , kate process doesn't end.
kill process of kate before you logout or shutdown ( end of session )

or run kate in terminal and after close it press ( ctrl + c )

This bug ==> kate bug

Be happy

Revision history for this message
Paul Loughman (snowhog) wrote :

That is interesting! Before you posted your comment, I had noticed that the .krunnerrc file appeared to contain corruption:
"headerState=\x00\x00\x00�\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x0b\\\x02\x00\x00\x00\x05\x00\x00\x00\t\x00\x00\x00d\x00\x00\x00\x06\x00\x00\x00d\x00\x00\x00\x04\x00\x00\x00d\x00\x00\x00\x03\x00\x00\x00d\x00\x00\x00\x02\x00\x00\x00d\x00\x00\x02^\x00\x00\x00\x0b\x01\x01\x00\x01\x01\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00d����\x00\x00\x00�\x00\x00\x00\x00\x00\x00\x00\t\x00\x00\x00�\x00\x00\x00\x01\x00\x00\x00\x03\x00\x00\x00d\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x001\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x008\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00Q\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00�\x00\x00\x00\x01\x00\x00\x00\x00" (my quotes)

I moved it to .krunnerrc_BORKED and shutdown/restarted my system. This time only one instance of kate appeared. I looked, and no new .krunnerrc had been created. So, I believe that this corrupted (?) file was contributing to the problem. With it 'out of the picture' things are 'better' in that only one instance of kate. Hmmm.

I looked at the .xsession-errors, filtered through grep on krunner and kate, and this is what I got:

kdeinit4: Got EXEC_NEW '/usr/lib/kde4/bin/krunner' from launcher.
kdeinit4: preparing to launch /usr/lib/kde4/bin/krunner
kate(6226): createDoc
kate(6226) KateSessionManager::KateSessionManager: LOCAL SESSION DIR: "/home/paul/.kde4/share/apps/kate/sessions"
kate(6226) KateApp::initKate: Setting KATE_PID: ' 6226 '
kate(6226) KateSession::init: Warning, session file not found: "default.katesession"
kate(6226) KateViewDocumentProxyModel::updateBackgrounds: false
kate(6226) KateMainWindow::KateMainWindow: **************************************************************************** 0x816cc90
kate(6226) KateViewDocumentProxyModel::updateBackgrounds: false
kate(6226) KateViewDocumentProxyModel::updateBackgrounds: false
kate(6226) KateViewDocumentProxyModel::updateBackgrounds: true

The warning about the missing "default.katesession" file is interesting. The specified LOCAL SESSION DIR does in fact contain this file, as well as a "Default Session.katesession" The sizes and contents are identical, but the time stamps are different, in my case, default.katesession was created today at 23:13 hours and "Default Session.katesession" was created today at 22:56 hours.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.