Closed nenikitov closed 1 year ago
Can you figure out which handler is causing the leak?
Memory leak is still present after removing all handlers
return {
"lewis6991/satellite.nvim",
config = function()
require("satellite").setup {
handlers = {
search = { enable = false },
diagnostic = { enable = false },
gitsigns = { enable = false },
marks = { enable = false }
}
}
end,
}
Before scrolling:
After scrolling:
Forgot to mention, here is the output of nvim --version
(I also updated the issue)
NVIM v0.9.0-dev-873+g4b9bb3a184
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/cc -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wdouble-promotion -Wmissing-noreturn -Wmissing-format-attribute -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fno-common -fdiagnostics-color=always -fstack-protector-strong -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_TS_HAS_SET_MATCH_LIMIT -DNVIM_TS_HAS_SET_ALLOCATOR -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DMIN_LOG_LEVEL=3 -DNVIM_UNIBI_HAS_VAR_FROM -I/usr/include/luajit-2.1 -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/usr/include -I/home/nenikitov/.cache/yay/neovim-git/src/build/src/nvim/auto -I/home/nenikitov/.cache/yay/neovim-git/src/build/include -I/home/nenikitov/.cache/yay/neovim-git/src/build/cmake.config -I/home/nenikitov/.cache/yay/neovim-git/src/neovim/src -I/usr/include -I/usr/include -I/usr/include
Compiled by nenikitov
Features: +acl +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/share/nvim"
Run :checkhealth for more info
Thanks for the report. #41 should fix a leak. Can you check?
I don't think it helped with my memory leak:
If it helps, running :SatelliteDisable
and :SatelliteEnable
resets the memory usage
That's not the right commit. It needs to be 385e67fc9942b6ed87086c700c627b581ed583d4
Hello,
I didn't notice that the fix is on a separate branch. After updating to the right commit:
It seems like the memory leak is fixed (here is the memory usage after scrolling):
Thank you for the fix
Describe the bug
To Reproduce Steps to reproduce the behavior:
j
andk
, but will be slowerExpected behavior
Screenshots Note tested with a file with 64 lines. Scrolled up and down with mouse wheel. Note the
MemB
of the 2nd process.satellite.nvim
satellite.nvim
Additional context
packer.nvim
andlazy.nvim
Output of
nvim --version