从今天开始,Emacs里面可以运行任何你想要的程序 (Linux & Windows & Mac & BSD)

不好意思,刚才搞错了,组合键映射 “return” 和 “backspace”, 还是会奔溃。

我现在用 RET(C-m) 代替 return, C-backspace 代替 backspace.

原来用的 arch ,eaf用的很舒服。现在换了电脑,mac上依赖直接装不上。叹气。

Mac依赖怎么装不上了?

这个问题的本质是要重新编译Qt6, 才能知道 crash 的详细堆栈信息。

Arch这个发行版很奇怪,不像 Debian 系默认提供 debug 符号的软件包,可能要等周末我看看有没有时间了,Qt6编译一次最少几个小时。

我的 pacman 安装是没有问题的,我比较奇怪为啥我没有问题,好几个人都有问题,难道是我额外安装了其他软件包?

我也没这问题,很奇怪,无法复现

https://wiki.archlinux.org/title/Debuginfod

Arch 现在有 debuginfod 服务器提供调试符号了,不过不知道有没有 qt6 的

https://www.archlinuxcn.org/debug-packages-and-debuginfod/

Debuginfod - ArchWiki Arch 现在有 debuginfod 服务器提供调试符号了,不过不知道有没有 qt6 的 调试符号(debug)包和 debuginfod « Arch Linux

能试一下,然后给我看一下 gdb bt 信息吗? 我这边主要是不会段错误。

有qt6, 但是没有qt6-webengine啊 :joy:

[qt5test@jianans-private-thinkpad-t495 ~]$ gdb /usr/bin/emacs /tmp/core-python3-1029 -q
Reading symbols from /usr/bin/emacs...
Reading symbols from /home/qt5test/.cache/debuginfod_client/3fad7ecc12f3d0c5f693fc87084cdffc7ca0457d/debuginfo...

warning: Can't open file /dev/shm/.org.chromium.Chromium.vjAvGa (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.ztrX5X (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.k4BoxI (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.pbfGTc (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.5NFDCW (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.6y70dY (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.erzPh1 (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.LCC41i (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.omsBWs (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.88U8ju (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:xorg (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.ea7jGN (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.iLXMN3 (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.Q1ZV8S (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.xK65sj (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.0DoV8P (deleted) during file-backed mapping note processing

warning: Can't open file /memfd:xshmfence (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.qr3apV (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.SZgejN (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.wTI4yb (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.n6AMoV (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.MPK1n9 (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.m31T3T (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.3SPkqf (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.Gb3yub (deleted) during file-backed mapping note processing

warning: Can't open file /dev/shm/.org.chromium.Chromium.8fhcuS (deleted) during file-backed mapping note processing

warning: core file may not match specified executable file.
[New LWP 1029]
[New LWP 1030]
[New LWP 1031]
[New LWP 1034]
[New LWP 1039]
[New LWP 1038]
[New LWP 1035]
[New LWP 1042]
[New LWP 1040]
[New LWP 1071]
[New LWP 1044]
[New LWP 1041]
[New LWP 1043]
[New LWP 1062]
[New LWP 1048]
[New LWP 1115]
[New LWP 1119]
[New LWP 1046]
[New LWP 1075]
[New LWP 1073]
[New LWP 1120]
[New LWP 1118]
[New LWP 1089]
[New LWP 1092]
[New LWP 1088]
[New LWP 1116]
[New LWP 1127]
[New LWP 1032]
[New LWP 1070]
[New LWP 1129]
[New LWP 1082]
[New LWP 1143]
[New LWP 1077]
[New LWP 1036]
[New LWP 1049]
[New LWP 1068]
[New LWP 1037]
[New LWP 1090]
[New LWP 1033]
[New LWP 1069]
[New LWP 1045]
[New LWP 1076]
[New LWP 1072]
[New LWP 1083]
[New LWP 1103]
[New LWP 1114]
[New LWP 1078]
[New LWP 1079]
[New LWP 1117]
[New LWP 1128]
[New LWP 1074]
--Type <RET> for more, q to quit, c to continue without paging--
Core was generated by `/usr/bin/python3 /home/qt5test/.emacs.d/site-lisp/emacs-application-framework/e'.
Program terminated with signal SIGTRAP, Trace/breakpoint trap.
#0  0x00007fe2ebd09be9 in ?? ()
[Current thread is 1 (LWP 1029)]
(gdb) bt
#0  0x00007fe2ebd09be9 in ?? ()
#1  0x00007fe2580af6e8 in ?? ()
#2  0x00007fe2f441fbe3 in ?? ()
#3  0x00000000000000f8 in ?? ()
#4  0x0000562e98826e98 in ?? ()
#5  0x00000000000000f0 in ?? ()
#6  0x0000562e987f0ce8 in ?? ()
#7  0x00007fff3b86bc80 in ?? ()
#8  0x00007fe2ebc78a24 in ?? ()
#9  0x00007fff3b86bd10 in ?? ()
#10 0xaf7935d18568d800 in ?? ()
#11 0x00007fe2580af6e8 in ?? ()
#12 0xffffffffffffff80 in ?? ()
#13 0x0000000000000000 in ?? ()

我 qt5 版的也会崩,所以试了下 qt5 的 debug 包。我个菜鸡不知道咋 debug :rofl:, 只是在 eaf 崩溃后,gdb emacs 生成的 coredump, 不知道这样对不对。大概是上面这样。希望对大佬有帮助吧。

尝试一下 sudo coredumpctl gdb 启动,看看能否得到完整的 bt 信息?

我能重现了, Arch 升级之前:/usr/lib/libQt6WebEngineCore.so.6 -> libQt6WebEngineCore.so.6.2.3 Arch 升级之后:/usr/lib/libQt6WebEngineCore.so.6 -> libQt6WebEngineCore.so.6.2.4

目前测试看,PIP PyQt6 的 libQt6WebEngineCore.so.6 是有问题的,Arch的 libQt6WebEngineCore.so.6.2.4 是有问题的,只有 libQt6WebEngineCore.so.6.2.3 的不会按 Return/Backspace 按键不会崩溃。

2 个赞

大佬复现了,我就放心了,接着躺平 :peace_symbol: :dog:

PS: 我目前5和6都是崩的,附版本号,给大伙儿避坑用

-rwxr-xr-x 1 root root 129120232 Apr 15 03:58 /usr/lib/libQt5WebEngineCore.so.5.15.9*
-rwxr-xr-x 1 root root 177374752 Apr 15 07:10 /usr/lib/libQt6WebEngineCore.so.6.3.0*

只能周末看看了,公司最近太忙了,升级就有各种问题,心累呀。

1 个赞

原来是6.2.4才有问题,我以为 qt6 都有问题。我测试了一下,Windows 上安装 6.2.0 版本就不会崩了。

image

1 个赞

感谢大佬提供信息,我推送了一个补丁,只安装 PyQt6 6.2.0 以后,我按 Return/Backspace 也不崩溃了。

@TerryTsao @xdash-bw @Jerry 可以更新 Master 分支代码测试一下 PyQt6,看看还会不会崩溃?

2 个赞

赞大佬的效率,完美解决,我这儿好了

1 个赞

好了就好,这个问题还是非常烦的。

1 个赞

我的也 OK 了, 感谢大佬

1 个赞

M1,装不上 pyqtwebengine. 会报下面的错误。

我使用 homebrew,可以装 qt ,但是里面没有 webengine。