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

Error on LuaInterface #259

Open
erastod opened this issue Aug 17, 2023 · 0 comments
Open

Error on LuaInterface #259

erastod opened this issue Aug 17, 2023 · 0 comments

Comments

@erastod
Copy link

erastod commented Aug 17, 2023

After i updated my unity project to use arm64 for android I get some errors after trying to load some scenes.

LuaException: Object reference not set to an instance of an object stack traceback: [C]: in function 'SetIsLowMaterial' core/draw_part_render:9: in function '__delete' systool/baseclass:44: in function 'old_fun' editor/check_listen:41: in function 'DeleteMe' core/draw_part:58: in function '__delete' systool/baseclass:44: in function 'old_fun' editor/check_listen:41: in function 'DeleteMe' core/draw_obj:31: in function '__delete' systool/baseclass:44: in function 'old_fun' editor/check_listen:41: in function 'DeleteMe' ... game/scene/scene:327: in function 'DelateAllObj' game/scene/scene:202: in function '__delete' systool/baseclass:44: in function 'old_fun' editor/check_listen:41: in function 'DeleteMe' game/common/modules_controller:402: in function 'DeleteGameModule' game/common/modules_controller:28: in function '__delete' systool/baseclass:44: in function 'old_fun' editor/check_listen:41: in function 'DeleteMe' play:80: in function 'Stop' main:95: in function <main:91> ActorRenderWrap:SetIsLowMaterial(IntPtr) (at Assets/Game/Scripts/Lua/LuaBind/ActorRenderWrap.cs:46) LuaInterface.LuaDLL:lua_pcall(IntPtr, Int32, Int32, Int32) LuaInterface.LuaState:PCall(Int32, Int32) (at Assets/ToLua/ToLua/Core/LuaState.cs:753) LuaInterface.LuaFunction:PCall() (at Assets/ToLua/ToLua/Core/LuaFunction.cs:97) LuaInterface.LuaFunction:Call() (at Assets/ToLua/ToLua/Core/LuaFunction.cs:121) GameRoot:OnApplicationQuit() (at Assets/Game/Scripts/Boot/GameRoot.cs:428)

Other such as
`Load lua file failed: assets/game/luabundlejit/config/scenes/scene_0.lua.bytes, bundle is not existed.
LuaBundleLoader:ReadAssetBundleFile(String)
LuaInterface.ToLua:Loader(IntPtr)

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/Android/runtime/DebugBindings.gen.cpp Line: 51)

LuaException: ../Assets/Game/Lua/config/config_manager.lua:67: module 'config/scenes/scene_0' not found:
no field package.preload['config/scenes/scene_0']
no file './config/scenes/scene_0.lua'
no file '/usr/local/share/luajit-2.1.0-beta3/config/scenes/scene_0.lua'
no file '/usr/local/share/lua/5.1/config/scenes/scene_0.lua'
no file '/usr/local/share/lua/5.1/config/scenes/scene_0/init.lua'
no file './config/scenes/scene_0.so'
no file '/usr/local/lib/lua/5.1/config/scenes/scene_0.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
stack traceback:
[C]: in function 'require'
../Assets/Game/Lua/config/config_manager.lua:67: in function 'GetSceneConfig'
../Assets/Game/Lua/game/scene/scene_logic/base_scene_logic.lua:434: in function 'FindScenePathNode'
../Assets/Game/Lua/game/scene/scene_logic/base_scene_logic.lua:463: in function 'GetScenePath'
../Assets/Game/Lua/game/scene/scene_logic/base_scene_logic.lua:502: in function 'GetTargetScenePos'
../Assets/Game/Lua/game/guaji/guaji_ctrl.lua:1066: in functio
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant