Skip to content

Neovim crashes after updating #68

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

Closed
ccidral opened this issue Oct 9, 2024 · 36 comments · Fixed by #629
Closed

Neovim crashes after updating #68

ccidral opened this issue Oct 9, 2024 · 36 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

Note

Solution is to reinstall the plugin by running rm -rf ~/.local/share/nvim/lazy/blink.cmp

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

This comment was marked as off-topic.

@khaled4vokalz

This comment was marked as off-topic.

This was referenced Dec 21, 2024
@krovuxdev

This comment was marked as off-topic.

@krovuxdev

This comment was marked as off-topic.

@Saghen Saghen reopened this Dec 23, 2024
@aaronlifton

This comment was marked as duplicate.

@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 clean
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

@Saghen
Copy link
Owner

Saghen commented Dec 31, 2024

@danielpost Thanks! Do you mind providing the working .local/share/nvim/lazy/blink.cmp folder so I can compare the two? I can't figure out what's wrong from the linked folder

@iduuck

This comment was marked as duplicate.

@bellini666

This comment was marked as duplicate.

@mantoni
Copy link

mantoni commented Jan 2, 2025

Same issue twice after updating. Weirdly rebooting the machine fixed it for me. MacBook Air M1, latest OS.

@olrtg
Copy link

olrtg commented Jan 2, 2025

@Saghen for me reinstalling did the trick, here's a zip of the plugin when it wasn't working: blink.cmp.zip.

@asilvadesigns

This comment was marked as duplicate.

@Saghen
Copy link
Owner

Saghen commented Jan 3, 2025

@olrtg Can you send the zip of the plugin now that it's working as well? I'd like to diff the two

@olrtg
Copy link

olrtg commented Jan 3, 2025

@Saghen sure thing! here's the working version blink.cmp.zip.

@Saghen
Copy link
Owner

Saghen commented Jan 3, 2025

Removing the __MACOSX and .git folders show that the folders are identical (besides the unused version.txt, left over from previous updates). I'm beginning to wonder if this could be a lazy.nvim bug somehow

diff --brief --recursive broken/ working/

@BillGoldenWater
Copy link

Same issue twice after updating. Weirdly rebooting the machine fixed it for me. MacBook Air M1, latest OS.

@Saghen for me reinstalling did the trick, here's a zip of the plugin when it wasn't working: blink.cmp.zip.

both reboot or re-download fix the issue, and the crash report says

Exception Type:        EXC_BAD_ACCESS (SIGKILL (Code Signature Invalid))
Exception Codes:       UNKNOWN_0x32 at 0x0000000119fd0000
Exception Codes:       0x0000000000000032, 0x0000000119fd0000

Termination Reason:    Namespace CODESIGNING, Code 2 Invalid Page

maybe it's something to do with https://developer.apple.com/documentation/security/updating-mac-software

@Saghen Saghen closed this as completed in 84e065b Jan 3, 2025
@Saghen
Copy link
Owner

Saghen commented Jan 3, 2025

@BillGoldenWater You my friend, are a hero

@Saghen Saghen unpinned this issue Jan 3, 2025
@jcstange
Copy link

jcstange commented Jan 4, 2025

Got today this same issue. Reinstalling blink fixed it

@BillGoldenWater
Copy link

Got today this same issue. Reinstalling blink fixed it

@jcstange which version do you update to?

could you please post your crash report?

  • can be found inside Console.app > Crash Reports > nvim

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.