gnome-shell CPU 使用率过高导致 gnome 冻结(JS 错误)

gnome-shell CPU 使用率过高导致 gnome 冻结(JS 错误)

我的 gnome 会话时不时会完全冻结,gnome-shell 占用 100% 的 CPU。到目前为止,我唯一能做的就是切换到虚拟终端并关闭 gnome-shell。之后 gnome 会话又恢复了。有什么建议可以避免这个问题吗?

我的系统是:Ubuntu 18.04.1 LTS(最新)

在系统日志中我发现了有关冻结日期/时间的以下错误消息:

[date/time] some-ubuntu gnome-shell[1902]: JS ERROR: Exception in callback for signal: child-added: InternalError: too much recursion#012_init@resource:///org/gnome/shell/ui/popupMenu.js:946:9#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_Base.prototype._construct@resource:///org/gnome/gjs/modules/_legacy.js:18:5#012Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/_legacy.js:114:32#012_init@resource:///org/gnome/shell/ui/popupMenu.js:1128:21#012wrapper@resource:///org/gnome/gjs/modules/_legacy.js:82:22#012_Base.prototype._construct@resource:///org/gnome/gjs/modules/_legacy.js:18:5#012Class.prototype._construct/newClass@resource:///org/gnome/gjs/modules/_legacy.js:114:32#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:453:29#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactory.createItem@/usr/share/gnome-shell/extensions/[email protected]/dbusMenu.js:479:44#012MenuItemFactor

答案1

日志控制 在此处输入图片描述

不断尝试直到出现更好的结果。禁用对 systemd 的日志记录。

在此处输入图片描述

FileName='/etc/systemd/journald.conf'
FindLine='#RateLimitIntervalSec='
ReplaceWith='#RateLimitIntervalSec=0s'
sudo sed -i "/$FindLine/c\$ReplaceWith" $FileName

FileName='/etc/systemd/journald.conf'
FindLine='#RateLimitBurst='
ReplaceWith='RateLimitBurst=0'
sudo sed -i "/$FindLine/c\$ReplaceWith" $FileName

相关内容