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

Neovim crashes after updating #68

Open
ccidral opened this issue Oct 9, 2024 · 23 comments · Fixed by #629
Open

Neovim crashes after updating #68

ccidral opened this issue Oct 9, 2024 · 23 comments · Fixed by #629
Labels
bug Something isn't working fuzzy Filtering and sorting of completion items

Comments

@ccidral
Copy link

ccidral commented Oct 9, 2024

I was using v0.2.0, it was working fine until I updated to v0.2.1. After the update whenever I enter insert mode and then type . to get autocompletion, it crashes Neovim. Here's my configuration before the update:

return {
  "saghen/blink.cmp",
  lazy = false, -- lazy loading handled internally
  -- optional: provides snippets for the snippet source
  dependencies = "rafamadriz/friendly-snippets",

  -- use a release tag to download pre-built binaries
  version = "v0.*",
  -- OR build from source, requires nightly: https://rust-lang.github.io/rustup/concepts/channels.html#working-with-nightly-rust
  -- build = "cargo build --release",

  opts = {
    highlight = {
      -- sets the fallback highlight groups to nvim-cmp's highlight groups
      -- useful for when your theme doesn't support blink.cmp
      -- will be removed in a future release, assuming themes add support
      use_nvim_cmp_as_default = true,
    },
    -- set to 'mono' for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
    -- adjusts spacing to ensure icons are aligned
    -- nerd_font_variant = "normal",

    -- experimental auto-brackets support
    accept = { auto_brackets = { enabled = true } },

    -- experimental signature help support
    trigger = { signature_help = { enabled = false } },
  },
}

It stops crashing when I downgrade to v0.2.0 by setting version to v0.2.0 and then perform a Lazy update.

Some environment info:

Operating system: MacOS Sequoia 15.0

$ nvim --version
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1727870382
Run "nvim -V1 -v" for more info

Not sure if you need more information to help debugging, please let me know.

@scottmckendry
Copy link
Collaborator

@ccidral does this still happen on the latest release v0.3.0?

@ccidral
Copy link
Author

ccidral commented Oct 14, 2024

@ccidral does this still happen on the latest release v0.3.0?

Yes, I just updated from v0.2.0 to v0.3.0, the problem persists.

I'd like to add a few more details that I just noticed. Neovim crashes when I enter insert mode and then press any character (not just .). Even in an empty buffer it crashes like that. It doesn't crash if I edit the file in normal or visual modes.

If there's any other information I can provide, please let me know, I'm happy to help.

@yingzhu146
Copy link

Same issue, can confirm - entering InsertMode and typing any character crashes nvim - also on Sequoia, and nvim 10.1.

@Saghen
Copy link
Owner

Saghen commented Oct 14, 2024

Does reinstalling the plugin solve the issue for you?

@yingzhu146
Copy link

Oh boy, yep that solved it - could've tried that myself, sorry for the spam & thanks for the swift reply!

@ccidral
Copy link
Author

ccidral commented Oct 14, 2024

Does reinstalling the plugin solve the issue for you?

It does! Thank you, why didn't I think of that before?

@ccidral ccidral closed this as completed Oct 14, 2024
@Saghen
Copy link
Owner

Saghen commented Oct 14, 2024

Np! It sounds like there's an issue with the update logic so I'll keep this open until I can pin it down

@AnthonyPoschen
Copy link

@Saghen i just had this issue as well, uninstalling and reinstalling resolved the issue as suggested above, i hadn't updated in a while and the issue did occur immediately after updating all plugins.

NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1727870382
Run "nvim -V1 -v" for more info

MacOs Ventura 13.6.9

@Saghen
Copy link
Owner

Saghen commented Nov 25, 2024

If anyone finds a way to reliably reproduce this issue, please lmk!

@ccidral
Copy link
Author

ccidral commented Nov 25, 2024

@Saghen Perhaps one way to reproduce it would be to install an older version and then upgrade it to a version that we know causes the issue, for example from v0.2.0 to v0.2.1:

  1. uninstall it
  2. install version v0.2.0
  3. upgrade to version v0.2.1 or v0.3.0

