-
Notifications
You must be signed in to change notification settings - Fork 203
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
bug: crash on tab switch with multiwindow enabled #522
Comments
I have reproduced this segfault and here is the stacktrace:
|
And here is more detailed stacktrace from neovim debug build,
|
Minimal reproducing config:
It appears that the lazy plugin calls setup() twice: initially with multi-window support disabled, and then with it enabled. This was unexpected and likely leads to confusing event sequences, potentially causing Neovim to crash. |
It seems my PR fixes this problem unreliably. There's a chance that the creation of a window won't be deferred, allowing the same issue to occur. |
Description
@apollo1321 I am experiencing a crash with the
nvim-treesitter-context
feature when using Neovim with themultiwindow
option enabled.I was unable to reproduce the bug with the minimal configuration. Additionally, Neovim does not output any messages upon crashing that could help identify the cause of the crash.
Neovim version
NVIM v0.10.2 Build type: RelWithDebInfo LuaJIT 2.1.1727870382
Expected behavior
I expect to be able to close the current tab and return to the previous tab without any issues, and the context of the file should be displayed correctly.
Actual behavior
Upon returning to the previous tab after closing a new tab, Neovim crashes to the shell without redrawing the UI and does not generate any error logs.
Minimal config
Steps to reproduce
My configuration:
https://github.com/Frestein/NvChan
lazygit
, where the context should be displayed.zz
or:tabclose
).The text was updated successfully, but these errors were encountered: