Skip to content
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

Pantheon greeter crashes since NixOS 21.11 upgrade #151609

Closed
OPNA2608 opened this issue Dec 21, 2021 · 5 comments · Fixed by #156723, #159732 or #156646
Closed

Pantheon greeter crashes since NixOS 21.11 upgrade #151609

OPNA2608 opened this issue Dec 21, 2021 · 5 comments · Fixed by #156723, #159732 or #156646
Labels
0.kind: bug Something is broken 6.topic: pantheon The Pantheon desktop environment

Comments

@OPNA2608
Copy link
Contributor

Describe the bug

Since upgrading to NixOS 21.11, the pantheon greeter crashes on me most of the time. It takes multiple restart attempts for me to get a working graphical session. Due to some additional problems with my graphics cards setup I haven't been able to debug this until today. The relevant upstream issue seems to be elementary/greeter#578, this is half "this is an issue I ran into, should we do something on our end?", half "here's a workaround until this is fixed upstream":

The issue is the Pantheon greeter crashing in a loop, eventually giving up & failing the whole graphical session. /var/log/lightdm/seat0-greeter.log has the following to say:

(io.elementary.greeter:7389): Handy-WARNING **: 17:56:55.751: Failed to load icon: Fehler beim Öffnen der Datei »/home/bt1cn/.face«: Permission denied

** (io.elementary.greeter:7389): CRITICAL **: 17:56:55.755: MainWindow.vala:358: prompt: `Password: ' (1)

Relevant part of my system config is here. (not pushed 21.11 changes yet but none of those options were touched)

Switching to the GTK greeter helped me reliably get into a graphical session again. Stopping display-manager.service and switching back and forth between the gtk and pantheon ones has confirmed this for me:

{
  services.xserver = {
    greeters.gtk.enable = lib.mkForce true;
    greeter = {
      package = lib.mkForce pkgs.lightdm_gtk_greeter.xgreeters;
      name = lib.mkForce "lightdm-gtk-greeter";
    };
  };
}

Steps To Reproduce

Steps to reproduce the behavior:

  1. Be on 21.11
  2. services.xserver.displayManager.lightdm.greeters.pantheon.enable = true
  3. Restart

Expected behavior

A reliably working graphical session.

Screenshots

A video of an attemped display-manager.service restart:

VID_20211221_175301.mp4

Additional context

elementary/greeter#578

Notify maintainers

@NixOS/pantheon

Metadata

bt1cn@NixTop:~
↪ nix-shell -p nix-info --run "nix-info -m"
 - system: `"x86_64-linux"`
 - host os: `Linux 5.15.4, NixOS, 21.11 (Porcupine)`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.3.16`
 - channels(bt1cn): `"unstable-22.05pre336298.bc5d68306b4"`
 - channels(root): `"nixos-21.11.334247.573095944e7"`
 - nixpkgs: `/nix/var/nix/profiles/per-user/root/channels/nixos`

Maintainer information:

# a list of nixpkgs attributes affected by the problem
attribute:
# a list of nixos modules affected by the problem
module:
@OPNA2608 OPNA2608 added the 0.kind: bug Something is broken label Dec 21, 2021
@veprbl veprbl added the 6.topic: pantheon The Pantheon desktop environment label Dec 21, 2021
@bobby285271
Copy link
Member

bobby285271 commented Dec 22, 2021

Hmmmm... I don't think there is something I can do except doing reverts to be honest... elementary/greeter@6f18c79 is about accent color, so by any chance, have you tried Switchboard → About → Restore Default Settings → Restore Settings? Yeah I guess this cannot be reproduced on a fresh VM using nixos-rebuild build-vm [1] (maybe?) so I actually think of state first...

@davidak
Copy link
Member

davidak commented Dec 23, 2021

FYI: I have updated my system now to 21.11.334639.9ab7d12287c and can not reproduce the issue.

@bobby285271
Copy link
Member

bobby285271 commented Jan 25, 2022

I find myself run into this issue after adding and testing a fix for #156456 (and I can always reproduce the issue on both fresh VM and my physical machine as soon as I change the accent color and do a reboot), I think I will do a revert for now (and backport to 21.11) as the relavent part has been updated in the port to GTK 4 pull request.

@bobby285271 bobby285271 linked a pull request Jan 25, 2022 that will close this issue
13 tasks
@bobby285271
Copy link
Member

bobby285271 commented Feb 5, 2022

The revert should hit both nixos-unstable and nixos-21.11 for a while.

@bobby285271
Copy link
Member

bobby285271 commented Feb 6, 2022

We will see whether upstream accept elementary/greeter#578 (comment). update: This is fixed on upstream in elementary/greeter@cbcfebc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: bug Something is broken 6.topic: pantheon The Pantheon desktop environment
Projects
Status: Done
4 participants