neovim / neovim

Vim-fork focused on extensibility and usability
https://neovim.io
Other
83.28k stars 5.7k forks source link

vim/_init_packages.lua: cannot load incompatible bytecode #23735

Closed tiankaixie closed 1 year ago

tiankaixie commented 1 year ago

Problem

I was using nvim for a couple of months and it works normally, but I got this error recently when I was trying to open nvim:

vim/_init_packages.lua: cannot load incompatible bytecode
stack traceback:
        [C]: at 0x562d28d0b13c
        [C]: at 0x7f6886674370
E970: Failed to initialize builtin lua modules

I was not sure if this is related to my system upgrade. I upgraded Ubuntu from 22.04 to 23.04.

I searched the related problem but they did not help. I figure there is something to do with this upgrade since vim did not work either. I was wondering if there was a way to work around it instead of reinstalling the system.

Steps to reproduce

nvim

Expected behavior

open normally

Neovim version (nvim -v)

0.8

Vim (not Nvim) behaves the same?

yes

Operating system/version

Ubuntu 23.04

Terminal name/version

xterm-3.1

$TERM environment variable

xterm-256color

Installation

apt

clason commented 1 year ago

Sorry, but that's not nearly enough to go on. Try with nvim --clean, or reinstall Neovim (which is at 0.9 now)

markwu commented 8 months ago

I have the same error message when I use the neovim unstable PPA (maintained by neovim team) on ubuntu 22.04 within WSL2. No idea what's going on. It works several week ago.

clason commented 8 months ago

neovim unstable PPA (maintained by neovim team)

It's not, though.

markwu commented 8 months ago

neovim unstable PPA (maintained by neovim team)

It's not, though.

What kind of information you need?

It's my ldd

~$ ldd $(which nvim)
linux-vdso.so.1 (0x00007ffdee7d4000)                                                                                                                                       
libluajit-5.1.so.2 => /lib/x86_64-linux-gnu/libluajit-5.1.so.2 (0x00007ff8b43b3000)                                                                                        
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff8b42cc000)                                                                                                          
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff8b40a3000)                                                                                                          
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff8b4083000)                                                                                                  
/lib64/ld-linux-x86-64.so.2 (0x00007ff8b4957000)

My libluajit package

~$ sudo apt-cache show libluajit-5.1-
libluajit-5.1-2       libluajit-5.1-common  libluajit-5.1-dev
markwu@markwu-windows:~$ sudo apt-cache show libluajit-5.1-2
Package: libluajit-5.1-2
Source: luajit
Priority: optional
Section: interpreters
Installed-Size: 604
Maintainer: Debian Lua Team <pkg-lua-devel@lists.alioth.debian.org>
Architecture: amd64
Version: 2.1.0+openresty20231117-1+ubuntu22.04.1+deb.sury.org+1
Replaces: libluajit2-5.1-2
Provides: libluajit-5.1.so.2
Depends: libluajit-5.1-common (= 2.1.0+openresty20231117-1+ubuntu22.04.1+deb.sury.org+1), libc6 (>= 2.34), libgcc-s1 (>= 3.3)
Conflicts: libluajit2-5.1-2
Filename: pool/main/l/luajit/libluajit-5.1-2_2.1.0+openresty20231117-1+ubuntu22.04.1+deb.sury.org+1_amd64.deb
Size: 276928
MD5sum: bba2c23deaef63e55f825e9a83271abe
SHA1: bc9066a3998da2b177c18c58f3b6e2d531a8f33e
SHA256: 3b208146f8fb4b1da28950a228cf7d0db6fde185cbbe52e04e53a393827854c8
Description-en: OpenResty-maintained branch of LuaJIT (shared objects)
 LuaJIT implements the full set of language features defined by Lua 5.1. The
 virtual machine (VM) is API- and ABI-compatible to the standard Lua interpreter
 and can be deployed as a drop-in replacement.
 .
 This package contains an embeddable version of LuaJIT that can be used as a
 replacement of the standard liblua-5.1 shared library.
Description-md5: 76292c71f1b59553fdcdfd14152c1b74
Multi-Arch: same
markwu commented 8 months ago

Neovim unstable PPA comes from here:

https://launchpad.net/~neovim-ppa/+archive/ubuntu/unstable

zeertzjq commented 8 months ago

Do not report problems with Neovim PPA on GitHub.

clason commented 8 months ago

Neovim unstable PPA comes from here:

This is not maintained by the Neovim team. We only maintain -- and support! -- the releases on https://github.com/neovim/neovim/releases.