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

Crash! It might be related to luaopen_os! Could you please help me check if it's an issue with NLua? If it's a user error, please point me in the right direction, as I'm completely lost on what I might have done wrong? #529

Open
fuliufuliu opened this issue May 14, 2024 · 0 comments

Comments

@fuliufuliu
Copy link

========== OUTPUTTING STACK TRACE ==================

0x00007FFE96D7EDAA (lua54) luaopen_os
0x00007FFE9228C378 (GameAssembly) [...\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\KeraLua.cpp:2777] Lua_Dispose_mA00570C3B7411A63D81E976F3F2B26B9F95D96B1
0x00007FFE92665B14 (GameAssembly) [...\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\NLua.cpp:13435] Lua_Dispose_mEEDE523254E0697B886775FB9F1FB96BF224B7C4
0x00007FFE92665FD4 (GameAssembly) [...\Library\Bee\artifacts\WinPlayerBuildProgram\il2cppOutput\cpp\NLua.cpp:13371] Lua_Finalize_m702783DB6AB8CB28084141320A04C0398514A9ED
0x00007FFE910FFA46 (GameAssembly) [C:\Program Files\Unity\Hub\Editor\2022.3.20f1c1\Editor\Data\il2cpp\libil2cpp\vm\Runtime.cpp:609] il2cpp::vm::Runtime::InvokeWithThrow
0x00007FFE910FF4F9 (GameAssembly) [C:\Program Files\Unity\Hub\Editor\2022.3.20f1c1\Editor\Data\il2cpp\libil2cpp\vm\Runtime.cpp:594] il2cpp::vm::Runtime::Invoke
0x00007FFE9112A06D (GameAssembly) [C:\Program Files\Unity\Hub\Editor\2022.3.20f1c1\Editor\Data\il2cpp\libil2cpp\gc\GarbageCollector.cpp:180] il2cpp::gc::GarbageCollector::RunFinalizer
0x00007FFE91177E48 (GameAssembly) [C:\Program Files\Unity\Hub\Editor\2022.3.20f1c1\Editor\Data\il2cpp\external\bdwgc\finalize.c:1318] GC_invoke_finalizers
0x00007FFE91129183 (GameAssembly) [C:\Program Files\Unity\Hub\Editor\2022.3.20f1c1\Editor\Data\il2cpp\libil2cpp\gc\GarbageCollector.cpp:106] il2cpp::gc::FinalizerThread
0x00007FFE910F6DC9 (GameAssembly) [C:\Program Files\Unity\Hub\Editor\2022.3.20f1c1\Editor\Data\il2cpp\libil2cpp\os\Thread.cpp:202] il2cpp::os::Thread::RunWrapper
0x00007FFE91155B83 (GameAssembly) [C:\Program Files\Unity\Hub\Editor\2022.3.20f1c1\Editor\Data\il2cpp\libil2cpp\os\Win32\ThreadImpl.cpp:30] il2cpp::os::ThreadStartWrapper
0x00007FFF559E257D (KERNEL32) BaseThreadInitThunk
0x00007FFF567EAA48 (ntdll) RtlUserThreadStart

The game had been running for about ten minutes before it crashed. At the time of the crash, I wasn't running any Lua code, but the Lua environment was still active. Lua objects are initialized when the game starts, and then several pieces of Lua initialization code are executed after entering the game world. Lua code is later called to run in this Lua environment during tasks or dialogues. Usually, there are no issues, and it runs to completion without crashing. However, for some unknown reason, it suddenly crashed. This same issue has occurred multiple times, and I haven't found any patterns so far.

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