从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
但它现在确实有效。带有“deallocated”的 gnome 日志打印字符串是 gnome 日志的一个示例
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 问题,请告诉我一个可能的解决方案。请帮助我,我会阅读所有回复。