Developer Notes

"World" does not exist when the editor launches, you need to check World before accessing it.

Description

[Link Removed]

In XCode, place a call to spawn a custom Actor in the game mode constructor instead of BeginPlay.

This apparently causes the editor

to get into an endless crash loop unless the Build, Binaries and Intermediate directories are deleted.

Steps to Reproduce

In XCode, place a call to spawn a custom Actor in the game mode constructor instead of BeginPlay.

Callstack
UE4Editor-BirdGame-2008.dylib!TMulticastScriptDelegate<FWeakObjectPtr>::AddInternal()
UE4Editor-BirdGame-2008.dylib!void TBaseDynamicMulticastDelegate<FWeakObjectPtr, void, AActor*, UPrimitiveComponent*, int, bool, FHitResult const&>::__Internal_AddDynamic<ABirdGameCharacter>()
UE4Editor-Engine.dylib!AWorldSettings::NotifyBeginPlay()
UE4Editor-Engine.dylib!AGameMode::HandleMatchHasStarted()
UE4Editor-Engine.dylib!AGameMode::SetMatchState()
UE4Editor-Engine.dylib!UWorld::BeginPlay()
UE4Editor-Engine.dylib!UGameInstance::StartPIEGameInstance()
UE4Editor-UnrealEd.dylib!UEditorEngine::CreatePIEGameInstance()
UE4Editor-UnrealEd.dylib!UEditorEngine::PlayInEditor()
UE4Editor-UnrealEd.dylib!UEditorEngine::StartQueuedPlayMapRequest()
UE4Editor-UnrealEd.dylib!UEditorEngine::Tick()
UE4Editor-UnrealEd.dylib!UUnrealEdEngine::Tick()
UE4Editor!FEngineLoop::Tick()
UE4Editor!GuardedMain()
UE4Editor!<Unknown>
UE4Editor-Core.dylib!<Unknown>
Foundation!Unknown()
libsystem_pthread.dylib!<Unknown>
libsystem_pthread.dylib!<Unknown>
libsystem_pthread.dylib!<Unknown>

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Won't Fix
ComponentUE - Gameplay
Affects Versions4.10
CreatedMar 1, 2016
ResolvedMar 7, 2016
UpdatedJul 14, 2021