Lyra Warning When Dying During Weapon Fire

Summary

This warning is reproducible in an unmodified Lyra Starter Game project using Unreal Engine 5.8.1.

It occurs when a character dies while the weapon-fire ability is active or finishing. During ability teardown, GAS removes the following gameplay tag:

Event.Movement.WeaponFire

At that point, the associated ABP_Mannequin_Base animation instance has already been marked unreachable. The Ability System Component still invokes the delegate registered by FGameplayTagBlueprintPropertyMap, producing the warning:

LogAbilitySystem: Warning: FGameplayTagBlueprintPropertyMap::GameplayTagEventCallback called with corrupted RegisteredOwner or corrupted CachedOwner!

Environment

  • Project: Unmodified Lyra Starter Game
  • Play mode: PIE, Standalone
  • Experience: ShooterGame Elimination

What Type of Bug are you experiencing?

Gameplay

Steps to Reproduce

  1. Open the unmodified Lyra Starter Game.
  2. Start the ShooterGame Elimination experience in PIE using Standalone mode.
  3. Fire a weapon.
  4. Die while the weapon-fire ability or its montage is still active or finishing.
  5. Check the Output Log.

The warning may appear one or several times during the character teardown.

Expected Result

Gameplay tags should be removed during ability teardown without invoking a property-map callback against an animation instance that is already unreachable.

The property map should either be safely disconnected before the animation instance becomes invalid, or ignore callbacks whose cached owner is already being destroyed.

Observed Result

When the firing ability ends, GAS removes its loose gameplay tags:

GA_Weapon_Fire
→ ULyraGameplayAbility_RangedWeapon::EndAbility
→ ULyraGameplayAbility::EndAbility
→ UGameplayAbility::EndAbility
→ UAbilitySystemComponent::RemoveLooseGameplayTags
→ UAbilitySystemComponent::UpdateTagMap_Internal
→ FGameplayTagBlueprintPropertyMap::GameplayTagEventCallback

The callback receives:

Tag: Event.Movement.WeaponFire
NewCount: 0
RegisteredOwner: ABP_Mannequin_Base_C_0
CachedOwner: ABP_Mannequin_Base_C_0
Owner state: Unreachable / entering garbage collection

Although RegisteredOwner and CachedOwner reference the same animation instance, that object is no longer considered valid when the callback executes.

Affects Versions

5.8

Platform(s)

Windows

Additional Notes

The issue is not limited to a modified Lyra-derived project. It was reproduced directly in a clean, unmodified Lyra Starter Game installation.

No crash or visible gameplay failure was observed, but the warning indicates that the delegate and animation-instance lifetimes overlap incorrectly during character death and ability teardown.