hismailbulut / Neoray

Simple and lightweight GUI client for Neovim
MIT License
148 stars 5 forks source link

Neoray process tree doesn't exit on closing the GUI #27

Open andis-sprinkis opened 3 years ago

andis-sprinkis commented 3 years ago

Please complete the following information:

Describe the bug Occasionally when I close the GUI using X button on the right corner, Neoray process tree don't exit. In Task Manager after a while I notice multiple such Neoray such supposedly closed instances/process trees still running.

PROCEXP64_GllFhDde0f

Maybe it has something to do with those other processes running under Neovim, like conhost with coc.nvim Node server or fzf instance (from fzf.vim). I am also not entirely sure if isn't just Neovim issue.

Steps to reproduce

  1. Run Neoray
  2. Close it using the GUI X button
  3. Observe process still running

(Tricky to replicate, as it happens only on occasion. Program usually exits normally.)

Your neoray config in init.vim (Only the part that concerns neoray!)

vim.opt.guifont = 'CascadiaCodePL:h13'
vim.cmd([[
  NeoraySet KeyZoomIn <C-ScrollWheelUp>
  NeoraySet KeyZoomOut <C-ScrollWheelDown>
]])

Crash log if available (may be generated by neoray after crash)

Debug output (you can generate starting neoray with --verbose option)

hismailbulut commented 3 years ago

Sometimes it also happens to me, but window doesn't close and delays at least 2-3 minutes to shutdown. I don't know are they same issue but when it happens to me neoray just still working and waiting for neovim. I can understand this from cursor blinking but it happens very rarely as you said and debugging is impossible at this time. I am going to try to write some stuff for dumping some debug information when delay happens. Thanks for detailed information.

andis-sprinkis commented 3 years ago

Forgot to specify that in my case the window actually closes, but process remains running.