shell icon indicating copy to clipboard operation
shell copied to clipboard

Activities view freezes in GNOME 41

Open Martins2759 opened this issue 5 years ago • 15 comments

(1) Issue/Bug Description: Activities view freezes, stops showing workspaces and applications correctly. I can no longer use the Activities page search.

[martins@thinkpad ~]$ journalctl -f /usr/bin/gnome-shell
-- Journal begins at Wed 2021-10-27 18:55:52 WEST. --
Oct 29 18:55:27 thinkpad gnome-shell[16482]: found plugin at /usr/lib/pop-shell/launcher//recent/meta.json
Oct 29 18:55:27 thinkpad gnome-shell[16482]: found plugin: Recent Documents
Oct 29 18:55:27 thinkpad gnome-shell[16482]: found plugin at /usr/lib/pop-shell/launcher//terminal/meta.json
Oct 29 18:55:27 thinkpad gnome-shell[16482]: found plugin: Terminal Commands
Oct 29 18:55:27 thinkpad gnome-shell[16482]: found plugin at /usr/lib/pop-shell/launcher//web/meta.json
Oct 29 18:55:27 thinkpad gnome-shell[16482]: found plugin: Web Search
Oct 29 18:55:27 thinkpad gnome-shell[16482]: Error: GSettings schema org.gnome.shell.extensions.pop-cosmic not found
Oct 29 18:55:27 thinkpad gnome-shell[16482]: Error looking up permission: GDBus.Error:org.freedesktop.portal.Error.NotFound: No entry for geolocation
Oct 29 18:55:29 thinkpad gnome-shell[16482]: GNOME Shell started at Fri Oct 29 2021 18:55:27 GMT+0100 (Western European Summer Time)
Oct 29 18:55:29 thinkpad gnome-shell[16482]: Registering session with GDM
Oct 29 18:57:00 thinkpad gnome-shell[16482]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
Oct 29 18:57:09 thinkpad gnome-shell[16482]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
Oct 29 18:57:12 thinkpad gnome-shell[16482]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
Oct 29 18:57:19 thinkpad gnome-shell[16482]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
Oct 29 18:57:28 thinkpad gnome-shell[16482]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
Oct 29 18:57:31 thinkpad gnome-shell[16482]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
Oct 29 18:57:41 thinkpad gnome-shell[16482]: ATK Bridge is disabled but a11y has already been enabled.
Oct 29 18:57:46 thinkpad gnome-shell[16482]: JS ERROR: TypeError: app is null
                                             _init@resource:///org/gnome/shell/ui/windowPreview.js:125:9
                                             _addWindowClone@resource:///org/gnome/shell/ui/workspace.js:1392:21
                                             _init@resource:///org/gnome/shell/ui/workspace.js:1130:22
                                             _updateWorkspaces@resource:///org/gnome/shell/ui/workspacesView.js:462:29
                                             _init@resource:///org/gnome/shell/ui/workspacesView.js:121:14
                                             _updateWorkspacesViews@resource:///org/gnome/shell/ui/workspacesView.js:1091:24
                                             prepareToEnterOverview@resource:///org/gnome/shell/ui/workspacesView.js:1039:14
                                             animateToOverview@resource:///org/gnome/shell/ui/overviewControls.js:680:33
                                             animateToOverview@resource:///org/gnome/shell/ui/overview.js:82:24
                                             _animateVisible@resource:///org/gnome/shell/ui/overview.js:540:24
                                             show@resource:///org/gnome/shell/ui/overview.js:525:14
                                             toggle@resource:///org/gnome/shell/ui/overview.js:633:18
                                             _init/<@resource:///org/gnome/shell/ui/overviewControls.js:435:31
Oct 29 18:57:46 thinkpad gnome-shell[16482]: Can't update stage views actor <unnamed>[<StBin>:0x55ea427b0430] is on because it needs an allocation.
Oct 29 18:57:47 thinkpad gnome-shell[16482]: JS ERROR: TypeError: app is null
                                             _init@resource:///org/gnome/shell/ui/windowPreview.js:125:9
                                             _addWindowClone@resource:///org/gnome/shell/ui/workspace.js:1392:21
                                             _init@resource:///org/gnome/shell/ui/workspace.js:1130:22
                                             _updateWorkspaces@resource:///org/gnome/shell/ui/workspacesView.js:462:29
                                             _init@resource:///org/gnome/shell/ui/workspacesView.js:121:14
                                             _updateWorkspacesViews@resource:///org/gnome/shell/ui/workspacesView.js:1091:24
                                             prepareToEnterOverview@resource:///org/gnome/shell/ui/workspacesView.js:1039:14
                                             gestureBegin@resource:///org/gnome/shell/ui/overviewControls.js:740:33
                                             _gestureBegin@resource:///org/gnome/shell/ui/overview.js:359:33
                                             _beginGesture@resource:///org/gnome/shell/ui/swipeTracker.js:606:14
                                             _handleEvent@resource:///org/gnome/shell/ui/swipeTracker.js:170:26
Oct 29 18:57:48 thinkpad gnome-shell[16482]: JS ERROR: Error: Expected an object of type ClutterActorBox for argument 'box' but got type undefined
                                             vfunc_allocate@resource:///org/gnome/shell/ui/overviewControls.js:200:33
                                             ensureActorVisibleInScrollView@resource:///org/gnome/shell/misc/util.js:376:21
                                             select@/usr/share/gnome-shell/extensions/[email protected]/dialog_search.js:215:31
                                             update_search_list@/usr/share/gnome-shell/extensions/[email protected]/dialog_search.js:253:18
                                             update@/usr/share/gnome-shell/extensions/[email protected]/dialog_search.js:45:26
                                             Search/<@/usr/share/gnome-shell/extensions/[email protected]/dialog_search.js:48:17
                                             reset@/usr/share/gnome-shell/extensions/[email protected]/dialog_search.js:204:19
                                             exit_modes@/usr/share/gnome-shell/extensions/[email protected]/extension.js:362:28
                                             on_overview_shown@/usr/share/gnome-shell/extensions/[email protected]/extension.js:1149:14
                                             run@/usr/share/gnome-shell/extensions/[email protected]/extension.js:214:30
                                             wake/<@/usr/share/gnome-shell/extensions/[email protected]/executor.js:29:24
Oct 29 18:57:48 thinkpad gnome-shell[16482]: JS ERROR: Error: Expected an object of type ClutterActorBox for argument 'box' but got type undefined
                                             vfunc_allocate@resource:///org/gnome/shell/ui/overviewControls.js:200:33
Oct 29 18:57:48 thinkpad gnome-shell[16482]: JS ERROR: Error: Expected an object of type ClutterActorBox for argument 'box' but got type undefined
                                             vfunc_allocate@resource:///org/gnome/shell/ui/overviewControls.js:200:33
Oct 29 18:57:48 thinkpad gnome-shell[16482]: JS ERROR: Error: Expected an object of type ClutterActorBox for argument 'box' but got type undefined
                                             vfunc_allocate@resource:///org/gnome/shell/ui/overviewControls.js:200:33
Oct 29 18:57:48 thinkpad gnome-shell[16482]: JS ERROR: Error: Expected an object of type ClutterActorBox for argument 'box' but got type undefined
                                             vfunc_allocate@resource:///org/gnome/shell/ui/overviewControls.js:200:33

(2) Steps to reproduce (if you know): Open multiple applications across multiple workspaces. Change between workspaces/applications (just regular usage), but keep trying to open the Activities view by pressing the Meta key. Eventually, it will freeze.

(3) Expected behavior: Activities view should show workspaces and aplications correctly, while allowing for regular search functionality.

(4) Distribution (run cat /etc/os-release):

NAME="Fedora Linux"
VERSION="35.20211028.n.1 (Silverblue)"
ID=fedora
VERSION_ID=35
VERSION_CODENAME=""
PLATFORM_ID="platform:f35"
PRETTY_NAME="Fedora Linux 35.20211028.n.1 (Silverblue)"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:35"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-silverblue/"
SUPPORT_URL="https://ask.fedoraproject.org/"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=35
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=35
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
VARIANT="Silverblue"
VARIANT_ID=silverblue
OSTREE_VERSION='35.20211028.n.1'

(5) Gnome Shell version: GNOME Shell 41.0

(6) Pop Shell version (run apt policy pop-shell or provide the latest commit if building locally):

Name         : gnome-shell-extension-pop-shell
Version      : 1.2.0^4.1fddaa8
Release      : 1.fc35
Architecture : noarch
Size         : 90 k
Source       : gnome-shell-extension-pop-shell-1.2.0^4.1fddaa8-1.fc35.src.rpm
Repository   : updates
Summary      : GNOME Shell extension for advanced tiling window management
URL          : https://github.com/pop-os/shell
License      : GPLv3
Description  : Pop Shell is a keyboard-driven layer for GNOME Shell which allows for quick
             : and sensible navigation and management of windows.  The core feature of Pop
             : Shell is the addition of advanced tiling window management - a feature that
             : has been highly-sought within our community.  For many - ourselves included -
             : i3wm has become the leading competitor to the GNOME desktop.

(7) Where was Pop Shell installed from: Fedora repos, by running:

rpm-ostree install gnome-shell-extension-pop-shell

(8) Monitor Setup (2 x 1080p, 4K, Primary(Horizontal), Secondary(Vertical), etc): 1080p, Primary, Horizontal

(9) Other Installed/Enabled Extensions: AlternateTab Caffeine Impatience NoAnnoyance Sound Input & Output Device Chooser

I have been able to reproduce the bug with all extensions disabled except for pop-shell.

(10) Other Notes: I have also experienced this issue in Fedora Workstation 35. Fedora Workstation 34 and Fedora Silverblue 34 are ok.

Martins2759 avatar Oct 30 '21 18:10 Martins2759

The issue was happening on 1.2.0^3.ab87042 (August), NOT 1.2.0^4.1fddaa8. When I searched for the gnome-shell-extension-pop-shell package info I got 1.2.0^4.1fddaa8, and assumed no update had taken place in the last few hours. The Activities view when running 1.2.0^4.1fddaa8 works perfectly. Closing.