I haven't tested this procedure but it kind of mimics the steps I took that led to the problem. I hope this helps.

@sverch
Copy link

sverch commented Dec 13, 2024

I had this issue as well:

$ nvim --version
NVIM v0.10.2
Build type: Release
LuaJIT 2.1.1713484068
Run "nvim -V1 -v" for more info

My version of blink.cmp is 0.7.6.

Reinstalling did fix it. Before it broke I tried to manually clone this repo in the plugin location (~/.local/share/nvim/lazy/blink.cmp) and it worked, then when I moved back the "old" repo that was broken before, it still worked. Maybe this points to some bad state being cached? I also downloaded this with bad wifi and cancelled the update part way through the first time I opened nvim.

@khaled4vokalz
Copy link

This re-installing solution is not working for me at all, reported #567

@khaled4vokalz
Copy link

khaled4vokalz commented Dec 15, 2024

okay, at least when I checkout the 0.6.2 version I don't get these bulky stack traces anymore that I shared in #567 . But I get error when I accept a suggestion. I could only make 0.5.1 to work...

image

@lost22git
Copy link

anyone know how to solve this problem?
it's still not working after reinstalling.

@Saghen
Copy link
Owner

Saghen commented Dec 17, 2024

What's your OS and cpu architecture? And what's the output of ls -l ~/.local/share/nvim/lazy/blink.cmp/target/release (assuming linux)?

@lost22git
Copy link

0600 3.3M libblink_cmp_fuzzy.so

I use it on termux, so maybe android?

@Saghen
Copy link
Owner

Saghen commented Dec 17, 2024

Take a look at #145 (comment), perhaps you need to update your Termux?

@lost22git
Copy link

@Saghen thanks, it works well now.

@krovuxdev
Copy link

@Saghen I just tried running cargo build --release, but I encountered an error due to the use of Rust's nightly version. However, I am using the stable version of Rust.
imagen

@krovuxdev
Copy link

However, it worked after I cleaned or deleted .cache/nvim and .local/share/nvim/{blink, lazy/blink.cmp} and ignored the build error.

@Saghen Saghen reopened this Dec 23, 2024
@aaronlifton
Copy link

This happened to me after updating to 0.8.1. Nvim would crash on InsertEnter. With LazyVim, cleaning and re-installing the plugin fixed the issue.

@surmish
Copy link

surmish commented Dec 23, 2024

I see this error (nightly neovim build):

Error executing vim.schedule lua callback: ...are/nvim/lazy/blink.cmp/lua/blink/cmp/sources/buffer.lua:50: loop or previous error loading module 'blink.cmp.fuzzy'
stack traceback:
        [C]: in function 'require'
        ...are/nvim/lazy/blink.cmp/lua/blink/cmp/sources/buffer.lua:50: in function 'run_sync'
        ...are/nvim/lazy/blink.cmp/lua/blink/cmp/sources/buffer.lua:100: in function <...are/nvim/lazy/blink.cmp/lua/blink/cmp/sources/buffer.lua:90>

Removed ~/.cache/nvim and ~/.local/share/nvim/lazy/blink.cmp and still see the same

Running ldd ~/.local/share/nvim/lazy/blink.cmp/target/release/libblink_cmp_fuzzy.so showed gblic incompatibility errors.

I ended up compiling libblink_cmp_fuzzy.so as follows:

cd $HOME/.local/share/nvim/lazy/blink.cmp
cargo build --release

This seemed to work as ldd libblink_cmp_fuzzy.so previously led to some glibc incompatibility errors.

@danielpost
Copy link

@Saghen as requested in #754, here's a link to a broken .local/share/nvim/lazy/blink.cmp folder. It would crash on entering insert mode and typing any character. Deleting the folder and having Lazy reinstall blink fixed the issue.

https://dropover.cloud/d75bf9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working fuzzy Filtering and sorting of completion items
Projects
None yet
Development

Successfully merging a pull request may close this issue.