gnome-shell 在 /var/log/syslog 上发送垃圾邮件

gnome-shell 在 /var/log/syslog 上发送垃圾邮件

移自https://stackoverflow.com/questions/66061925/gnome-shell-spamming-on-var-log-syslog因为它在那里关闭而没有解决方案;而且它也正在发生在我身上(我正在运行 Ubuntu 20.10,但没有它的标签)


我在 /var/log/syslog 中看到很多日志,所以我考虑使用 rsyslog 将 gnome-shell 日志的输出重定向到 /dev/null,我没有编辑 /etc/rsyslog.conf 中的默认配置文件,而是将 00-my-file.conf 自定义文件创建到 /etc/rsyslog.d/ 中,在我创建的文件中,我写了以下代码

如果 $msg 包含 'deallocated' 那么 /dev/null

但它现在确实有效了。gnome log 打印带有“deallocated”的字符串,gnome log 的一个示例是

Feb  5 11:49:26 HP gnome-shell[1608]: == Stack trace for context 0x55e32619b220 ==
Feb  5 11:49:26 HP gnome-shell[1608]: #0   7fff4e657410 I   /usr/share/gnome-shell/extensions/[email protected]/docking.js:2051 (2a458f8a6330 @ 208)
Feb  5 11:49:26 HP gnome-shell[1608]: == Stack trace for context 0x55e32619b220 ==
Feb  5 11:49:26 HP gnome-shell[1608]: #0   7fff4e657410 I   /usr/share/gnome-shell/extensions/[email protected]/docking.js:2051 (2a458f8a6330 @ 208)
Feb  5 11:49:26 HP gnome-shell[1608]: == Stack trace for context 0x55e32619b220 ==
Feb  5 11:49:26 HP gnome-shell[1608]: #0   7fff4e657410 I   /usr/share/gnome-shell/extensions/[email protected]/docking.js:2051 (2a458f8a6330 @ 208)
Feb  5 11:49:26 HP gnome-shell[1608]: == Stack trace for context 0x55e32619b220 ==
Feb  5 11:49:26 HP gnome-shell[1608]: #0   7fff4e657410 I   /usr/share/gnome-shell/extensions/[email protected]/docking.js:2051 (2a458f8a6330 @ 208)
Feb  5 11:49:26 HP gnome-shell[1608]: == Stack trace for context 0x55e32619b220 ==
Feb  5 11:49:26 HP gnome-shell[1608]: #0   7fff4e657410 I   /usr/share/gnome-shell/extensions/[email protected]/docking.js:2051 (2a458f8a6330 @ 208)
Feb  5 11:49:26 HP gnome-shell[1608]: == Stack trace for context 0x55e32619b220 ==
Feb  5 11:49:26 HP gnome-shell[1608]: #0   7fff4e657410 I   /usr/share/gnome-shell/extensions/[email protected]/docking.js:2051 (2a458f8a6330 @ 208)
Feb  5 11:49:26 HP gnome-shell[1608]: == Stack trace for context 0x55e32619b220 ==
Feb  5 11:49:26 HP gnome-shell[1608]: #0   7fff4e657410 I   /usr/share/gnome-shell/extensions/[email protected]/docking.js:2051 (2a458f8a6330 @ 208)
Feb  5 11:49:26 HP gnome-shell[1608]: Object St.Bin (0x55e32b1423a0), has been already deallocated — impossible to set any property on it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Feb  5 11:49:26 HP gnome-shell[1608]: Object St.Bin (0x55e32a03fc80), has been already deallocated — impossible to set any property on it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Feb  5 11:49:26 HP gnome-shell[1608]: Object St.Bin (0x55e328c92fa0), has been already deallocated — impossible to set any property on it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Feb  5 11:49:26 HP gnome-shell[1608]: Object St.Bin (0x55e328f19080), has been already deallocated — impossible to set any property on it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.
Feb  5 11:49:26 HP gnome-shell[1608]: Object St.Bin (0x55e326ea8480), has been already deallocated — impossible to set any property on it. This might be caused by the object having been destroyed from C code using something such as destroy(), dispose(), or remove() vfuncs.

如果您知道您解决了 gnome-shell 问题,请告诉我一个可能的解决方案。请帮助我,我会阅读所有回复。

答案1

对于有些人,重新启动 gnome-shell 即可解决该问题。

  • 按键组合:ALT+F2
  • 将出现一个命令弹出窗口
  • 输入“r”,按 ENTER

根据此评论,该问题是由以下步骤引起的:

我找到了一种重现的方法

  • 等待自动更新管理器提示
  • 应用更新(在 Dock 中,更新管理器图标正在扭曲)
  • 完成后,关闭更新管理器
  • 然后错误开始出现在系统日志中

相关内容