Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

company-box-frontend error Wrong type argument: frame-live-p #162

Open
b40yd opened this issue Mar 31, 2021 · 14 comments
Open

company-box-frontend error Wrong type argument: frame-live-p #162

b40yd opened this issue Mar 31, 2021 · 14 comments

Comments

@b40yd
Copy link

b40yd commented Mar 31, 2021

update cpmpany and company-box to latest, mouse move to other window, it' not work.

Company: frontend company-box-frontend error Wrong type argument: frame-live-p

Debugger entered--Lisp error: (wrong-type-argument frame-live-p #<dead frame 0000000016851430>)
make-frame-invisible(#<dead frame 0000000016851430>)
company-box-hide()
company-box-frontend(hide)
company-call-frontends(hide)
company-cancel()
company-quickhelp-hide()
run-hooks(focus-out-hook)
handle-focus-out((focus-out #<frame DotFairy Emacs - init-prog.el 0000000005017280>))
funcall-interactively(handle-focus-out (focus-out #<frame DotFairy Emacs - init-prog.el 0000000005017280>))
call-interactively(handle-focus-out nil [(focus-out #<frame DotFairy Emacs - init-prog.el 0000000005017280>)])
command-execute(handle-focus-out nil [(focus-out #<frame DotFairy Emacs - init-prog.el 0000000005017280>)] t)

@patrolli
Copy link

I have faced the same issue

@patrolli
Copy link

The error backtrace is:
Debugger entered--Lisp error: (wrong-type-argument frame-live-p #<dead frame 0x6e81360>)
make-frame-invisible(#<dead frame 0x6e81360>)
company-box-doc--hide(#<frame Minibuf-1 --- 2021/4/29(14:53) 0x2939e90>)
run-hook-with-args(company-box-doc--hide #<frame Minibuf-1 --- 2021/4/29(14:53) 0x2939e90>)
company-box-hide()
company-box-frontend(hide)
company-call-frontends(hide)
company-cancel()
company-mode(toggle)
funcall-interactively(company-mode toggle)
call-interactively(company-mode record nil)
command-execute(company-mode record)
counsel-M-x-action("company-mode")
ivy-call()

@cjk
Copy link

cjk commented Jan 12, 2022

Yep, same here. It's hard to reproduce, only happening intermittently. Workaround is opening a new frame and closing the old one.
But that is annoying of course.

@dario-exads
Copy link

dario-exads commented Sep 9, 2022

Is there no solution for this? Or other workaround than creating a new frame?

@sebastiencs
Copy link
Owner

It should be fixed with 4dc0d98, could someone confirm ?

@dario-exads
Copy link

@sebastiencs Taking a look during the day. I'll report back 👍

@dario-exads
Copy link

Seem to be happening still:

Company: frontend company-box-frontend error "Wrong type argument: window-live-p, nil" on command show
Although it says window-live-p, rather than frame-live-p.

Running latest release:

company-box 20220910.1354 installed Company front-end with icons

@sebastiencs
Copy link
Owner

sebastiencs commented Sep 13, 2022

@dario-exads Can you please enable the debugger (with M-x toggle-debug-on-error) and reproduce the bug.
It will show a backtrace, can you share it here

@dario-exads
Copy link

@sebastiencs Done. I'll see if the error reproduces again. Yesterday I didn't encountered again after that first error 🤞 .

@dario-exads
Copy link

I faced the error again, I don't see the trace though:

Debug on Error enabled globally
Company: An error occurred in auto-begin
Company: frontend company-box-frontend error "Wrong type argument: window-live-p, nil" on command show

Am I missing something? I enabled debug on error with M-x toggle-debug-on-error but I just see the error message on the echo area.

In there any way I can see the source of this error?

@sebastiencs
Copy link
Owner

@dario-exads hmm weird, the backtrace should show up.
Did you close/restart emacs after that M-x toggle-debug-on-error ?

Instead of calling toggle-debug-on-error, you can set (setq debug-on-error t) in your init.el

@dario-exads
Copy link

I'll set debug-on-error variable on my init, just to be sure :)

@dario-exads
Copy link

dario-exads commented Sep 22, 2022

I haven't seen the issue so far, at least no that I remember. I'd consider this issue solved from my side.
Actually I found it again:

Company: An error occurred in auto-begin
Company: frontend company-box-frontend error "Wrong type argument: window-live-p, nil" on command show

There's no trace although I've the debug on error enabled :/

I'll double check but I think it happens (to me) when I have 2 (or more) frames open at the same time.

@dario-exads
Copy link

So, I don't see the error anymore but I also don't have completion. Definitely related to having two windows open.

@github-staff github-staff deleted a comment from apocanow1 Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants