Am Freitag, 16. Oktober 2015, 21:23:22 schrieb mournblade:
You're absolutely correct about the problem occurring at save-time rather than restore-time. The problem is not even with the session-saving code per se. It seems to be working fine in isolation. The problem only occurs when the session-saving code is called automatically at logout. It's either some kind of timing issue, as you suggested, or the session-saving code is conflicting with other processes running at logout-time. I've noticed frequent kdeinit5 seg faults at logout when sessions are set to autosave and one or more kf5 apps are open, but only when both these conditions are true.
Well, I'm not sure about all details, but AIUI ksmserver signals each application to write its state to ~/.config/session/, and only then adds a command to restart the corresponding application to ksmserverrc. So if an application crashes while storing the state, it probably won't get restored. The bug report I linked to mentions that the session storing code (in Qt5) seems to be called when the window is already closed. Trying to access a non- existing window (to get some window properties e.g.) will of course cause the application to crash, so this might indeed be the actual reason for the problem. Other indications for this: - Kmix5 is _reliably_ restarted AFAICT even with Autostart turned off (i.e. by the session management). This lives in the system tray and doesn't have a window open in the first place. - I do see "BadWindow" errors during logout in ~/.xsession-errors-:0 on my system, closely resembling the number of open KF5 applications on logout. So, I suppose we'd need to find out why this happens and fix the crashes to have reliable (automatic) session management... Btw, I'm not sure I looked at the right place, but it seems Fedora does not include those two patches you mentioned in their current Qt 5.5 packages at all. One of them is included upstream, but not the other one. Sure that this still works in Fedora? Kind Regards, Wolfgang -- To unsubscribe, e-mail: opensuse-kde+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kde+owner@opensuse.org