Martins2759 avatar Oct 31 '21 02:10 Martins2759

This still happens for me from time to time and I'm also on 1fddaa8. I'm not sure what triggers it, the activities menu just broke at some point during normal usage. But I found a way to consistently trigger it (on X11) by just restarting gnome with alt+f2 -> r. After that it always freezes until I reboot or disable/enable the extension again.

ctrox avatar Nov 04 '21 19:11 ctrox

Can you try to gather more information by running journalctl just so we are sure it is the same issue?

Martins2759 avatar Nov 04 '21 19:11 Martins2759

Yeah sure, I get pretty much the same error as you it seems:

Nov 06 09:09:13 cyfed gnome-shell[5925]: JS ERROR: TypeError: app is null
                                         _init@resource:///org/gnome/shell/ui/windowPreview.js:125:9
                                         _addWindowClone@resource:///org/gnome/shell/ui/workspace.js:1392:21
                                         _init@resource:///org/gnome/shell/ui/workspace.js:1130:22
                                         _updateWorkspaces@resource:///org/gnome/shell/ui/workspacesView.js:462:29
                                         _init@resource:///org/gnome/shell/ui/workspacesView.js:121:14
                                         _updateWorkspacesViews@resource:///org/gnome/shell/ui/workspacesView.js:1091:24
                                         prepareToEnterOverview@resource:///org/gnome/shell/ui/workspacesView.js:1039:14
                                         animateToOverview@resource:///org/gnome/shell/ui/overviewControls.js:680:33
                                         animateToOverview@resource:///org/gnome/shell/ui/overview.js:82:24
                                         _animateVisible@resource:///org/gnome/shell/ui/overview.js:540:24
                                         show@resource:///org/gnome/shell/ui/overview.js:525:14
                                         toggle@resource:///org/gnome/shell/ui/overview.js:633:18
                                         _init/<@resource:///org/gnome/shell/ui/overviewControls.js:435:31
Nov 06 09:09:13 cyfed gnome-shell[5925]: Can't update stage views actor <unnamed>[<StBin>:0x55e3e50e6ab0] is on because it needs an allocation.
Nov 06 09:09:13 cyfed gnome-shell[5925]: Can't update stage views actor <unnamed>[<StBin>:0x55e3e50e7db0] is on because it needs an allocation.

I'm also on Fedora 35.

ctrox avatar Nov 06 '21 08:11 ctrox

I've been using Fedora Silverblue 35, and the issue is not present. I tried to replicate it for a few minutes in Fedora 35, but was not successful.

I'd try running the following:

sudo dnf upgrade --refresh
sudo dnf reinstall gnome-shell-extension-pop-shell

Disable all other extensions, reboot, and see how it goes. If the problem persists, there might be something you are doing that is triggering the problem reliably, and we should try to gather specific steps to replicate it.

Martins2759 avatar Nov 07 '21 16:11 Martins2759

Disabling all other extensions seems to have done the trick. Does not make much sense but I was even able to enable all of them again and I still cannot get it to freeze. Thanks for the help!

ctrox avatar Nov 07 '21 19:11 ctrox

Looks to me like the GNOME 40 specific changes from https://github.com/pop-os/shell/pull/1069 likely need to be enabled for GNOME 41 as well.

felschr avatar Nov 08 '21 23:11 felschr

Any news? still getting this bug daily

RazerPC avatar Nov 21 '21 18:11 RazerPC

Ditto. Debian 11, up to date with #1246. Gnome shell is sitting at 41.1-1. Disabled all other extensions but I still get a lot of freezes. I will post my journal when it occurs next.

SecretlyNotARobot avatar Nov 23 '21 03:11 SecretlyNotARobot

What configuration are you running? I'm only getting this on one machine with X11 and Nvidia proprietary. On my other machine with Wayland + Intel I never got it so far.

Also on my X11 machine it came back after a while but the fix suggested by @felschr is what actually seems to work. I have just changed it to also match 41 wherever it now matches 40.

ctrox avatar Nov 23 '21 07:11 ctrox

Yes, running X+Nvidia. I caught the logs, it is the stage view actor error too. I will try that tonight and prepare a PR if it fixes my error (I have also updated my drivers, so that may just do it).

SecretlyNotARobot avatar Nov 23 '21 16:11 SecretlyNotARobot

I mostly use X + Nvidia, too. Though, when running Wayland this issue seems to occur way less frequently, but it still happens sometimes.

felschr avatar Nov 23 '21 17:11 felschr

@ctrox 's solution worked for me. @Martins2759, do you mind re-opening this issue so I have something to make a PR against?

SecretlyNotARobot avatar Nov 23 '21 21:11 SecretlyNotARobot

An issue isn't required to open a pull request, but since this is still being reported and the version matching clearly wasn't taking version 41 into account yet, I've re-opened this so you can link your PR to it, @SecretlyNotARobot.

jacobgkau avatar Nov 23 '21 21:11 jacobgkau

After a lot of research with the GNOME team, the core issue has been found:

https://github.com/pop-os/shell/issues/1251

Arcitec avatar Nov 24 '21 16:11 Arcitec