Tencent / UnLua

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

使用ADD_SHARED_PTR_CONSTRUCTOR后启动直接崩溃 #366

Open codinglh opened 2 years ago

codinglh commented 2 years ago

BEGIN_EXPORT_CLASS(FXX) ADD_SHARED_PTR_CONSTRUCTOR(ESPMode::NotThreadSafe) END_EXPORT_CLASS(FXX) IMPLEMENT_EXPORTED_CLASS(FXX)

崩溃位置 LuaCore TryToSetMetatable函数, 由以下这次修改引起

Revision: 532424a4df79865cc44c6008930f51c64dc6e3eb Author: hernanzhou hernanzhou@tencent.com Date: 7/2/2021 10:34:21 PM Message: UnLua 2.0 Preview: 1. 适配并更新到Lua5.4.2; 2. 修复若干bugs; 3. 调整了UObject Lua Ref 的释放机制; 4.支持了RF_NeedPostLoad标记UObject的绑定

xuyanghuang-tencent commented 2 years ago

@codinglh 我试了下貌似没有重现,有更详细点的崩溃堆栈或者其他信息么?