https://bugs.kde.org/show_bug.cgi?id=508494
--- Comment #15 from Waqar Ahmed <[email protected]> --- Analyzing the logs: Shutdown starts here: > Sep 20 15:51:34 rechenplan kate[3200]: kate: queryClose save active session > Sep 20 15:51:34 rechenplan kate[3200]: kate: saveActiveSession session: > dkadler, rememberAsLast: 1 isAutoSave: 0 > Sep 20 15:51:34 rechenplan kate[3200]: kate: saveSessionTo: isAutoSave: 0 > Sep 20 15:51:34 rechenplan kate[3200]: kate: saveSessionTo: clearing > KConfigGroups > Sep 20 15:51:34 rechenplan kate[3200]: kate: > KateDocManager::saveDocumentList: Count: 105 > Sep 20 15:51:34 rechenplan kate[3200]: kate: stashDocuments > Sep 20 15:51:34 rechenplan kate[3200]: kate: saveSessionTo sessionSaved Uptill here, the session seems to be saved correctly with 105 documents. > Sep 20 15:51:34 rechenplan systemd[2322]: Stopping > [email protected] - Kate - Erweitert> > Sep 20 15:51:34 rechenplan kate[3200]: kate: void > KateSessionManager::updateSessionList() Then we start triggering shutdown code once again. Probably as a result of a terminate signal? > Sep 20 15:51:34 rechenplan kate[3200]: kate: KateApp::shutdownKate save > session > Sep 20 15:51:34 rechenplan kate[3200]: kate: saveActiveSession session: > dkadler, rememberAsLast: 1 isAutoSave: 0 > Sep 20 15:51:34 rechenplan kate[3200]: kate: saveSessionTo: isAutoSave: 0 > Sep 20 15:51:34 rechenplan kate[3200]: kate: saveSessionTo: clearing > KConfigGroups The document list is 0 when saving the session this time: > Sep 20 15:51:34 rechenplan kate[3200]: kate: > KateDocManager::saveDocumentList: Count: 0 > Sep 20 15:51:34 rechenplan kate[3200]: kate: stashDocuments > Sep 20 15:51:34 rechenplan kate[3200]: kate: saveSessionTo sessionSaved > Sep 20 15:51:34 rechenplan kate[3200]: kate: void > KateSessionManager::updateJumpListActions() AFAICT, The only reason documentList could be 0 is if a window is closed and the setting "Close documents with the window they belong to" (in Session settings) is true (true by default). The KateMainWindow destructor closes all documents in that window that are not open in other windows. @Nate @Andreas Hartmetz Can you try to disable that setting and see if the issue goes away? I think a simple fix could be to not close the documents if we have just 1 main window. Or perhaps we should uninstall the signal handler @Christoph have any thoughts or a better idea? -- You are receiving this mail because: You are watching all bug changes.
