Skip to content

崩溃:FClassRegistry::RegisterInternal 检查类型是否已经注册过的逻辑有BUG #772

Description

@beerduckreal
Image

此处检查 Type 内存地址是否已经在注册过的 Classes 中。

但在我某一时刻去 load 绑定了 lua 的 UClass 并创建对象时,发生了崩溃。猜测是因为内存地址复用的问题。

在 FClassRegistry::Unregister 中添加了下面的代码,做了条目移除就解决了。

Image

希望这就是问题所在。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions