Description

This is a Regression. Tested in //UE5/Release-5.0 CL20979098 - "None" is not an option for the parent class and the "Reset this Property" is not initially there.

Crash occurs when selecting Reset this Property to Default Value in the Class Settings of a Child Animation Blueprint.

Steps to Reproduce
  1. Create or open any project
  2. Create an Animation Blueprint
  3. Create a Child Animation Blueprint of the new Animation blueprint by right clicking the Blueprint then selecting Create Child Blueprint Class
  4. Open the Child Animation Blueprint then select Class Settings
  5. Under Class Options next to Parent Class select the "Reset this Property to Default Value" arrow which will set the value to 'None'
    1. If the arrow is not available try setting the Parent Class to None by using the drop down menu
  6. Compile the Child Animation Blueprint

Expected Results:
The Parent Class can't be set to 'None' and the Reset arrow isn't available on a newly created Child Blueprint, or setting it to 'None' doesn't cause a crash.

Actual Results:
Editor Crashes

Callstack
Fatal error: [File:D:\build\++UE5\Sync\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 10] Cast of nullptr to AnimBlueprintGeneratedClass failed

UnrealEditor-CoreUObject!CastLogError(wchar_t const *,wchar_t const *) [Casts.cpp:11]
UnrealEditor-AnimGraph!FAnimBlueprintCompilerContext::FinishCompilingClass(UClass *) [AnimBlueprintCompiler.cpp:1419]
UnrealEditor-KismetCompiler!FKismetCompilerContext::CompileFunctions(EInternalCompilerFlags) [KismetCompiler.cpp:4903]
UnrealEditor-Kismet!FBlueprintCompilationManagerImpl::FlushCompilationQueueImpl(bool,TArray<UBlueprint *,TSizedDefaultAllocator<32> > *,TArray<UBlueprint *,TSizedDefaultAllocator<32> > *,FUObjectSerializeContext *) [BlueprintCompilationManager.cpp:1452]
UnrealEditor-Kismet!FBlueprintCompilationManagerImpl::CompileSynchronouslyImpl(FBPCompileRequestInternal const &) [BlueprintCompilationManager.cpp:269]
UnrealEditor-Kismet!FBlueprintCompilationManager::CompileSynchronously(FBPCompileRequest const &) [BlueprintCompilationManager.cpp:3294]
UnrealEditor-UnrealEd!7ffbce020000  + b79d6e
UnrealEditor-Kismet!FBlueprintEditor::Compile() [BlueprintEditor.cpp:4060]
UnrealEditor-Kismet!TBaseSPMethodDelegateInstance<0,FBlueprintEditor,1,void ,FDefaultDelegateUserPolicy>::ExecuteIfSafe() [DelegateInstancesImpl.h:312]
UnrealEditor-Slate!7ffbd5ea0000  + e0501
UnrealEditor-Slate!7ffbd5ea0000  + 1f0777
UnrealEditor-Slate!7ffbd5ea0000  + 1c8d44
UnrealEditor-Slate!7ffbd5ea0000  + 26ed56
UnrealEditor-Slate!7ffbd5ea0000  + 2948d3
UnrealEditor-Slate!7ffbd5ea0000  + 2aab8
UnrealEditor-Slate!7ffbd5ea0000  + fe2a
UnrealEditor-Slate!7ffbd5ea0000  + 764e3
UnrealEditor-Slate!7ffbd5ea0000  + 65113
UnrealEditor-Slate!7ffbd5ea0000  + 5adec
UnrealEditor-ApplicationCore!FWindowsApplication::ProcessDeferredMessage(FDeferredWindowsMessage const &) [WindowsApplication.cpp:2219]
UnrealEditor-ApplicationCore!FWindowsApplication::DeferMessage(TSharedPtr<FWindowsWindow,1> &,HWND__ *,unsigned int,unsigned __int64,__int64,int,int,unsigned int) [WindowsApplication.cpp:2726]
UnrealEditor-ApplicationCore!FWindowsApplication::ProcessMessage(HWND__ *,unsigned int,unsigned __int64,__int64) [WindowsApplication.cpp:1895]
UnrealEditor-ApplicationCore!FWindowsApplication::AppWndProc(HWND__ *,unsigned int,unsigned __int64,__int64) [WindowsApplication.cpp:925]
USER32!7ffc79350000  + e858
USER32!7ffc79350000  + e4ee
InkObj!7ffb9b790000  + e7e59
atlthunk!7ffc6d940000  + 1028
USER32!7ffc79350000  + e858
USER32!7ffc79350000  + e299
UnrealEditor-ApplicationCore!FWindowsPlatformApplicationMisc::PumpMessages(bool) [WindowsPlatformApplicationMisc.cpp:142]
UnrealEditor!7ff70f5d0000  + 7332
UnrealEditor!7ff70f5d0000  + 2279d
UnrealEditor!7ff70f5d0000  + 2288a
UnrealEditor!7ff70f5d0000  + 255a0
UnrealEditor!7ff70f5d0000  + 36ea4
UnrealEditor!7ff70f5d0000  + 3a216
KERNEL32!7ffc7a970000  + 17034
ntdll!7ffc7b2f0000  + 526a1

Have Comments or More Details?

There's no existing public thread on this issue, so head over to Questions & Answers just mention UE-168364 in the post.

0
Login to Vote

Fixed
ComponentUE - Anim - Runtime - Anim Blueprints
Affects Versions5.1
Target Fix5.2
Fix Commit23676479
Main Commit23676479
CreatedOct 26, 2022
ResolvedJan 13, 2023
UpdatedFeb 12, 2023