Neoray icon indicating copy to clipboard operation
Neoray copied to clipboard

Neoray process tree doesn't exit on closing the GUI

Open andis-sprinkis opened this issue 3 years ago • 2 comments

Please complete the following information:

  • OS or distro: Windows 10 x64
  • neoray version: 0.1.1 and probably all previous ones

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)

andis-sprinkis avatar Nov 18 '21 18:11 andis-sprinkis

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.

hismailbulut avatar Nov 19 '21 20:11 hismailbulut

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

andis-sprinkis avatar Nov 20 '21 15:11 andis-sprinkis