Description

When attempting to replace references of one blueprint with another a number of error message windows pop up ([Link Removed]) and the editor will crash.

This is a regression since it was working in 4.7.6 (with the same errors mentioned in [Link Removed]) but crashes in 4.8 Preview 4 from the launcher and Main promoted build CL 2548448.

Note: These references are preventing the object from being deleted:

External referencers of Blueprint /Game/Actor1.Actor1:
   BlueprintVariableNodeSpawner /Engine/Transient.BlueprintVariableNodeSpawner_2644 (1)
      0) ObjectProperty /Script/BlueprintGraph.BlueprintFieldNodeSpawner:Field
   BlueprintVariableNodeSpawner /Engine/Transient.BlueprintVariableNodeSpawner_2645 (1)
      0) ObjectProperty /Script/BlueprintGraph.BlueprintFieldNodeSpawner:Field
   BlueprintVariableNodeSpawner /Engine/Transient.BlueprintVariableNodeSpawner_2646 (1)
      0) ObjectProperty /Script/BlueprintGraph.BlueprintFieldNodeSpawner:Field
   BlueprintVariableNodeSpawner /Engine/Transient.BlueprintVariableNodeSpawner_2647 (1)
      0) ObjectProperty /Script/BlueprintGraph.BlueprintFieldNodeSpawner:Field
   K2Node_DynamicCast /Engine/Transient.PROTO_BP_Blueprint_0:UserConstructionScript.K2Node_DynamicCast_499 (1)
      0) ClassProperty /Script/BlueprintGraph.K2Node_DynamicCast:TargetType
   K2Node_ClassDynamicCast /Engine/Transient.PROTO_BP_Blueprint_0:UserConstructionScript.K2Node_ClassDynamicCast_495 (1)
      0) ClassProperty /Script/BlueprintGraph.K2Node_DynamicCast:TargetType

Shortest reachability from root to Blueprint /Game/Actor1.Actor1:
Blueprint /Game/Actor1.Actor1 [target] (standalone)

Crashreporter:
[Link Removed]

Steps to Reproduce

1. Open QA Game
2. Create 2 blueprints based on Actor
3. Add a Static Mesh component to both blueprints
4. Add instance of BlueprintA to the scene
5. Select both BlueprintA and BlueprintB in the content browser
6. Right click and select Asset Actions -> Replace References
7. In the pop up window choose the asset that was not placed in the level (BlueprintB) and click on Consolidate Assets
8. In the Delete Assets window click the Delete button

Result:
Critical Failure window pops up and editor crashes after clicking OK

Expected:
BlueprintA is deleted and replaced with BlueprintB

Callstack
MachineId:9FA88CA44B7C623122B0039D6C8BA1B0
EpicAccountId:c807849e05a0413d99e379f2802cae9c

Unknown exception - code 00000001 (first/second chance not available)

"Fatal error: [File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.8\Engine\Source\Runtime\CoreUObject\Private\UObject\GarbageCollection.cpp] [Line: 366] 
Invalid object in GC: 0x00000

KERNELBASE
UE4Editor_Core!FOutputDeviceWindowsError::Serialize() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor_Core!FOutputDevice::Logf__VA() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\misc\outputdevice.cpp:144]
UE4Editor_Core!FDebug::AssertFailed() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\misc\outputdevice.cpp:360]
UE4Editor_CoreUObject!FArchiveRealtimeGC::ProcessObjectArray() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\coreuobject\private\uobject\garbagecollection.cpp:803]
UE4Editor_CoreUObject!TGraphTask<FArchiveRealtimeGC::FGCTask>::ExecuteTask() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\public\async\taskgraphinterfaces.h:771]
UE4Editor_Core!FTaskThread::ProcessTasks() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\async\taskgraph.cpp:430]
UE4Editor_Core!FTaskThread::ProcessTasksUntilQuit() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\async\taskgraph.cpp:273]
UE4Editor_Core!FTaskThread::Run() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\async\taskgraph.cpp:564]
UE4Editor_Core!FRunnableThreadWin::Run() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:73]
UE4Editor_Core!FRunnableThreadWin::GuardedRun() [d:\buildfarm\buildmachine_++depot+ue4-releases+4.8\engine\source\runtime\core\private\windows\windowsrunnablethread.cpp:26]
kernel32
ntdll
Community References

Have Comments or More Details?

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

0
Login to Vote

Cannot Reproduce
ComponentUE - Gameplay - Blueprint
Affects Versions4.8
Target Fix4.13
Fix Commit2974882
Main Commit2985633
CreatedJun 1, 2015
ResolvedMay 12, 2016
UpdatedApr 27, 2018