pop-os / beta

Pop!_OS Beta
356 stars 19 forks source link

Pi400: Pop-Shell window loses focus, becomes unresponsive. #339

Closed ghost closed 2 years ago

ghost commented 2 years ago

Fresh Install. Written with rpi-imager. Using 32GB micro SD. Upgraded to latest - with every start.

Related Application and/or Package Version (run apt policy $PACKAGE NAME): It particularly happens with terminal. Both GNOME Terminal and xfce4-terminal. gnome-terminal: Installed: 3.38.1-1ubuntu1pop0~1633631287~21.10~ea92919 xfce4-terminal: Installed: 0.8.10-1

Issue/Bug Description: It appears like the focused window just loses focus, but doesn't apply it anywhere else. I notice it in terminal, but I'm not totally sure if it is happening in other programs yet. Occasionally, a focused window will become unresponsive and will just stop accepting text while typing. When this happens, navigational KBS don't work. One fix is to use a mouse to left click the window which then allows typing and navigation to continue. Otherwise, restarting shell with alt + F2 r in x11 will allow the continuation of typing, but that messes up stacks and positioning. I've said Pop-Shell because that is what it happens to, but it could be COSMIC.

Steps to reproduce (if you know): I haven't noticed any pattern or use that triggers it. It happens in both x11 and Wayland. It seems to happen early on after a boot. It can happen once or twice only per session. One occasion had up to four.

Expected behavior: Window doesn't lose focus and continues to accept text while typing. Window responds to Pop-Shell KBS.

Other Notes: I've attached a log captured from journalctl -f while it happened. Pop-Shell was in DEBUG mode. I've also included screenshot of my COSMIC and Pop-Shell settings. No non-default GNOME extensions installed. I thought maybe DING was causing it so I toggled it off, but didn't change anything.

Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab26d80910 Gjs_cosmic-dock_system76_com_appIcons_DockShowAppsIcon.dash-item-container] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278f9a20 StButton.show-apps:first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fa170 Gjs_ui_iconGrid_BaseIcon.overview-icon:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab26d80910 Gjs_cosmic-dock_system76_com_appIcons_DockShowAppsIcon.dash-item-container] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278f9a20 StButton.show-apps:first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fa170 Gjs_ui_iconGrid_BaseIcon.overview-icon:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fb900 StBoxLayout:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab26d80910 Gjs_cosmic-dock_system76_com_appIcons_DockShowAppsIcon.dash-item-container] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278f9a20 StButton.show-apps:first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fa170 Gjs_ui_iconGrid_BaseIcon.overview-icon:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fb900 StBoxLayout:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fc2b0 StBin:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab26d80910 Gjs_cosmic-dock_system76_com_appIcons_DockShowAppsIcon.dash-item-container] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278f9a20 StButton.show-apps:first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fa170 Gjs_ui_iconGrid_BaseIcon.overview-icon:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fb900 StBoxLayout:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fc2b0 StBin:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab27fda000 StIcon.show-apps-icon:insensitive] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab26d80910 Gjs_cosmic-dock_system76_com_appIcons_DockShowAppsIcon.dash-item-container] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278f9a20 StButton.show-apps:first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fa170 Gjs_ui_iconGrid_BaseIcon.overview-icon:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab26d80910 Gjs_cosmic-dock_system76_com_appIcons_DockShowAppsIcon.dash-item-container] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278f9a20 StButton.show-apps:first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fa170 Gjs_ui_iconGrid_BaseIcon.overview-icon:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fb900 StBoxLayout:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab26d80910 Gjs_cosmic-dock_system76_com_appIcons_DockShowAppsIcon.dash-item-container] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278f9a20 StButton.show-apps:first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fa170 Gjs_ui_iconGrid_BaseIcon.overview-icon:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fb900 StBoxLayout:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fc2b0 StBin:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab26d80910 Gjs_cosmic-dock_system76_com_appIcons_DockShowAppsIcon.dash-item-container] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278f9a20 StButton.show-apps:first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fa170 Gjs_ui_iconGrid_BaseIcon.overview-icon:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fb900 StBoxLayout:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab278fc2b0 StBin:insensitive first-child last-child] which is not in the stage.
Dec 12 09:58:39 pop-pi gnome-shell[1484]: st_widget_get_theme_node called on the widget [0xaaab27fda000 StIcon.show-apps-icon:insensitive] which is not in the stage.

Screenshot from 2021-12-12 10-06-23 Screenshot from 2021-12-12 10-07-24 Screenshot from 2021-12-12 10-08-24 Screenshot from 2021-12-12 10-09-05

jacobgkau commented 2 years ago

This sounds like a duplicate of https://github.com/pop-os/beta/issues/333 and it should have been fixed by https://github.com/pop-os/cosmic/pull/259. Can you please confirm the version of COSMIC you're running with apt policy pop-cosmic?

ghost commented 2 years ago
pop-cosmic:
  Installed: 0.1.0~1639168473~21.10~914a05e
  Candidate: 0.1.0~1639168473~21.10~914a05e
  Version table:
 *** 0.1.0~1639168473~21.10~914a05e 1001
       1001 http:/apt.pop-os.org/release impish/main arm64 Packages
        100 /var/lib/dpkg/status

Issue #333 certainly sounds similar.

ghost commented 2 years ago

This issue seems to have been resolved with the upgrade to official release. However, I've now noticed another similar or associated issue that occurs on X11. New windows generated do not automatically get focus. You have to navigate to the new window. It's not happening on Wayland.

Dec 16 18:54:25 pop-pi gnome-shell[1491]: Can't update stage views actor MetaWindowGroup is on because it needs an allocation.
Dec 16 18:54:25 pop-pi gnome-shell[1491]: Can't update stage views actor MetaWindowActorX11 is on because it needs an allocation.
Dec 16 18:54:25 pop-pi gnome-shell[1491]: Can't update stage views actor MetaSurfaceActorX11 is on because it needs an allocation.
Dec 16 18:54:41 pop-pi gnome-shell[1491]: Can't update stage views actor MetaWindowGroup is on because it needs an allocation.
Dec 16 18:54:41 pop-pi gnome-shell[1491]: Can't update stage views actor MetaWindowActorX11 is on because it needs an allocation.
Dec 16 18:54:41 pop-pi gnome-shell[1491]: Can't update stage views actor MetaSurfaceActorX11 is on because it needs an allocation.
Dec 16 18:54:48 pop-pi systemd[1279]: Started Application launched by gsd-media-keys.
Dec 16 18:54:48 pop-pi systemd[1279]: Started VTE child process 21139 launched by xfce4-terminal process 18011.
Dec 16 18:54:48 pop-pi systemd[1279]: app-gnome-x\x2dterminal\x2demulator-21134.scope: Deactivated successfully.
Dec 16 18:54:48 pop-pi gnome-shell[1491]: Could not create transient scope for PID 21148: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 21148 does not exist.
Dec 16 18:54:48 pop-pi gnome-shell[1491]: pop-shell: [DEBUG] attaching to window 3,5