[BUG] Having workspaces, dashboard, and unicode modules enabled causes client to segfault

Đang mở
#92 5 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
emacs-lisp
Lĩnh vực
backend

Hướng nghiên cứu

The report narrows the crash to enabling the workspaces, unicode, and dashboard modules in init.el and launching emacsclient -c; it links info.txt for system details. Start by reproducing with those modules and compare which combination triggers the crash. Done means identifying and fixing the module interaction so the daemon survives client frame creation.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Describe your issue

When I call emacsclient -c (this does not happen with just emacs or emacsclient -nw), the emacs daemon crashes. With emacs --fg-daemon open in a terminal, I can see the following output:

stack trace (long output)
Due to a limitation in GTK 3, Emacs built with PGTK will simply exit when a
display connection is closed.  The problem is especially difficult to fix,
such that Emacs on Wayland with multiple displays is unlikely ever to be able
to survive disconnects.
Starting Emacs daemon.
Doom loaded 21 packages across 6 modules in 0.068s
Gdk-Message: 11:24:36.346: Unable to load sb_v_double_arrow from the cursor theme
Gdk-Message: 11:24:36.346: Unable to load sb_h_double_arrow from the cursor theme
Gdk-Message: 11:24:36.365: Unable to load hand2 from the cursor theme
Gdk-Message: 11:24:36.365: Unable to load sb_h_double_arrow from the cursor theme
Gdk-Message: 11:24:36.365: Unable to load sb_v_double_arrow from the cursor theme
Fatal error 11: Segmentation fault
Backtrace:
emacs(+0x183616) [0x5a6e6a101616]
emacs(+0x4f7ca) [0x5a6e69fcd7ca]
emacs(+0x4fddd) [0x5a6e69fcdddd]
emacs(+0x4fde4) [0x5a6e69fcdde4]
emacs(+0x1812f1) [0x5a6e6a0ff2f1]
/nix/store/pqyiidz5mi73wv5f91d48s9plcqyj5bz-glibc-2.44-57/lib/libc.so.6(+0x429f0) [0x7ebddde429f0]
emacs(+0x2b165f) [0x5a6e6a22f65f]
emacs(+0x24e6ed) [0x5a6e6a1cc6ed]
emacs(+0x1fdd9e) [0x5a6e6a17bd9e]
emacs(+0x1fe3d9) [0x5a6e6a17c3d9]
emacs(+0x1fe3d9) [0x5a6e6a17c3d9]
/nix/store/yxmbl6xs6vz1ly49h8x8rd2s9f7lck46-emacs-pgtk-31.1/lib/emacs/31.1/native-lisp/31.1-e6359f46/cl-seq-f464c4e2-2e568bb4.eln(F636c2d72656d6f7665_cl_remove_0+0xaa3) [0x7ebdd3e88313]
emacs(+0x1fe3d9) [0x5a6e6a17c3d9]
emacs(+0x1fe967) [0x5a6e6a17c967]
/nix/store/yxmbl6xs6vz1ly49h8x8rd2s9f7lck46-emacs-pgtk-31.1/lib/emacs/31.1/native-lisp/31.1-e6359f46/cl-seq-f464c4e2-2e568bb4.eln(F636c2d72656d6f76652d69662d6e6f74_cl_remove_if_not_0+0x7f) [0x7ebdd3e88e1f]
emacs(+0x24e6ed) [0x5a6e6a1cc6ed]
emacs(+0x1fdd9e) [0x5a6e6a17bd9e]
emacs(+0x1fff4b) [0x5a6e6a17df4b]
emacs(+0x1fd222) [0x5a6e6a17b222]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x2008e2) [0x5a6e6a17e8e2]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x2008e2) [0x5a6e6a17e8e2]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x2008e2) [0x5a6e6a17e8e2]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x200079) [0x5a6e6a17e079]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x2008e2) [0x5a6e6a17e8e2]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fd739) [0x5a6e6a17b739]
emacs(+0x1fdac0) [0x5a6e6a17bac0]
emacs(+0x1fdeed) [0x5a6e6a17beed]
emacs(+0x1fff4b) [0x5a6e6a17df4b]
...
zsh: segmentation fault (core dumped)  emacs --fg-daemon
Steps to reproduce

I was able to find that this can be reproduced with just workspaces, unicode, and dashboard present in init.el and no other files present in ~/.config/doom/.

init.el
;;; init.el -*- lexical-binding: t; -*-
(doom! :input
       :ui
       dashboard    ; a nifty splash screen for Emacs
       unicode           ; extended unicode support for various languages
       workspaces)        ; tab emulation, persistence & separate workspaces

Removing any of these allows the client to launch perfectly fine, though I suspect the problem is more around unicode, and having the dashboard & workspaces modules enabled just allows that bug to pop up on frame creation.

System information

info.txt

Disclosures
  • This issue was written with/by AI.
Ngôn ngữ chính
Emacs Lisp
Star
69
Fork
47
Merge trung bình
8 ngày 9 giờ
Pull request đã merge (30 ngày)
2

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của doomemacs/modules

Tất cả issue của doomemacs/modules

Issue tương tự

Thêm issue về Backend & API Design

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.