GNU bug report logs - #58545
28.2; Toolbar icons missing until X server is restarted

Previous Next

Package: emacs;

Reported by: Xuanrui Qi <me <at> xuanruiqi.com>

Date: Sat, 15 Oct 2022 11:57:02 UTC

Severity: normal

Tags: moreinfo

Found in version 28.2

Done: Stefan Kangas <stefankangas <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 58545 in the body.
You can then email your comments to 58545 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#58545; Package emacs. (Sat, 15 Oct 2022 11:57:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Xuanrui Qi <me <at> xuanruiqi.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 15 Oct 2022 11:57:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Xuanrui Qi <me <at> xuanruiqi.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 28.2; Toolbar icons missing until X server is restarted
Date: Sat, 15 Oct 2022 17:37:00 +0900
When running Emacs, initially I see no icons on the toolbar, only
text ("save", "undo", etc). However, if I restart my X server by e.g. pressing
Alt-F2 and then
typing "r" under GDM, the icons appear correctly on the toolbar.

I have not been able to fix this problem even by reinstalling Emacs and
clearing all Emacs configuration files, and I could not reproduce it on
any other systems I control either, even though they are very similarly
configured.

I am not sure if this is a Emacs problem, but I don't see any missing
icons in other GTK applications.


In GNU Emacs 28.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.34, cairo
version 1.17.6)
 of 2022-09-12 built on frederik
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Arch Linux

Configured using:
 'configure --with-x-toolkit=gtk3 --with-native-compilation
 --sysconfdir=/etc --prefix=/usr --libexecdir=/usr/lib
 --localstatedir=/var --with-cairo --with-harfbuzz --with-libsystemd
 --with-modules 'CFLAGS=-march=x86-64 -mtune=generic -O2 -pipe -fno-plt
 -fexceptions -Wp,-D_FORTIFY_SOURCE=2 -Wformat -Werror=format-security
 -fstack-clash-protection -fcf-protection -g
 -ffile-prefix-map=/build/emacs/src=/usr/src/debug -flto=auto'
 'LDFLAGS=-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now -flto=auto''

Configured features:
ACL CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
JSON LCMS2 LIBOTF LIBSYSTEMD LIBXML2 M17N_FLT MODULES NATIVE_COMP NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS
X11 XDBE XIM XPM GTK3 ZLIB

Important settings:
  value of $LC_COLLATE: C
  value of $LC_MONETARY: ja_JP.UTF-8
  value of $LC_NUMERIC: ja_JP.UTF-8
  value of $LC_TIME: ja_JP.UTF-8
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  global-company-mode: t
  company-mode: t
  TeX-PDF-mode: t
  global-linum-mode: t
  projectile-rails-global-mode: t
  override-global-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
/home/xuanrui/.opam/4.14.0/share/emacs/site-lisp/dune hides
/usr/share/emacs/site-lisp/dune
/home/xuanrui/.opam/4.14.0/share/emacs/site-lisp/dune-watch hides
/usr/share/emacs/site-lisp/dune-watch
/home/xuanrui/.opam/4.14.0/share/emacs/site-lisp/dune-flymake hides
/usr/share/emacs/site-lisp/dune-flymake

Features:
(pp shadow sort mail-extr emacsbug message dired dired-loaddefs rfc822
mailabbrev gmm-utils mailheader sendmail server company-oddmuse
company-keywords company-etags etags fileloop generator company-gtags
company-dabbrev-code company-dabbrev company-files company-clang
company-capf company-cmake company-semantic company-template
company-bbdb company-robe merlin-xref merlin-cap merlin advice
opam-user-setup company-auctex company latex latex-flymake flymake-proc
flymake tex-ispell tex-style tex dbus xml crm texmathp lsp-haskell lsp
lsp-mode comp comp-cstr warnings lsp-protocol yasnippet xref project
tree-widget spinner pcase network-stream markdown-mode rx noutline
outline lv inline imenu ht filenotify ewoc agda2 rvm cc-mode cc-fonts
cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs
mediawiki url-cache mm-url gnus nnheader wid-edit mml mml-sec epa
derived epg rfc6068 epg-config gnus-util rmail rmail-loaddefs mail-utils
time-date mm-decode mm-bodies mm-encode url-http url-auth url-gw nsm rmc
puny rime rime-predicates xdg posframe popup edmacro kmacro linum
cl-extra help-mode solarized-dark-theme solarized-palettes solarized
solarized-faces color projectile-rails rake f f-shortdoc shortdoc dash s
inflections inf-ruby ruby-mode smie autoinsert projectile lisp-mnt
mail-parse rfc2231 rfc2047 rfc2045 mm-util ietf-drums mail-prsvr grep
compile text-property-search comint ansi-color ring ibuf-ext ibuffer
ibuffer-loaddefs thingatpt cus-load exec-path-from-shell use-package
use-package-ensure use-package-delight use-package-diminish
use-package-bind-key bind-key easy-mmode use-package-core finder-inf
tex-site info package browse-url url url-proxy url-privacy url-expand
url-methods url-history url-cookie url-domsuf url-util mailcap
url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs
eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv
bytecomp byte-compile cconv cl-loaddefs cl-lib iso-transl tooltip eldoc
paren electric uniquify ediff-hook vc-hooks lisp-float-type elisp-mode
mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image
regexp-opt fringe tabulated-list replace newcomment text-mode lisp-mode
prog-mode register page tab-bar menu-bar rfn-eshadow isearch easymenu
timer select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang
misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms
cp51932 hebrew greek romanian slovak czech european ethiopic indian
cyrillic chinese composite emoji-zwj charscript charprop case-table
epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice
button loaddefs faces cus-face macroexp files window text-properties
overlay sha1 md5 base64 format env code-pages mule custom widget
hashtable-print-readable backquote threads dbusbind inotify lcms2
dynamic-setting system-font-setting font-render-setting cairo
move-toolbar gtk x-toolkit x multi-tty make-network-process
native-compile emacs)

Memory information:
((conses 16 546848 20553)
 (symbols 48 37959 3)
 (strings 32 148553 5641)
 (string-bytes 1 4101976)
 (vectors 16 56230)
 (vector-slots 8 941031 37082)
 (floats 8 350 140)
 (intervals 56 413 0)
 (buffers 992 13))





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58545; Package emacs. (Sun, 16 Oct 2022 00:30:01 GMT) Full text and rfc822 format available.

Message #8 received at 58545 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Xuanrui Qi <me <at> xuanruiqi.com>
Cc: 58545 <at> debbugs.gnu.org
Subject: Re: bug#58545: 28.2; Toolbar icons missing until X server is restarted
Date: Sun, 16 Oct 2022 08:28:56 +0800
Xuanrui Qi <me <at> xuanruiqi.com> writes:

> When running Emacs, initially I see no icons on the toolbar, only
> text ("save", "undo", etc). However, if I restart my X server by e.g. pressing
> Alt-F2 and then
> typing "r" under GDM, the icons appear correctly on the toolbar.

If you mean in the "Run a Command" dialog used by GNOME Shell, then you
aren't restarting the X server, just the window manager.

> I have not been able to fix this problem even by reinstalling Emacs and
> clearing all Emacs configuration files, and I could not reproduce it on
> any other systems I control either, even though they are very similarly
> configured.
>
> I am not sure if this is a Emacs problem, but I don't see any missing
> icons in other GTK applications.

What about the GTK icon browser?




Added tag(s) moreinfo. Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 16 Oct 2022 09:29:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58545; Package emacs. (Mon, 17 Oct 2022 23:04:04 GMT) Full text and rfc822 format available.

Message #13 received at 58545 <at> debbugs.gnu.org (full text, mbox):

From: Xuanrui Qi <me <at> xuanruiqi.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 58545 <at> debbugs.gnu.org
Subject: Re: bug#58545: 28.2; Toolbar icons missing until X server is restarted
Date: Tue, 18 Oct 2022 03:44:20 +0900
> just the window manager
Yes, you are right, I was restarting the window manager. Alternatively, altering
any of the theme settings also cause icons to appear properly, probably because
all windows are reloaded.

> What about the GTK icon browser?
Everything seems to work and in particular there are no missing icons.

On Sun, 2022-10-16 at 08:28 +0800, Po Lu wrote:
> Xuanrui Qi <me <at> xuanruiqi.com> writes:
> 
> > When running Emacs, initially I see no icons on the toolbar, only
> > text ("save", "undo", etc). However, if I restart my X server by e.g.
> > pressing
> > Alt-F2 and then
> > typing "r" under GDM, the icons appear correctly on the toolbar.
> 
> If you mean in the "Run a Command" dialog used by GNOME Shell, then you
> aren't restarting the X server, just the window manager.
> 
> > I have not been able to fix this problem even by reinstalling Emacs and
> > clearing all Emacs configuration files, and I could not reproduce it on
> > any other systems I control either, even though they are very similarly
> > configured.
> > 
> > I am not sure if this is a Emacs problem, but I don't see any missing
> > icons in other GTK applications.
> 
> What about the GTK icon browser?





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58545; Package emacs. (Tue, 18 Oct 2022 00:41:02 GMT) Full text and rfc822 format available.

Message #16 received at 58545 <at> debbugs.gnu.org (full text, mbox):

From: Po Lu <luangruo <at> yahoo.com>
To: Xuanrui Qi <me <at> xuanruiqi.com>
Cc: 58545 <at> debbugs.gnu.org
Subject: Re: bug#58545: 28.2; Toolbar icons missing until X server is restarted
Date: Tue, 18 Oct 2022 08:39:44 +0800
Xuanrui Qi <me <at> xuanruiqi.com> writes:

>> just the window manager
> Yes, you are right, I was restarting the window manager. Alternatively, altering
> any of the theme settings also cause icons to appear properly, probably because
> all windows are reloaded.
>
>> What about the GTK icon browser?
> Everything seems to work and in particular there are no missing icons.

That's odd, but there I really don't know what may be going on, seeing
as I can't reproduce it here.

For the time being, you can set x-gtk-stock-map to nil in early-init.el,
to make Emacs use its own toolbar icons.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58545; Package emacs. (Tue, 18 Oct 2022 10:06:01 GMT) Full text and rfc822 format available.

Message #19 received at 58545 <at> debbugs.gnu.org (full text, mbox):

From: Xuanrui Qi <me <at> xuanruiqi.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 58545 <at> debbugs.gnu.org
Subject: Re: bug#58545: 28.2; Toolbar icons missing until X server is restarted
Date: Tue, 18 Oct 2022 19:04:55 +0900
This is extremely weird because I couldn't reproduce it on any other systems I
control either, despite that their configurations are basically identical.

On Tue, 2022-10-18 at 08:39 +0800, Po Lu wrote:
> Xuanrui Qi <me <at> xuanruiqi.com> writes:
> 
> > > just the window manager
> > Yes, you are right, I was restarting the window manager. Alternatively,
> > altering
> > any of the theme settings also cause icons to appear properly, probably
> > because
> > all windows are reloaded.
> > 
> > > What about the GTK icon browser?
> > Everything seems to work and in particular there are no missing icons.
> 
> That's odd, but there I really don't know what may be going on, seeing
> as I can't reproduce it here.
> 
> For the time being, you can set x-gtk-stock-map to nil in early-init.el,
> to make Emacs use its own toolbar icons.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58545; Package emacs. (Tue, 18 Oct 2022 10:11:02 GMT) Full text and rfc822 format available.

