New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Xfce4 logout not working #15474
Comments
Right, still true with:
File contents:
Hmm looks like that's some leftover from 2013: https://www.freedesktop.org/wiki/Software/systemd/MyServiceCantGetRealtime/ My current systemd:
Contents of TRACE[xfsm-startup.c:700] xfsm_startup_autostart_xdg(): TryExec set and xfsm_check_valid_exec failed, skipping
TRACE[xfsm-manager.c:823] xfsm_manager_signal_startup_done(): Manager finished startup, entering IDLE mode now
TRACE[xfsm-manager.c:303] xfsm_manager_set_state():
state is now XFSM_MANAGER_IDLE
TRACE[xfsm-manager.c:1130] xfsm_manager_save_yourself_global(): enteringTRACE[xfsm-manager.c:303] xfsm_manager_set_state():
state is now XFSM_MANAGER_SHUTDOWN A sane logout would look like this(from my host): [ 199182] TRACE[xfsm-manager.c:1130] xfsm_manager_save_yourself_global(): entering[ 199183] TRACE[xfsm-manager.c:303] xfsm_manager_set_state():
state is now XFSM_MANAGER_SHUTDOWN
[ 199183] TRACE[sm-layer.c:304] sm_save_yourself_done(): Client Id = 290e5417f-18c0-4040-a64a-dd32f2d741ed, received SAVE YOURSELF DONE [Success = True]
[ 199183] TRACE[xfsm-manager.c:1295] xfsm_manager_save_yourself_done(): entering[ 199183] TRACE[sm-layer.c:304] sm_save_yourself_done(): Client Id = 2e425eb2a-7f69-4b67-8587-09e5c42cbc2b, received SAVE YOURSELF DONE [Success = True]
[ 199183] TRACE[xfsm-manager.c:1295] xfsm_manager_save_yourself_done(): entering[ 199183] TRACE[sm-layer.c:304] sm_save_yourself_done(): Client Id = 2940a7756-2e85-45eb-84b4-2d617624da8b, received SAVE YOURSELF DONE [Success = True]
[ 199183] TRACE[xfsm-manager.c:1295] xfsm_manager_save_yourself_done(): entering[ 199183] TRACE[sm-layer.c:304] sm_save_yourself_done(): Client Id = 21242381b-9649-4c40-955c-afa51bb5c5f8, received SAVE YOURSELF DONE [Success = True]
[ 199183] TRACE[xfsm-manager.c:1295] xfsm_manager_save_yourself_done(): entering[ 199183] TRACE[sm-layer.c:232] sm_interact_request(): Client Id = 2bf98da5a-79f4-4f80-9d85-6ec33a782820, received INTERACT REQUEST [Dialog type = Normal]
[ 199184] TRACE[sm-layer.c:246] sm_interact_done(): Client Id = 2bf98da5a-79f4-4f80-9d85-6ec33a782820, received INTERACT DONE [Cancel shutdown = False]
[ 199184] TRACE[sm-layer.c:304] sm_save_yourself_done(): Client Id = 2fc8acefa-01f6-48d5-8921-853f90ce7595, received SAVE YOURSELF DONE [Success = True]
[ 199184] TRACE[xfsm-manager.c:1295] xfsm_manager_save_yourself_done(): entering[ 199184] TRACE[sm-layer.c:290] sm_save_yourself_phase2_request(): Client Id = 2bf98da5a-79f4-4f80-9d85-6ec33a782820, received SAVE YOURSELF PHASE2 REQUEST
[ 199184] TRACE[xfsm-manager.c:1271] xfsm_manager_save_yourself_phase2(): entering[ 199184] TRACE[sm-layer.c:304] sm_save_yourself_done(): Client Id = 2f8e4a142-58b2-450e-a919-288d4f4458b4, received SAVE YOURSELF DONE [Success = True]
[ 199184] TRACE[xfsm-manager.c:1295] xfsm_manager_save_yourself_done(): entering[ 199184] TRACE[xfsm-manager.c:1554] xfsm_manager_maybe_enter_phase2(): Client Id = 2bf98da5a-79f4-4f80-9d85-6ec33a782820 enters SAVE YOURSELF PHASE2.
[ 199184] TRACE[xfsm-properties.c:629] xfsm_properties_set_from_smprop(): -> Set strv (DiscardCommand)
[ 199184] TRACE[sm-layer.c:304] sm_save_yourself_done(): Client Id = 2bf98da5a-79f4-4f80-9d85-6ec33a782820, received SAVE YOURSELF DONE [Success = True]
[ 199184] TRACE[xfsm-manager.c:1295] xfsm_manager_save_yourself_done(): entering[ 199184] TRACE[xfsm-manager.c:1573] xfsm_manager_complete_saveyourself(): Manager finished SAVE YOURSELF, session data will be stored now.
[ 199184] TRACE[xfsm-manager.c:1459] xfsm_manager_perform_shutdown(): entering[ 199184] TRACE[xfsm-manager.c:303] xfsm_manager_set_state():
state is now XFSM_MANAGER_SHUTDOWNPHASE2
[ 199184] TRACE[xfsm-properties.c:555] xfsm_properties_set_uchar(): -> Set uchar (RestartStyleHint, 0)
[ 199184] TRACE[xfsm-properties.c:555] xfsm_properties_set_uchar(): -> Set uchar (RestartStyleHint, 0)
[ 199184] TRACE[xfsm-properties.c:555] xfsm_properties_set_uchar(): -> Set uchar (RestartStyleHint, 0)
[ 199184] TRACE[xfsm-properties.c:555] xfsm_properties_set_uchar(): -> Set uchar (RestartStyleHint, 0)
|
I wonder if this patch would fix it http://pkgs.fedoraproject.org/cgit/rpms/xfce4-session.git/commit/xfce4-session-4.10.1-systemd.patch?id=9e8af8b3ee7e8e91817d087e80de29b1af6d4943 |
Well, saving session never ends! (even though, I had unchecked This is in Only this folder exists: |
I even made that folder myself AND gave full crazy permissions to all and (xfce4-session:1765): xfce4-session-WARNING **: xfsm_manager_load_session: Something wrong with /home/z/.cache/sessions/xfce4-session-vbox1:0, Does it exist? Permissions issue? I copy pasted it and
So yeah, I'm losing my mind :) Even after a full In
Full
Meanwhile
|
Mousepad was having problems for quite a long time #14862, but the logout issue is relatively new (a couple months at most) – and there were no systemd, xfce4-session etc. updates in the meantime. Even with closure-size changes I didn't have this problem and now I do. |
Ah, no, it still works on the machine where it worked before. I can only reproduce it on another one which I mostly use just as a build slave. Hang during saving the session is also a point where these two machines differ; however, unchecking the "save session" option during logout doesn't help. It's a bit strange, as the machines now use the same nixpkgs version, almost identical |
I am also having this problem. I am looking at the code for xfsm_manager_save_yourself_global in xfsm-manager.c and it looks to me like it relies on the existence of at least one client that needs to save. If there are no clients with state to save then nothing else happens and xfsm_manager_complete_saveyourself is never reached. What am I missing? There must be some process that is always expected to be attached to the session manager but I don't know what it is or how I lost it. |
Looks like adding: propagatedBuildInputs = [ xorg.libICE xorg.libSM ]; in libxfce4ui.nix fixes it. These two build dependencies must have somehow been propagated from somewhere else before. |
Issue description
On NixOS unstable, when trying to logout (or reboot, or shutdown) of Xfce using its logout window, the action is not completed and Xfce continues to run and manage my windows.
In a second try to logout a dialog appears the error message:
Steps to reproduce
Log Out
dialog window in the Xfce menu.Log out
button. The action is not completed.Log Out
dialog window in the Xfce menu. An error dialog window appears.Technical details
System: (NixOS:
nixos-version
, Ubuntu/Fedora:lsb_release -a
, ...)NixOS 16.09pre83100.25e3c09 (Flounder)
Nix version: (run
nix-env --version
)nix-env (Nix) 1.11.2
Nixpkgs version: (run
nix-instantiate --eval '<nixpkgs>' -A lib.nixpkgsVersion
)"16.09pre83100.25e3c09"
The text was updated successfully, but these errors were encountered: