pop-os / cosmic

GNOME Shell extension. See cosmic-epoch for COSMIC Epoch
GNU General Public License v3.0
1.26k stars 47 forks source link

Gnome 100% CPU #400

Open janicki opened 1 year ago

janicki commented 1 year ago

Distribution (run cat /etc/os-release): NAME="Pop!_OS" VERSION="22.04 LTS" ID=pop ID_LIKE="ubuntu debian" PRETTY_NAME="Pop!_OS 22.04 LTS" VERSION_ID="22.04" HOME_URL="https://pop.system76.com" SUPPORT_URL="https://support.system76.com" BUG_REPORT_URL="https://github.com/pop-os/pop/issues" PRIVACY_POLICY_URL="https://system76.com/privacy" VERSION_CODENAME=jammy UBUNTU_CODENAME=jammy LOGO=distributor-logo-pop-os

Related Application and/or Package Version (run apt policy $PACKAGE NAME):

Issue/Bug Description: I experience essentially the same as bug pop-os/pop#3115 (recently closed due to a grumpy user). When waking, the computer fans rev up and it's clear the CPU is 100%. Logging in from another machine, 'top' usually shows that logging is busy, along with Gnome, and sometimes a Firefox tab. This freeze-from-wake occurs every few days. The system goes into an infinite loop writing syslogs. Killing gnome-shell from another machine fixes it. Below are some recent logs around the last time. This is where the problem seems to begin, then the last few lines get very repetitive. (My /var/log/syslog file has 2GB that is mainly copies of the JSAPI log and stack trace.) Hope this helps.

If the logs are not useful enough, feel free to close this bug. I'll open a new one if I find something better to share.

Aug 22 15:42:57 thelio gnome-shell[406914]: Window manager warning: last_focus_time (745014185) is greater than comparison timestamp (745014017). This most likely represent s a buggy client sending inaccurate timestamps in messages such as _NET_ACTIVE_WINDOW. Trying to work around... Aug 22 15:42:57 thelio gnome-shell[406914]: [popx11gestures@system76.com] Connection with Touchégg established Aug 22 15:42:57 thelio NetworkManager[1296565]: [1692733377.1903] agent-manager: agent[e81e4d9b5becbf7a,:1.3713/org.gnome.Shell.NetworkAgent/1000]: agent registered Aug 22 15:42:57 thelio systemd[2203]: Started dbus-:1.5-org.gnome.NautilusPreviewer@243.service. Aug 22 15:42:57 thelio kernel: [744941.452859] [drm:nv_drm_master_set [nvidia_drm]] ERROR [nvidia-drm] [GPU ID 0x00000a00] Failed to grab modeset ownership Aug 22 15:42:57 thelio systemd[2203]: Started dbus-:1.5-org.gnome.ArchiveManager1@215.service. Aug 22 15:42:57 thelio gnome-shell[406914]: DING: Detected async api for thumbnails Aug 22 15:42:57 thelio gnome-shell[406914]: DING: GNOME nautilus 42.6 Aug 22 15:42:58 thelio NetworkManager[1296565]: [1692733378.2430] manager: startup complete Aug 22 15:42:58 thelio systemd[1]: Finished Network Manager Wait Online. Aug 22 15:43:03 thelio gnome-shell[406914]: Attempting to call back into JSAPI during the sweeping phase of GC. This is most likely caused by not destroying a Clutter actor or Gtk+ widget with ::destroy signals connected, but can also be caused by using the destroy(), dispose(), or remove() vfuncs. Because it would crash the application, it has been blocked and the JS callback not invoked. Aug 22 15:43:03 thelio gnome-shell[406914]: The offending signal was notify on MetaStage 0x556cd887b440. Aug 22 15:43:03 thelio gnome-shell[406914]: == Stack trace for context 0x556cd88d7190 == Aug 22 15:43:03 thelio gnome-shell[406914]: #0 556d0cc571c0 i resource:///org/gnome/shell/ui/main.js:777 (15822b5ecce0 @ 243) Aug 22 15:43:03 thelio gnome-shell[406914]: pop-os/pop#1 556d0cc570f0 i /usr/share/gnome-shell/extensions/pop-cosmic@system76.com/extension.js:277 (41f9be7b00 @ 131) Aug 22 15:43:03 thelio gnome-shell[406914]: pop-os/pop#2 556d0cc57030 i resource:///org/gnome/shell/ui/switcherPopup.js:136 (3a550943cc40 @ 867) Aug 22 15:43:03 thelio gnome-shell[406914]: pop-os/pop#3 556d0cc56f78 i resource:///org/gnome/shell/ui/windowManager.js:1688 (b385142d790 @ 493) Aug 22 15:43:03 thelio gnome-shell[406914]: pop-os/pop#4 7fffe64e8c90 b self-hosted:1178 (15822b5b0a10 @ 492)

Steps to reproduce (if you know): Sleep, usually with Firefox open.

Expected behavior: Wake from sleep.

Other Notes:

mmstick commented 1 year ago

I can create a PR that might help if you can test it.

mmstick commented 1 year ago

Possible fix may be built locally with make / make install, or by adding the staging branch after its debian package is built

sudo apt-manage add popdev:freeze
sudo apt update
sudo apt full-upgrade

After PR is merged, staging branch must be manually removed

sudo apt-manage remove popdev-freeze
mmstick commented 1 year ago

@janicki Needs feedback before I can propose changes for review.