Tencent / UnLua

A feature-rich, easy-learning and highly optimized Lua scripting plugin for UE.
Other
2.24k stars 614 forks source link

UE5.3 unlua 2.3.6 FDeadLoopCheck::FGuard::SetTimeout 中 sethook方法无法进入,看起来导致deadloopcheck失效 #694

Closed gamerguilu closed 7 months ago

gamerguilu commented 7 months ago

测试代码: local num = 1 function TestTable:Init() for i = 1, num do num = num + 20 end self:Init() end 看起来是Hook==nullptr,本地注释掉此判空语句可以正常进入deadloop的luaL_error,请问这样做会不会导致什么问题

gamerguilu commented 7 months ago

搞清楚了,是因为调试器占用了hook,此处判断是给调试器让出hook位