pixelomer/Celeste-ARM64

Crash on boot for Everest: System.EntryPointNotFoundException: lua_newuserdata (Fedora 39 PRoot, Termux, Android)

pinoykrissmith opened this issue · 0 comments

Hello, I've been trying to install the Everest mod loader and no matter what version I try, it just won't work. However, stock Celeste works and perform well so its purely an Everest incompatibility with my setup. I've also applied the patch from this pull request Lastly, the liblua path I've symlinked to lib-arm64 is /usr/lib64/liblua-5.4.so. The full system output upon running the command is

CELESTE : 1.4.0.0
(02/06/2024 20:31:27) [Everest] [Info] [core] Booting Everest
(02/06/2024 20:31:27) [Everest] [Info] [core] AppDomain: Celeste.exe+Everest
(02/06/2024 20:31:27) [Everest] [Info] [core] VersionCelesteString: 1.4.0.0-fna [Everest: 4449-azure-ddba3]
(02/06/2024 20:31:27) [Everest] [Info] [core] SystemMemoryMB: 11170.480 MB
(02/06/2024 20:31:27) [Everest] [Warn] [discord-game-sdk] Could not initialize Discord Game SDK!
--------------------------------
System.DllNotFoundException: discord_game_sdk assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) Discord.Discord.DiscordCreate(uint,Discord.Discord/FFICreateParams&,intptr&)
  at Discord.Discord..ctor (System.Int64 clientId, System.UInt64 flags) [0x00309] in <9733023d404e48c79552a3c69cf9d84a>:0 
  at Celeste.Mod.Everest+DiscordSDK..ctor (Microsoft.Xna.Framework.Game game) [0x0002d] in <d7b2abb405ec4c97954549f0a02e4a41>:0 
TypeLoadException.TypeName: 
(02/06/2024 20:31:27) [Everest] [Info] [core] Registered code module Celeste.Mod.Core.CoreModule for module Everest 1.4449.0.
(02/06/2024 20:31:27) [Everest] [Info] [discord-game-sdk] Discord Game SDK disposed
(02/06/2024 20:31:27) [Everest] [Info] [core] Non-code module Celeste 1.4.0.0 registered.
(02/06/2024 20:31:27) [Everest] [Info] [core] Non-code module DialogCutscene 1.0.0 registered.
(02/06/2024 20:31:27) [Everest] [Info] [core] Non-code module UpdateChecker 1.0.2 registered.
(02/06/2024 20:31:27) [Everest] [Info] [core] Non-code module InfiniteSaves 1.0.0 registered.
(02/06/2024 20:31:27) [Everest] [Info] [core] Non-code module DebugRebind 1.0.0 registered.
(02/06/2024 20:31:27) [Everest] [Info] [core] Non-code module RebindPeriod 1.0.0 registered.
--------------------------------
Detailed exception log:
--------------------------------
System.EntryPointNotFoundException: lua_newuserdata assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) KeraLua.NativeMethods.lua_newuserdata(intptr,uintptr)
  at KeraLua.Lua.NewUserData (System.Int32 size) [0x0000d] in <204ca39321844d4aa352cdeb30482dc6>:0 
  at NLua.Extensions.LuaExtensions.NewUData (KeraLua.Lua state, System.Int32 val) [0x00010] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.ObjectTranslator.PushNewObject (KeraLua.Lua luaState, System.Object o, System.Int32 index, System.String metatable) [0x00135] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.ObjectTranslator.PushObject (KeraLua.Lua luaState, System.Object o, System.String metatable) [0x0007f] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.ObjectTranslator.Push (KeraLua.Lua luaState, System.Object o) [0x001dc] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00049] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.LuaFunction.Call (System.Object[] args) [0x0000c] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at Celeste.Mod.Everest+LuaLoader.Initialize () [0x00239] in <d7b2abb405ec4c97954549f0a02e4a41>:0 
  at Celeste.Mod.Everest.Boot () [0x004ca] in <d7b2abb405ec4c97954549f0a02e4a41>:0 
  at Celeste.Celeste..ctor () [0x0003e] in <d7b2abb405ec4c97954549f0a02e4a41>:0 
TypeLoadException.TypeName: 
System.EntryPointNotFoundException: lua_newuserdata assembly:<unknown assembly> type:<unknown type> member:(null)
  at (wrapper managed-to-native) KeraLua.NativeMethods.lua_newuserdata(intptr,uintptr)
  at KeraLua.Lua.NewUserData (System.Int32 size) [0x0000d] in <204ca39321844d4aa352cdeb30482dc6>:0 
  at NLua.Extensions.LuaExtensions.NewUData (KeraLua.Lua state, System.Int32 val) [0x00010] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.ObjectTranslator.PushNewObject (KeraLua.Lua luaState, System.Object o, System.Int32 index, System.String metatable) [0x00135] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.ObjectTranslator.PushObject (KeraLua.Lua luaState, System.Object o, System.String metatable) [0x0007f] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.ObjectTranslator.Push (KeraLua.Lua luaState, System.Object o) [0x001dc] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.Lua.CallFunction (System.Object function, System.Object[] args, System.Type[] returnTypes) [0x00049] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.Lua.CallFunction (System.Object function, System.Object[] args) [0x00000] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at NLua.LuaFunction.Call (System.Object[] args) [0x0000c] in <e0da1b86a6474d02885e72e8b1039256>:0 
  at Celeste.Mod.Everest+LuaLoader.Initialize () [0x00239] in <d7b2abb405ec4c97954549f0a02e4a41>:0 
  at Celeste.Mod.Everest.Boot () [0x004ca] in <d7b2abb405ec4c97954549f0a02e4a41>:0 
  at Celeste.Celeste..ctor () [0x0004b] in <d7b2abb405ec4c97954549f0a02e4a41>:0 
  at Celeste.Celeste.orig_Main (System.String[] args) [0x0012a] in <d7b2abb405ec4c97954549f0a02e4a41>:0 
TypeLoadException.TypeName: 
Failed to open the log!
Unloaded AppDomain Celeste.exe+Everest
Exiting Celeste process```