Description

[Link Removed] you own this I believe, see the UDN for details about the leak. The UDN as screenshots of what functions they made to create the leak. 

 

I was unable to actually get this code path to get called with a function with a TMap return value, but it does get called every frame in Lyra in the anim BP ABP_Mannequin_Base

 

This leak is occuring because there is a call to `InitializeValue`, but no accompanying `DestroyValue` call for it.

 

// In PropertyAccess.cpp
template<typename PredicateType>
static void GetAccessAddress(void* InContainer, const FPropertyAccessLibrary& InLibrary, const FPropertyAccessIndirectionChain& InAccess, PredicateType InAddressFunction)
{
    ...

    // Init value
    check(Indirection.Function->GetReturnProperty());
    check(Indirection.Function->GetReturnProperty() == Indirection.Property.Get());
    Indirection.Property.Get()->InitializeValue(Address);   // <----------------- Call to InitalizeValue, which should be accompanied by a DestroyValue later on, but is not. 

... 
Steps to Reproduce

Have none POD property access in an animation blueprint which is evaluated by the faster PropertyAccess path. 

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-239046 in the post.

0
Login to Vote

Unresolved
ComponentUE - Anim - Runtime
Affects Versions5.6
Target Fix5.6
CreatedJan 15, 2025
UpdatedFeb 19, 2025
View Jira Issue