Description

Loading a blueprint that uses the GetOptions meta data causes an ensure

Steps to Reproduce
  1. Open UE4Editor.exe
  2. Create a Third Person template project
  3. Select File > New C++ Class
  4. Select Actor > Next > Create Class
  5. Add the following code to MyActor.h line 26
    • 	UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (GetOptions = "TestFunctionName"))
      		FName TestVariableName;
      
      	UPROPERTY(EditAnywhere, BlueprintReadWrite, meta = (GetOptions = "TestFunctionStr"))
      		FString TestVariableString;
      
      	UFUNCTION()
      		TArray<FString> TestFunctionStr() { return { TEXT("Test A"), TEXT("Test B"), TEXT("Test B") }; }
      
      	UFUNCTION()
      		TArray<FName> TestFunctionName() { return { FName(TEXT("NAME A")), FName(TEXT("NAME B")), FName(TEXT("NAME B")) }; }
      
  6. Compile the template project
  7. Select Add New > Blueprint class in the Content Browser
  8. Select the MyActor class in the All Classes section then click the Select button
  9. Save the new blueprint
  10. Restart UE4Editor
  11. Open the new blueprint
  12. Open the Output Log

RESULT:
An Ensure appears in the output log

Callstack
LogOutputDevice: Error: Ensure condition failed: bSuccess [File:D:/Build/++UE4+Licensee/Sync/Engine/Source/Editor/PropertyEditor/Private/PropertyHandleImpl.cpp] [Line: 2890]
LogOutputDevice: Error: 
LogOutputDevice: Error: Stack: 
LogOutputDevice: Error: [Callstack] 0x00007ffb33659c09 UE4Editor-PropertyEditor.dll!<lambda_b956b088a8411da4d85578c9bbb3cfde>::operator()() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\PropertyHandleImpl.cpp:2890]
LogOutputDevice: Error: [Callstack] 0x00007ffb333ddcd2 UE4Editor-PropertyEditor.dll!FPropertyHandleBase::GeneratePossibleValues() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\PropertyHandleImpl.cpp:2890]
LogOutputDevice: Error: [Callstack] 0x00007ffb33520c47 UE4Editor-PropertyEditor.dll!SPropertyEditorCombo::GenerateComboBoxStrings() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\UserInterface\PropertyEditor\SPropertyEditorCombo.cpp:139]
LogOutputDevice: Error: [Callstack] 0x00007ffb334d8733 UE4Editor-PropertyEditor.dll!SPropertyEditorCombo::Construct() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\UserInterface\PropertyEditor\SPropertyEditorCombo.cpp:86]
LogOutputDevice: Error: [Callstack] 0x00007ffb33337662 UE4Editor-PropertyEditor.dll!TDecl<SPropertyEditorCombo,RequiredArgs::T1RequiredArgs<TSharedRef<FPropertyEditor,0> const &> >::operator<<=() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\SlateCore\Public\Widgets\DeclarativeSyntaxSupport.h:1122]
LogOutputDevice: Error: [Callstack] 0x00007ffb333a4723 UE4Editor-PropertyEditor.dll!SPropertyValueWidget::ConstructPropertyEditorWidget() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\PropertyEditorHelpers.cpp:284]
LogOutputDevice: Error: [Callstack] 0x00007ffb3339f595 UE4Editor-PropertyEditor.dll!SPropertyValueWidget::Construct() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\PropertyEditorHelpers.cpp:81]
LogOutputDevice: Error: [Callstack] 0x00007ffb33218c03 UE4Editor-PropertyEditor.dll!TDecl<SPropertyValueWidget,RequiredArgs::T2RequiredArgs<TSharedPtr<FPropertyEditor,0> const &,TSharedPtr<IPropertyUtilities,0> &&> >::operator<<=() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\SlateCore\Public\Widgets\DeclarativeSyntaxSupport.h:1122]
LogOutputDevice: Error: [Callstack] 0x00007ffb332828b4 UE4Editor-PropertyEditor.dll!FDetailPropertyRow::MakeValueWidget() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailPropertyRow.cpp:794]
LogOutputDevice: Error: [Callstack] 0x00007ffb33274120 UE4Editor-PropertyEditor.dll!FDetailPropertyRow::GetWidgetRow() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailPropertyRow.cpp:202]
LogOutputDevice: Error: [Callstack] 0x00007ffb33273fef UE4Editor-PropertyEditor.dll!FDetailLayoutCustomization::GetWidgetRow() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailCategoryBuilderImpl.cpp:100]
LogOutputDevice: Error: [Callstack] 0x00007ffb334c9799 UE4Editor-PropertyEditor.dll!SDetailSingleItemRow::Construct() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\SDetailSingleItemRow.cpp:282]
LogOutputDevice: Error: [Callstack] 0x00007ffb33216507 UE4Editor-PropertyEditor.dll!TDecl<SDetailSingleItemRow,RequiredArgs::T4RequiredArgs<FDetailLayoutCustomization * &&,bool &&,TSharedRef<FDetailItemNode,0> &&,TSharedRef<STableViewBase,0> const &> >::operator<<=() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\SlateCore\Public\Widgets\DeclarativeSyntaxSupport.h:1122]
LogOutputDevice: Error: [Callstack] 0x00007ffb3325d960 UE4Editor-PropertyEditor.dll!FDetailItemNode::GenerateWidgetForTableView() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\DetailItemNode.cpp:234]
LogOutputDevice: Error: [Callstack] 0x00007ffb3354d583 UE4Editor-PropertyEditor.dll!SDetailsViewBase::OnGenerateRowForDetailTree() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Editor\PropertyEditor\Private\SDetailsViewBase.cpp:41]
LogOutputDevice: Error: [Callstack] 0x00007ffb3350f4eb UE4Editor-PropertyEditor.dll!TBaseSPMethodDelegateInstance<0,SDetailsView,0,TSharedRef<ITableRow,0> __cdecl(TSharedRef<FDetailTreeNode,0>,TSharedRef<STableViewBase,0> const &)>::Execute() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Core\Public\Delegates\DelegateInstancesImpl.h:298]
LogOutputDevice: Error: [Callstack] 0x00007ffb33522f82 UE4Editor-PropertyEditor.dll!STreeView<TSharedRef<FDetailTreeNode,0> >::GenerateNewWidget() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Public\Widgets\Views\STreeView.h:679]
LogOutputDevice: Error: [Callstack] 0x00007ffb335247ef UE4Editor-PropertyEditor.dll!SListView<TSharedRef<FDetailTreeNode,0> >::GenerateWidgetForItem() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Public\Widgets\Views\SListView.h:1141]
LogOutputDevice: Error: [Callstack] 0x00007ffb3356872b UE4Editor-PropertyEditor.dll!SListView<TSharedRef<FDetailTreeNode,0> >::ReGenerateItems() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Public\Widgets\Views\SListView.h:1050]
LogOutputDevice: Error: [Callstack] 0x00007ffb3c379bf3 UE4Editor-Slate.dll!STableViewBase::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Private\Widgets\Views\STableViewBase.cpp:272]
LogOutputDevice: Error: [Callstack] 0x00007ffb3358097b UE4Editor-PropertyEditor.dll!STreeView<TSharedRef<FDetailTreeNode,0> >::Tick() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\Slate\Public\Widgets\Views\STreeView.h:579]
LogOutputDevice: Error: [Callstack] 0x00007ffb3bd57031 UE4Editor-SlateCore.dll!SWidget::Paint() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SWidget.cpp:1221]
LogOutputDevice: Error: [Callstack] 0x00007ffb3bd55915 UE4Editor-SlateCore.dll!SOverlay::OnPaint() [D:\Build\++UE4+Licensee\Sync\Engine\Source\Runtime\SlateCore\Private\Widgets\SOverlay.cpp:95]

Have Comments or More Details?

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

3
Login to Vote

Fixed
ComponentUE - Gameplay
Affects Versions4.25
Target Fix4.26
Fix Commit13286876
Main Commit13286876
CreatedMay 6, 2020
ResolvedOct 22, 2020
UpdatedApr 28, 2021
View Jira Issue