#1027436 emacs-gtk: "systemd --user start emacs" fails to start and timeout

Package:
emacs-gtk
Source:
emacs-gtk
Description:
GNU Emacs editor (with GTK+ GUI support)
Submitter:
Marc Kleine-Budde
Date:
2023-01-02 12:06:07 UTC
Severity:
normal
#1027436#5
Date:
2022-12-31 13:53:03 UTC
From:
To:
Dear Maintainer,

   * What led up to the situation?

     update to emacs-gtk 28.x (probably from 27.x)

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

     I'm running a systemd --user emacs daemon, with the update to emacs 28.x
     it fails to start.

   * What was the outcome of this action?

     An emacs server should be started as a systemd --user service.

   * What outcome did you expect instead?

     emacs fails to start and the systemd service unit timesout:

$ systemctl --user start emacs.service
Job for emacs.service failed because a timeout was exceeded.
See "systemctl --user status emacs.service" and "journalctl --user -xeu emacs.service" for details.

Dez 31 14:48:13 hardanger systemd[1453]: Starting Emacs text editor...
Dez 31 14:48:13 hardanger emacs[34959]: Warning: due to a long standing Gtk+ bug
Dez 31 14:48:13 hardanger emacs[34959]: https://gitlab.gnome.org/GNOME/gtk/issues/221
Dez 31 14:48:13 hardanger emacs[34959]: Emacs might crash when run in daemon mode and the X11 connection is unexpectedly lost.
Dez 31 14:48:13 hardanger emacs[34959]: Using an Emacs configured with --with-x-toolkit=lucid does not have this problem.
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/00debian.el (source)...
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/00debian.el (source)...done
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/50autoconf.el (source)...
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Dez 31 14:48:13 hardanger emacs[34959]: Loading debian-ispell (native compiled elisp)...
Dez 31 14:48:13 hardanger emacs[34959]: Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...
Dez 31 14:48:13 hardanger emacs[34959]: Loading /var/cache/dictionaries-common/emacsen-ispell-default.el (source)...done
Dez 31 14:48:13 hardanger emacs[34959]: Loading debian-ispell (native compiled elisp)...done
Dez 31 14:48:13 hardanger emacs[34959]: Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...
Dez 31 14:48:13 hardanger emacs[34959]: Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el (source)...done
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/50global.el (source)...
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/50global.el (source)...done
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/50latexmk.el (source)...
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/50latexmk.el (source)...done
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/50systemtap-common.el (source)...
Dez 31 14:48:13 hardanger emacs[34959]: Loading /etc/emacs/site-start.d/50systemtap-common.el (source)...done
Dez 31 14:48:13 hardanger emacs[34959]: Starting Emacs daemon.
Dez 31 14:51:13 hardanger systemd[1453]: emacs.service: start operation timed out. Terminating.
Dez 31 14:51:13 hardanger systemd[1453]: emacs.service: Failed with result 'timeout'.
Dez 31 14:51:13 hardanger systemd[1453]: Failed to start Emacs text editor.
Dez 31 14:51:14 hardanger systemd[1453]: emacs.service: Scheduled restart job, restart counter is at 2.

#1027436#10
Date:
2022-12-31 16:40:33 UTC
From:
To:
After downgrading to 27.x the problem persisted. Completely removing
Emacs and all elpa components and then reinstalling them fixed the
problem.

Sorry for the noise,
Marc

#1027436#15
Date:
2023-01-02 12:03:55 UTC
From:
To:
now.

Marc