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 on iOS build when pass struct as reference #724

Open
MinhThaiNhat opened this issue Sep 20, 2024 · 0 comments
Open

Crash on iOS build when pass struct as reference #724

MinhThaiNhat opened this issue Sep 20, 2024 · 0 comments

Comments

@MinhThaiNhat
Copy link

I got crash on iOS only when pass struct as reference to UnLua. It work normally on Window and Android.
Here is the method override by UnLua:

UFUNCTION(BlueprintNativeEvent)
bool K2_GetCustomSubAbilityInfo(const FName& AbilityName, FSubSkillInfo& SubAbilityInfo);

Struct FSubSkillInfo has some TMap, TArray, and some Object.
Crash when I launch game:

(11146,0x16c867000) malloc: Double free of object 0x152e22b90
libsystem_kernel +0x000c42c __pthread_kill
Game +0x47a60c0 FMemory::Free
Game +0x1c9fe54 FSubSkillInfo::~FSubSkillInfo

Look like memory is corrupted when pass to UnLua, do you have any idea about this.

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