joaotavora / sly

Sylvester the Cat's Common Lisp IDE
1.24k stars 140 forks source link

Crashes when used with company-box and the "emacs-mac" fork, but hard to reproduce. Help? #478

Open nathanvy opened 2 years ago

nathanvy commented 2 years ago

(edited to add more info)

Hi,

I'm using the excellent mac-specific fork: https://bitbucket.org/mituharu/emacs-mac/src/master/README-mac

When I use sly, sometimes emacs crashes completely. When I use slime, this does not happen. I have narrowed it down to company-box-mode being loaded as the cause, but it doesn't crash every time, only occasionally.

To reproduce:

  1. with the emacs-mac port, start emacs -q and set it up as follows:
(setq package-archives '(("MELPA" . "https://melpa.org/packages/")
             ("GNU" . "https://elpa.gnu.org/packages/")))
(package-initialize)

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(setq use-package-verbose t)
(setq use-package-always-ensure t)
(require 'use-package)

(use-package sly
  :config
  (setq inferior-lisp-program "sbcl"))

(use-package company
  :hook (prog-mode . company-mode))

(use-package company-box
  :hook (company-mode . company-box-mode))
  1. open a lisp file and start sly with M-x sly
  2. cause a code-completion popup to appear, and scroll up and down through the completion suggestions

I want to reiterate that this doesn't appear to be a company-box-mode bug, because this never occurs with SLIME, only with sly.

I'm going to keep digging but this is as far as I've been able to figure it out so far.

jthaman commented 2 years ago

I'm also experiencing crashes on Gnu Emacs with Sly and Company-Box.

edit: And without company-box. I'm getting a hard crash to desktop, not sure how to troubleshoot this one.