From licensee:
We've recently encountered an issue where BeginPlay was called on an Actor while the World is being torn down. This seems to stem from flushing level streaming while it has levels that need to be made visible.
To repro this, you need a world with a lot of level instances and you could add "ensure(!GetWorld()->bIsTearingDown)" to BeginPlay of some of the actors to help catch it:
UnrealEditor-Engine.dll!AActor::DispatchBeginPlay(bool bFromLevelStreaming) Line 4115 C++ UnrealEditor-Engine.dll!ULevel::RouteActorInitialize(int NumActorsToProcess) Line 3382 C++ UnrealEditor-Engine.dll!UWorld::AddToWorld(ULevel * Level, const UE::Math::TTransform<double> & LevelTransform, bool bConsiderTimeLimit, FNetLevelVisibilityTransactionId TransactionId, ULevelStreaming * OwningLevelStreaming) Line 3018 C++ UnrealEditor-Engine.dll!ULevelStreaming::UpdateStreamingState(bool & bOutUpdateAgain, bool & bOutRedetermineTarget) Line 923 C++ [Inline Frame] UnrealEditor-Engine.dll!FStreamingLevelPrivateAccessor::UpdateStreamingState(ULevelStreaming *) Line 749 C++ UnrealEditor-Engine.dll!UWorld::UpdateLevelStreaming() Line 3897 C++ [Inline Frame] UnrealEditor-Engine.dll!UWorld::FlushLevelStreaming::__l2::<lambda_b56fe6bcc26432b93860da478b828a4f>::operator()() Line 4150 C++ UnrealEditor-Engine.dll!UWorld::FlushLevelStreaming(EFlushLevelStreamingType FlushType) Line 4166 C++ UnrealEditor-UnrealEd.dll!UEditorEngine::TeardownPlaySession(FWorldContext & PieWorldContext) Line 811 C++ UnrealEditor-UnrealEd.dll!UEditorEngine::EndPlayMap() Line 343 C++
How does TextureRenderTarget2D get TArray<uint8> type data?
Why does the REMOVE method of map container remove elements have memory leaks?
How to delete some elements correctly when deleting an array loop?
How do I set a material as a post-processing material?
UMG RichText not appear image when packaged
What is the difference between Camera and CineCamera?
What controls of umg have mouse wheel events in UE4.27?
How to assign a value to a member of UMG's UMaterialInterface pointer type in C++?
There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-198045 in the post.
0 |
Component | UE - World Creation - Worldbuilding Tools |
---|---|
Target Fix | 5.4 |
Created | Oct 16, 2023 |
---|---|
Resolved | Oct 17, 2023 |
Updated | Nov 3, 2023 |