Code Monkey home page Code Monkey logo

Comments (9)

zjhongxian avatar zjhongxian commented on June 6, 2024

它对应的类按道理应该是会被引用住的。请问下你们是否有强制GC了对应的UClass?

from sluaunreal.

zjhongxian avatar zjhongxian commented on June 6, 2024

它对应的类按道理应该是会被引用住的。请问下你们是否有强制GC了对应的UClass?

image

它所对应的类,正常使用下,不应该是被销毁了

from sluaunreal.

yish0000 avatar yish0000 commented on June 6, 2024

我们没有强制GC对应的UClass
我看是蓝图类对应的UClass以及其所属的UPackage都被销毁了,这种情况下UClass是怎么被引用的呢

from sluaunreal.

yish0000 avatar yish0000 commented on June 6, 2024

image
image
我通过这种修改,暂时不崩溃了

from sluaunreal.

yish0000 avatar yish0000 commented on June 6, 2024

image
有没有可能这里面Owner有可能不是UObject,可能Owner的Owner才是UObject

from sluaunreal.

zjhongxian avatar zjhongxian commented on June 6, 2024

image 有没有可能这里面Owner有可能不是UObject,可能Owner的Owner才是UObject

大概率是这个原因了,感谢反馈!估计是在你这种嵌套情况下,它的直接Owner是非UObject,导致AddRef出了问题。我明天抽空修复下。

from sluaunreal.

yfcyt avatar yfcyt commented on June 6, 2024

Describe the bug image image 上述native类派生的蓝图类实例化后,发生上述函数的调用时,产生的LuaArray构造时传入的FProperty是UFunction(OnEnterView)下所属的一个FProperty 假如发生GC的时候,蓝图类被GC,UFunction及其所属FProperty被销毁,此时LuaArray内的inner有可能变为野指针

Version 2.1.3

崩溃堆栈 image image

哈喽,想请教一下,你的那个FSmartVisionInfo是怎么定义的?如何才传到Lua中的?我有同样的一个需求,发现无法通过const TArray& 传递到lua层中

from sluaunreal.

yish0000 avatar yish0000 commented on June 6, 2024

就是定义的USTRUCT,没什么特别的

from sluaunreal.

yfcyt avatar yfcyt commented on June 6, 2024

就是定义的USTRUCT,没什么特别的

大佬有空帮我看看下面的问题吗?
#589

from sluaunreal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.