leinlin / Miku-LuaProfiler

Apache License 2.0
1.91k stars 439 forks source link

多次运行崩溃 #48

Open owllyi opened 9 months ago

owllyi commented 9 months ago

环境: Unity 2021.3.11f xLua Lua 5.4 LuaProfiler 最新版本 Unity设置的是 Enter Play Mode,不开启 Reload Domain,不开启Reload Scene 第一次运行正常,关闭Play模式,再次运行,必然崩溃 求解问题如何解决哈~~~

崩溃堆栈:

Received signal SIGSEGV
Obtained 44 stack frames
0x00007ffa88aafa12 (xlua) lua_setcstacklimit
0x00007ffa88aac635 (xlua) luaopen_os
0x00007ffa88a9cacc (xlua) lua_setlocal
0x00007ffa88a9d93c (xlua) lua_setlocal
0x00007ffa88a9d7c4 (xlua) lua_setlocal
0x00007ffa88a91e43 (xlua) lua_load
0x00007ffa88a940b9 (xlua) luaL_loadbufferx
0x00007ffa88ac5cb5 (xlua) xluaL_loadbuffer
0x000001f5022dba86 (Mono JIT Code) (wrapper managed-to-native) XLua.LuaDLL.Lua:xluaL_loadbuffer (intptr,byte[],int,string)
0x000001f5022daf4b (Mono JIT Code) [LuaEnv.cs:262] XLua.LuaEnv:DoString (byte[],string,XLua.LuaTable) 
0x000001f5022dabf3 (Mono JIT Code) [LuaEnv.cs:290] XLua.LuaEnv:DoString (string,string,XLua.LuaTable) 
0x000001f5ad758cdb (Mono JIT Code) [LuaComponent.cs:86] Game.LuaComponent:PreLoadAll () 
0x000001f5ad758aa3 (Mono JIT Code) [LuaComponent.cs:77] Game.LuaComponent:LoadAll () 
0x000001f5ad7499fb (Mono JIT Code) [ProcedurePreload.cs:120] Game.ProcedurePreload:PreloadResources () 
0x000001f5ad74553b (Mono JIT Code) [ProcedurePreload.cs:58] Game.ProcedurePreload:OnEnter 
0x000001f5ad7442b3 (Mono JIT Code) [ProcedureSplash.cs:35] Game.ProcedureSplash:OnUpdate 
0x000001f5024146d2 (Mono JIT Code) [Fsm.cs:545] GameFramework.Fsm.Fsm`1<T_REF>:Update (single,single) 
0x000001f502413512 (Mono JIT Code) [FsmManager.cs:78] GameFramework.Fsm.FsmManager:Update (single,single) 
0x000001f5023ff27f (Mono JIT Code) [GameFrameworkEntry.cs:29] GameFramework.GameFrameworkEntry:Update (single,single) 
0x000001f5023feff3 (Mono JIT Code) [BaseComponent.cs:231] UnityGameFramework.Runtime.BaseComponent:Update () 
0x000001f5553f3078 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)
0x00007ffa893dfe24 (mono-2.0-bdwgc) [mini-runtime.c:3445] mono_jit_runtime_invoke 
0x00007ffa8931e764 (mono-2.0-bdwgc) [object.c:3066] do_runtime_invoke 
0x00007ffa8931e8fc (mono-2.0-bdwgc) [object.c:3113] mono_runtime_invoke 
0x00007ff6b4828164 (Unity) scripting_method_invoke
0x00007ff6b4807a04 (Unity) ScriptingInvocation::Invoke
0x00007ff6b47f0ce4 (Unity) MonoBehaviour::CallMethodIfAvailable
0x00007ff6b47f0dd2 (Unity) MonoBehaviour::CallUpdateMethod
0x00007ff6b42e1ed8 (Unity) BaseBehaviourManager::CommonUpdate<BehaviourManager>
0x00007ff6b42e94ba (Unity) BehaviourManager::Update
0x00007ff6b44fb76d (Unity) `InitPlayerLoopCallbacks'::`2'::UpdateScriptRunBehaviourUpdateRegistrator::Forward
0x00007ff6b44e1dda (Unity) ExecutePlayerLoop
0x00007ff6b44e1f66 (Unity) ExecutePlayerLoop
0x00007ff6b44e8009 (Unity) PlayerLoop
0x00007ff6b5433d9f (Unity) PlayerLoopController::UpdateScene
0x00007ff6b543203f (Unity) Application::TickTimer
0x00007ff6b588181a (Unity) MainMessageLoop
0x00007ff6b58860cb (Unity) WinMain
0x00007ff6b6c2533e (Unity) __scrt_common_main_seh
0x00007ffb58a07344 (KERNEL32) BaseThreadInitThunk
0x00007ffb593426b1 (ntdll) RtlUserThreadStart
owllyi commented 9 months ago

关闭Enter Play Mode就好了,看起来是不兼容Enter Play Mode。