mate-desktop / mate-settings-daemon

MATE settings daemon
https://mate-desktop.org
GNU General Public License v2.0
43 stars 47 forks source link

Running mate-settings-daemon with GTK_DEBUG=interactive freezes the desktop environment #257

Open heldplayer opened 5 years ago

heldplayer commented 5 years ago

Expected behaviour

mate-settings-daemon runs in the background, and a GTK Inspector window shows up for me to inspect the GTK objects used by the settings daemon.

Actual behaviour

The desktop environment freezes.

Steps to reproduce the behaviour

Alternative 1
  1. Append GTK_DEBUG=interactive to /etc/environment.
  2. Restart the system.
  3. Log in.
  4. mate-session will have spawned mate-settings-daemon and /usr/bin/ssh-agent /usr/bin/im-launch mate-session, but no other processes will have started under the session process effectively making the desktop useless.
    Alternative 2
  5. Log in to a MATE session.
  6. Send SIGSTOP to mate-session (to prevent it from instantly spawning a new mate-settings-daemon).
  7. Send SIGKILL to mate-settings-daemon.
  8. Start a new instance with GTK_DEBUG=interactive mate-settings-daemon.
  9. The desktop environment is now unresponsive.
  10. Using another shell (i.e. a virtual terminal) to kill the newly spawned mate-settings-daemon will restore responsiveness.

Alternatively if in step 4 you just run mate-settings-daemon, the desktop environment will remain responsive.

MATE general version

$ dpkg-query -W *mate*
compiz-mate 1:0.9.13.1+18.04.20180302-0ubuntu1
debian-mate-default-settings    1.20.0-1
gir1.2-mate-desktop 
gir1.2-mate-panel   1.20.1-3ubuntu1
gir1.2-matedesktop-2.0:amd64    1.20.1-2ubuntu1
gir1.2-matepanelapplet-4.0:amd64    1.20.1-3ubuntu1
libmate-desktop-2-17:amd64  1.20.1-2ubuntu1
libmate-menu2:amd64 1.20.0-2
libmate-panel-applet-4-1:amd64  1.20.1-3ubuntu1
libmate-panel-applet4-1 
libmate-sensors-applet-plugin0  1.20.1-3
libmate-slab0:amd64 1.20.2-2ubuntu1
libmate-window-settings1:amd64  1.20.2-2ubuntu1
libmatedesktop  
libmatedict6    1.20.0-0ubuntu1
libmatekbd  
libmatekbd-common   1.20.1-1
libmatekbd4:amd64   1.20.1-1
libmatemenu 
libmatemixer-common 1.20.0-1
libmatemixer0:amd64 1.20.0-1
libmatepanelapplet  
libmatesensorsappletplugin  
libmateweather  
libmateweather-common   1.20.0-1
libmateweather1:amd64   1.20.0-1
mate-accessibility-profiles 0.1.11-0ubuntu4
mate-applet-topmenu 0.2.1+git20151210.8c6108f-3
mate-applets    1.20.1-3
mate-applets-common 1.20.1-3
mate-backgrounds    1.20.0-0ubuntu1
mate-control-center 1.20.2-2ubuntu1
mate-control-center-common  1.20.2-2ubuntu1
mate-desktop    1.20.1-2ubuntu1
mate-desktop-common 1.20.1-2ubuntu1
mate-desktop-environment    
mate-desktop-environment-core   
mate-desktop-gnome  
mate-dock-applet    0.85-1
mate-icon-theme 1.20.0-1
mate-icon-theme-faenza  1.20.0+dfsg1-0ubuntu1
mate-image-viewer   
mate-indicator-applet   1.20.0-1
mate-indicator-applet-common    1.20.0-1
mate-media  1.20.0-1
mate-media-common   1.20.0-1
mate-media-gstreamer    
mate-media-pulse    
mate-menu   18.04.3-2ubuntu1
mate-menus  1.20.0-2
mate-netbook    1.20.0-1
mate-netbook-common 1.20.0-1
mate-netspeed   
mate-netspeed-common    
mate-notification-daemon    1.20.0-2
mate-notification-daemon-common 1.20.0-2
mate-optimus    18.04.0-1
mate-panel  1.20.1-3ubuntu1
mate-panel-common   1.20.1-3ubuntu1
mate-polkit:amd64   1.20.0-1
mate-polkit-common  1.20.0-1
mate-power-manager  1.20.1-2ubuntu1
mate-power-manager-common   1.20.1-2ubuntu1
mate-screensaver    1.20.0-1
mate-screensaver-common 1.20.0-1
mate-sensors-applet 1.20.1-3
mate-sensors-applet-common  1.20.1-3
mate-sensors-applet-nvidia  
mate-session-manager    1.20.0-1
mate-settings-daemon    1.20.1-3
mate-settings-daemon-common 1.20.1-3
mate-settings-daemon-gstreamer  
mate-settings-daemon-pulse  
mate-system-monitor 1.20.0-1
mate-system-monitor-common  1.20.0-1
mate-terminal   1.20.0-4
mate-terminal-common    1.20.0-4
mate-text-editor    
mate-themes 3.22.16-4ubuntu1
mate-themes-gnome   
mate-tweak  18.04.16-1
mate-user-guide 1.20.0-1
mate-utils  1.20.0-0ubuntu1
mate-utils-common   1.20.0-0ubuntu1
mate-window-manager 
matemenu    
mint-mate-default-settings  
python-mate-menu    1.20.0-2
ubuntu-mate-default-settings    
ubuntu-mate-wallpapers-common   

Package version

$ dpkg-query -W mate-settings-daemon
mate-settings-daemon    1.20.1-3

Linux Distribution

Distributor ID: Ubuntu
Description:    Ubuntu 18.04.1 LTS
Release:    18.04
Codename:   bionic

Why do I want to run mate-settings-daemon with the GTK Inspector?

I'm trying to write a theme and I'd like to be able to inspect the objects/nodes that are used for the overlays that render when using the volume buttons on my laptop.

lukefromdc commented 5 years ago

That would be handy indeed, but GNOME themselves warn that GTK applications can be buggy with GtkInspector running.