You can reproduce this in LyraStarterGame
When you create a blueprint child of LyraPlayerState C++ and open it… boom the crash handler will report this:
line: 150
So I think the issue is here somewhere?
What to do to make it work in child BP?
GAS cannot be handle with a BP playerstate?
void ALyraPlayerState::PostInitializeComponents()
{
Super::PostInitializeComponents();
check(AbilitySystemComponent);
AbilitySystemComponent->InitAbilityActorInfo(this, GetPawn());
if (GetNetMode() != NM_Client)
{
AGameStateBase* GameState = GetWorld()->GetGameState();
check(GameState);
ULyraExperienceManagerComponent* ExperienceComponent = GameState->FindComponentByClass<ULyraExperienceManagerComponent>();
check(ExperienceComponent);
ExperienceComponent->CallOrRegister_OnExperienceLoaded(FOnLyraExperienceLoaded::FDelegate::CreateUObject(this, &ThisClass::OnExperienceLoaded));
}
}