You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce (include any configuration/script required to reproduce)
Compile otclient
Compile a lua module such as /modules/corelib/math.lua to bytecode using LATEST LuaJIT version
Run otclient and check otclient.log
Expected behaviour
Should run without an issue
Actual behaviour
Complains about incompatible bytecode and exits.
Environment
Windows 10 with Debian 12 WSL.
Modified OTClient version from 2-3 years ago. Never touched src/framework/luaengine/*.
Should be the latest version, 0.6.6.
The issue seems to have started happening after I upgraded all the software on the WSL one day about 6-9 months ago and likely LuaJIT was upgraded as well, never had this issue before and been using LuaJIT compilation for years.
I've also tried upgrading to the most recent LuaJIT (and all other) vcpkg libraries to no avail.
LuaJIT bytecode is not guaranteed to have compatibility between versions, even if it's just minor version differences, like for example LuaJIT 2.0.5 and 2.1.0. It should be generated & ran with identical versions or you are most likely going to get errors like this.
Your problem is probably here
Modified OTClient version from 2-3 years ago
might be linked with an older version, or your bytecode was generated with an older version
Steps to reproduce (include any configuration/script required to reproduce)
Expected behaviour
Should run without an issue
Actual behaviour
Complains about incompatible bytecode and exits.
Environment
Windows 10 with Debian 12 WSL.
Modified OTClient version from 2-3 years ago. Never touched src/framework/luaengine/*.
Should be the latest version, 0.6.6.
The issue seems to have started happening after I upgraded all the software on the WSL one day about 6-9 months ago and likely LuaJIT was upgraded as well, never had this issue before and been using LuaJIT compilation for years.
I've also tried upgrading to the most recent LuaJIT (and all other) vcpkg libraries to no avail.
This issue incidentally happened around the same time (9 months ago) neovim/neovim#18169
https://stackoverflow.com/questions/72875661/i-got-this-error-after-upgrading-neovim-to-version-0-7-2-2
The text was updated successfully, but these errors were encountered: