当我打开 LibreOffice 文档时,窗口会“颤抖”(反复变小然后变大,顶部菜单列(file
等)从顶部菜单跳转到窗口菜单并返回),并且 Unity 似乎崩溃了(顶部菜单列和右侧的图标消失)。我需要注销并重新登录或重新启动 Unity 才能恢复顶部菜单。如果我打开没有文档的 LibreOffice,则一切正常,直到我打开文档。
当发生这种情况时,Syslog 会显示以下内容:
Jan 16 09:59:21 AP-X kernel: [ 451.980357] unity-panel-ser[3132]: segfault at 0 ip 00007fc5be712425 sp 00007fff9885f548 error 4 in libc-2.23.so[7fc5be685000+1c0000]
Jan 16 09:59:21 AP-X kernel: [ 452.531584] unity-panel-ser[4654]: segfault at 0 ip 00007f7e5a48c425 sp 00007ffc03ca0128 error 4 in libc-2.23.so[7f7e5a3ff000+1c0000]
Jan 16 09:59:22 AP-X kernel: [ 453.085363] unity-panel-ser[4676]: segfault at 0 ip 00007fb1dde01425 sp 00007ffc1ed7d978 error 4 in libc-2.23.so[7fb1ddd74000+1c0000]
Jan 16 09:59:22 AP-X kernel: [ 453.675899] unity-panel-ser[4689]: segfault at 0 ip 00007f061acce425 sp 00007ffedc6e6d58 error 4 in libc-2.23.so[7f061ac41000+1c0000]
Jan 16 09:59:23 AP-X kernel: [ 454.338166] unity-panel-ser[4702]: segfault at 0 ip 00007fa0c4a53425 sp 00007ffdd8657188 error 4 in libc-2.23.so[7fa0c49c6000+1c0000]
Jan 16 09:59:23 AP-X kernel: [ 454.772976] unity-panel-ser[4715]: segfault at 0 ip 00007f277ddd5425 sp 00007ffd8403ff28 error 4 in libc-2.23.so[7f277dd48000+1c0000]
Jan 16 09:59:24 AP-X kernel: [ 455.216108] unity-panel-ser[4727]: segfault at 0 ip 00007ff7dca61425 sp 00007ffda130ead8 error 4 in libc-2.23.so[7ff7dc9d4000+1c0000]
Jan 16 09:59:24 AP-X kernel: [ 455.654618] unity-panel-ser[4739]: segfault at 0 ip 00007f9a7e444425 sp 00007ffdd0dfddd8 error 4 in libc-2.23.so[7f9a7e3b7000+1c0000]
Jan 16 09:59:25 AP-X kernel: [ 456.078362] unity-panel-ser[4751]: segfault at 0 ip 00007f78dbfbd425 sp 00007ffcede472f8 error 4 in libc-2.23.so[7f78dbf30000+1c0000]
Jan 16 09:59:26 AP-X kernel: [ 457.349191] show_signal_msg: 2 callbacks suppressed
Jan 16 09:59:26 AP-X kernel: [ 457.349196] unity-panel-ser[4789]: segfault at 0 ip 00007fefcc629425 sp 00007ffc2c21e6e8 error 4 in libc-2.23.so[7fefcc59c000+1c0000]
Jan 16 09:59:26 AP-X kernel: [ 457.741482] unity-panel-ser[4802]: segfault at 0 ip 00007fa639ad9425 sp 00007ffd9b4fdd28 error 4 in libc-2.23.so[7fa639a4c000+1c0000]
Jan 16 09:59:27 AP-X kernel: [ 458.159408] unity-panel-ser[4814]: segfault at 0 ip 00007fd2bfdd5425 sp 00007ffcffb286b8 error 4 in libc-2.23.so[7fd2bfd48000+1c0000]
Jan 16 09:59:27 AP-X kernel: [ 458.568686] unity-panel-ser[4827]: segfault at 0 ip 00007fa17bb6c425 sp 00007ffc701a3a38 error 4 in libc-2.23.so[7fa17badf000+1c0000]
Jan 16 09:59:28 AP-X kernel: [ 458.988591] unity-panel-ser[4840]: segfault at 0 ip 00007fd4074b9425 sp 00007ffd97ec1928 error 4 in libc-2.23.so[7fd40742c000+1c0000]
Jan 16 09:59:28 AP-X kernel: [ 459.405718] unity-panel-ser[4853]: segfault at 0 ip 00007f3472a7e425 sp 00007ffd565cb398 error 4 in libc-2.23.so[7f34729f1000+1c0000]
Jan 16 09:59:28 AP-X kernel: [ 459.796760] unity-panel-ser[4865]: segfault at 0 ip 00007fa14ed81425 sp 00007ffc758b07a8 error 4 in libc-2.23.so[7fa14ecf4000+1c0000]
Jan 16 09:59:29 AP-X kernel: [ 460.203387] unity-panel-ser[4877]: segfault at 0 ip 00007fea84555425 sp 00007ffdca9dc9d8 error 4 in libc-2.23.so[7fea844c8000+1c0000]
Jan 16 09:59:29 AP-X kernel: [ 460.609269] unity-panel-ser[4889]: segfault at 0 ip 00007fdff3bbc425 sp 00007ffdb8721428 error 4 in libc-2.23.so[7fdff3b2f000+1c0000]
Jan 16 09:59:30 AP-X kernel: [ 461.020533] unity-panel-ser[4901]: segfault at 0 ip 00007f6cdd69c425 sp 00007ffc7b563c98 error 4 in libc-2.23.so[7f6cdd60f000+1c0000]
我在 Ubuntu 16.04 LTS 上运行 LibreOffice 5.1.6.2
此问题也提交给了Ubuntu 启动板但自 2017 年 9 月以来一直没有开展工作。
答案1
我在 Ubuntu 16.04.6 LTS 上使用 LibreOffice 5.1.6.2 10m0(Build:2) 时遇到了同样的问题(不过我还没有检查 Syslog)。我注意到从终端打开 libreoffice 时出现了以下输出:
(soffice:2579): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
查找该消息让我这答案,这可能完全不相关。但我决定尝试建议的解决方案以防万一,它似乎已经解决了问题。建议答案:
rm -r ~/.config/libreoffice
再次启动 libreoffice 时将重新创建该文件夹。我认为之前的配置应该会丢失,但这可能是可以承受的。
完成此操作后,运行 libreoffice 时我从终端获得的输出如下:
javaldx: Could not find a Java Runtime Environment!
Warning: failed to read path from javaldx
(soffice:2568): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
(soffice:2579): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
(soffice:2579): Gdk-WARNING **: gdk_window_set_icon_list: icons too large
这可能就是为什么我认为 Gdk-WARNING 与该问题完全无关的原因。