我使用这个网站上的指南安装了Emacs。一开始它运行得很好,但最近我经常遇到崩溃的问题。例如,每20分钟,Emacs会突然关闭并且不会保存任何内容。有时,我会在终端窗口中看到输出,例如:
When compiled with GTK, Emacs cannot recover from X disconnects.
This is a GTK bug: https://gitlab.gnome.org/GNOME/gtk/issues/221
For details, see etc/PROBLEMS.
Backtrace:
emacs(+0x146b12)[0x560737d11b12]
emacs(+0x48d1b)[0x560737c13d1b]
emacs(+0x49209)[0x560737c14209]
emacs(+0x48291)[0x560737c13291]
emacs(+0x48360)[0x560737c13360]
/lib/x86_64-linux-gnu/libX11.so.6(_XIOError+0x52)[0x7fcd36f391a2]
/lib/x86_64-linux-gnu/libX11.so.6(_XEventsQueued+0x7d)[0x7fcd36f3685d]
/lib/x86_64-linux-gnu/libX11.so.6(XPending+0x61)[0x7fcd36f28171]
/lib/x86_64-linux-gnu/libgdk-3.so.0(+0x7020f)[0x7fcd376d920f]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_prepare+0x19f)[0x7fcd370af72f]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(+0x520db)[0x7fcd370b00db]
/lib/x86_64-linux-gnu/libglib-2.0.so.0(g_main_context_pending+0x2c)[0x7fcd370b027c]
/lib/x86_64-linux-gnu/libgtk-3.so.0(gtk_events_pending+0x12)[0x7fcd379bc402]
我不能百分之百确认错误信息是否正确地诊断了问题。但是如果我们假设它是正确的诊断,那么我该如何重新安装Emacs以便它可以从X断开连接中恢复?或者,我该如何防止X断开连接?
M-x report-emacs-bug
。崩溃总是表示某种错误。 - Drew