Message #22 received at 58545 <at> debbugs.gnu.org (full text, mbox):

From: Xuanrui Qi <me <at> xuanruiqi.com>
To: Po Lu <luangruo <at> yahoo.com>
Cc: 58545 <at> debbugs.gnu.org
Subject: Re: bug#58545: 28.2; Toolbar icons missing until X server is restarted
Date: Tue, 18 Oct 2022 19:10:28 +0900
Also,
> x-gtk-stock-map to nil in early-init.el
doesn't seem to work for me either.

On Tue, 2022-10-18 at 08:39 +0800, Po Lu wrote:
> Xuanrui Qi <me <at> xuanruiqi.com> writes:
> 
> > > just the window manager
> > Yes, you are right, I was restarting the window manager. Alternatively,
> > altering
> > any of the theme settings also cause icons to appear properly, probably
> > because
> > all windows are reloaded.
> > 
> > > What about the GTK icon browser?
> > Everything seems to work and in particular there are no missing icons.
> 
> That's odd, but there I really don't know what may be going on, seeing
> as I can't reproduce it here.
> 
> For the time being, you can set x-gtk-stock-map to nil in early-init.el,
> to make Emacs use its own toolbar icons.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#58545; Package emacs. (Wed, 26 Oct 2022 19:27:01 GMT) Full text and rfc822 format available.

Message #25 received at 58545 <at> debbugs.gnu.org (full text, mbox):

From: Xuanrui Qi <me <at> xuanruiqi.com>
To: 58545 <at> debbugs.gnu.org
Subject: Re: bug#58545: 28.2; Toolbar icons missing until X server is restarted
Date: Thu, 27 Oct 2022 04:26:06 +0900
Hi all,

After a big of digging, this turns out to be a false alarm. Emacs is alright.

Apparently, in GSettings I have set org.gnome.desktop.interface.toolbar-style to
text. Somehow most applications seem to ignore this setting, but Emacs is one of
those which respect this and give me plain text toolbars.

I suppose restarting the window manager cause the settings to be overridden by
GNOME or something, so I get my icons back. Really weird interaction; I guess
someone familiar with GTK and GNOME knows why this is the case.

Please mark this bug as resolved.

Best,
Xuanrui

On Tue, 2022-10-18 at 08:39 +0800, Po Lu wrote:
> Xuanrui Qi <me <at> xuanruiqi.com> writes:
> 
> > > just the window manager
> > Yes, you are right, I was restarting the window manager. Alternatively,
> > altering
> > any of the theme settings also cause icons to appear properly, probably
> > because
> > all windows are reloaded.
> > 
> > > What about the GTK icon browser?
> > Everything seems to work and in particular there are no missing icons.
> 
> That's odd, but there I really don't know what may be going on, seeing
> as I can't reproduce it here.
> 
> For the time being, you can set x-gtk-stock-map to nil in early-init.el,
> to make Emacs use its own toolbar icons.





Reply sent to Stefan Kangas <stefankangas <at> gmail.com>:
You have taken responsibility. (Thu, 24 Nov 2022 20:13:02 GMT) Full text and rfc822 format available.

Notification sent to Xuanrui Qi <me <at> xuanruiqi.com>:
bug acknowledged by developer. (Thu, 24 Nov 2022 20:13:02 GMT) Full text and rfc822 format available.

Message #30 received at 58545-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Kangas <stefankangas <at> gmail.com>
To: Xuanrui Qi <me <at> xuanruiqi.com>
Cc: 58545-done <at> debbugs.gnu.org
Subject: Re: bug#58545: 28.2; Toolbar icons missing until X server is restarted
Date: Thu, 24 Nov 2022 12:12:11 -0800
Xuanrui Qi <me <at> xuanruiqi.com> writes:

> Please mark this bug as resolved.

Done.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 23 Dec 2022 12:24:13 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 183 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.