我正在通过 PulseAudio 听音乐,突然,桌面突然冻结,没有鼠标/键盘响应。检查事件发生时的系统日志显示大量如下行:
Dec 15 21:25:58 lamb-biryani-jme tracker-miner-f[1378]: (Sparql buffer) Error in task 0 (file:///home/jamesmeast/Music/all/Fever%20Ray) of the array-update: UNIQUE constraint failed: nie:DataObject.nie:url (strerror of errno (not necessarily related): No such file or directory)
Dec 15 21:25:58 lamb-biryani-jme tracker-miner-f[1378]: Could not execute sparql: UNIQUE constraint failed: nie:DataObject.nie:url (strerror of errno (not necessarily related): No such file or directory)
Dec 15 21:25:58 lamb-biryani-jme tracker-miner-f[1378]: (Sparql buffer) Error in task 1 (file:///home/jamesmeast/Music/all/Feeder) of the array-update: UNIQUE constraint failed: nie:DataObject.nie:url (strerror of errno (not necessarily related): No such file or directory)
Dec 15 21:25:58 lamb-biryani-jme tracker-miner-f[1378]: Could not execute sparql: UNIQUE constraint failed: nie:DataObject.nie:url (strerror of errno (not necessarily related): No such file or directory)
在备份系统日志时,我看到以下段错误:
Dec 15 21:24:46 lamb-biryani-jme kernel: [ 129.201128] python[1394]: segfault at 10 ip 000056131ab4916f sp 00007ffd13af4450 error 4 in python2.7[56131a9dc000+322000]
Dec 15 21:24:59 lamb-biryani-jme pulseaudio[1273]: [pulseaudio] bluez5-util.c: GetManagedObjects() failed: org.freedesktop.DBus.Error.TimedOut: Failed to activate service 'org.bluez': timed out
我怀疑 python 中的段错误和 pulsaudio 超时有关。有趣的是,虽然当时桌面被冻结了,但音乐仍然通过pulseaudio继续播放。
我的 uname -a 输出:
Linux lamb-biryani-jme 4.9.0-8-amd64 #1 SMP Debian 4.9.130-2 (2018-10-27) x86_64 GNU/Linux
答案1
我相信我已经找出问题所在。
段错误上方的几行是来自hplip-systray
HP 打印机的系统托盘应用程序的警告行:
Dec 15 21:24:46 lamb-biryani-jme hplip-systray.desktop[1394]: /usr/lib/python2.7/dist-packages/gtk-2.0/gtk/__init__.py:127: RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK
我最近购买了一台新的惠普打印机并安装了hplip
它。一个月后也发生了类似的段错误,syslog 引用了上述相同的错误hplip-systray
。
hplip-systray.desktop
因此,我通过从目录中删除该文件/etc/xdg/autostart
(我的桌面是 Gnome)并重新启动系统来禁用系统托盘应用程序。这hplip-systray
首先阻止了启动,我在重新启动后通过运行在系统上验证了这一点ps -ef | grep hplip-systray
。
从那时起,我没有发生任何段错误,系统保持稳定。