[4.6] Setting default value for a float as a function input crashes the Editor

Dear Friends at Epic,

I can’t set a default value for a new float variable that is part of an existing function, it crashes even if the input is not linked to anything.

#Repro

  1. Add a new float input to an already saved and existing function, I was doing in this in Player Controller
  2. expand the input parameters so you can pick a default value
  3. enter the number 1
  4. click away from the input field, so it tries to set the value
  5. crash happens here for me every time

#Log

[2014.12.09-03.30.52:730][580]Cmd: OBJ SAVEPACKAGE PACKAGE="/Game/BP/Core/PCBP" FILE="C:/Users//Documents/Unreal Projects/JoyMech/Content/BP/Core/PCBP.uasset" SILENT=true
[2014.12.09-03.30.52:937][580]LogSavePackage: Save=138.420151ms
[2014.12.09-03.30.52:938][580]LogSavePackage: Moving 'C:/Users//Documents/Unreal Projects/JoyMech/Saved/PCBPECF0422A4BA4F216C4B9E891E2E29A95.tmp' to 'C:/Users//Documents/Unreal Projects/JoyMech/Content/BP/Core/PCBP.uasset'
[2014.12.09-03.30.57:796][958]LogWindows:Error: Windows GetLastError: The operation completed successfully. (0)
[2014.12.09-03.30.57:909][958]LogCrashTracker: 


[2014.12.09-03.31.01:105][958]LogCrashTracker: 


[2014.12.09-03.31.01:105][958]LogWindows: === Critical error: ===
Assertion failed: IsValid() [File:E:\VictoryUE4\UnrealEngine-4.6\UnrealEngine\Engine\Source\Runtime\Core\Public\Templates\SharedPointer.h] [Line: 658] 



KERNELBASE.dll!UnknownFunction (0x000007fefd129e5d) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!FOutputDeviceWindowsError::Serialize() (0x000007fed7922bdd) + 0 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\private\windows\windowsplatformoutputdevices.cpp:95]
UE4Editor-Core.dll!FOutputDevice::Logf__VA() (0x000007fed77b60d8) + 159 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\private\misc\outputdevice.cpp:144]
UE4Editor-Core.dll!FDebug::AssertFailed() (0x000007fed7799172) + 62 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\private\misc\outputdevice.cpp:224]
UE4Editor-Kismet.dll!FBlueprintGraphArgumentLayout::OnArgDefaultValueCommitted() (0x000007fed054c8eb) + 56 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\editor\kismet\private\blueprintdetailscustomization.cpp:2000]
UE4Editor-Kismet.dll!TBaseSPMethodDelegateInstance<0,FBlueprintGraphArgumentLayout,0,TTypeWrapper<void> __cdecl(FText const & __ptr64,enum ETextCommit::Type)>::Execute() (0x000007fed05081c7) + 38 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:283]
UE4Editor-Kismet.dll!TBaseSPMethodDelegateInstance<0,FBlueprintGraphArgumentLayout,0,void __cdecl(FText const & __ptr64,enum ETextCommit::Type)>::ExecuteIfSafe() (0x000007fed050b587) + 14 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:381]
UE4Editor-Slate.dll!SEditableText::OnFocusLost() (0x000007fed48f0401) + 0 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\slate\private\widgets\input\seditabletext.cpp:1618]
UE4Editor-Slate.dll!FSlateApplication::SetUserFocus() (0x000007fed47a3f4a) + 18 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1984]
UE4Editor-Slate.dll!FSlateApplication::ClearKeyboardFocus() (0x000007fed474119d) + 33 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1846]
UE4Editor-Kismet.dll!SKismetInspector::ShowDetailsForObjects() (0x000007fed07b3978) + 0 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\editor\kismet\private\skismetinspector.cpp:305]
UE4Editor-Kismet.dll!FBlueprintEditor::FocusInspectorOnGraphSelection() (0x000007fed0512141) + 79 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\editor\kismet\private\blueprinteditor.cpp:1835]
UE4Editor-Kismet.dll!FBlueprintEditor::OnGraphEditorFocused() (0x000007fed05588eb) + 28 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\editor\kismet\private\blueprinteditor.cpp:2492]
UE4Editor-Kismet.dll!FGraphEditorSummoner::OnTabActivated() (0x000007fed0691354) + 76 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\editor\kismet\private\blueprinteditortabfactories.cpp:25]
UE4Editor-Kismet.dll!FDocumentTracker::OnActiveTabChanged() (0x000007fed0817004) + 69 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\editor\kismet\private\workfloworientedapp\workflowtabmanager.cpp:396]
UE4Editor-Kismet.dll!TBaseRawMethodDelegateInstance<0,FDocumentTracker,TTypeWrapper<void> __cdecl(TSharedPtr<SDockTab,0>,TSharedPtr<SDockTab,0>)>::Execute() (0x000007fed07f608b) + 68 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:479]
UE4Editor-Kismet.dll!TBaseRawMethodDelegateInstance<0,FDocumentTracker,void __cdecl(TSharedPtr<SDockTab,0>,TSharedPtr<SDockTab,0>)>::ExecuteIfSafe() (0x000007fed07f88e2) + 63 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\public\delegates\delegateinstancesimpl_variadics.inl:560]
UE4Editor-Slate.dll!TBaseMulticastDelegate<void,TSharedPtr<SDockTab,0>,TSharedPtr<SDockTab,0> >::Broadcast() (0x000007fed473db6b) + 69 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\public\delegates\delegatesignatureimpl_variadics.inl:978]
UE4Editor-Slate.dll!FGlobalTabmanager::SetActiveTab() (0x000007fed47a1333) + 0 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\slate\private\framework\docking\tabmanager.cpp:1594]
UE4Editor-Slate.dll!SDockingTabStack::OnFocusChanging() (0x000007fed477d934) + 0 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\slate\private\framework\docking\sdockingtabstack.cpp:391]
UE4Editor-Slate.dll!FSlateApplication::SetUserFocus() (0x000007fed47a3dfc) + 0 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1963]
UE4Editor-Slate.dll!FSlateApplication::ProcessMouseButtonDownEvent() (0x000007fed478e25d) + 19 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:3715]
UE4Editor-Slate.dll!FSlateApplication::OnMouseDown() (0x000007fed477e80b) + 19 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:3607]
UE4Editor-Core.dll!FWindowsApplication::ProcessDeferredMessage() (0x000007fed788e4a2) + 32 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\private\windows\windowsapplication.cpp:1299]
UE4Editor-Core.dll!FWindowsApplication::DeferMessage() (0x000007fed7879e6b) + 74 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\private\windows\windowsapplication.cpp:1657]
UE4Editor-Core.dll!FWindowsApplication::ProcessMessage() (0x000007fed788f82b) + 41 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\private\windows\windowsapplication.cpp:742]
UE4Editor-Core.dll!FWindowsApplication::AppWndProc() (0x000007fed7876962) + 0 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\private\windows\windowsapplication.cpp:604]
USER32.dll!UnknownFunction (0x0000000076db9bd1) + 0 bytes [UnknownFile:0]
USER32.dll!UnknownFunction (0x0000000076db98da) + 0 bytes [UnknownFile:0]
UE4Editor-Core.dll!FWindowsPlatformMisc::PumpMessages() (0x000007fed788fce6) + 48 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\core\private\windows\windowsplatformmisc.cpp:774]
UE4Editor.exe!FEngineLoop::Tick() (0x000000013fa5d4da) + 8 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\launch\private\launchengineloop.cpp:2193]
UE4Editor.exe!GuardedMain() (0x000000013fa51afe) + 0 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\launch\private\launch.cpp:131]
UE4Editor.exe!GuardedMainWrapper() (0x000000013fa51b6a) + 5 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor.exe!WinMain() (0x000000013fa5ecd9) + 17 bytes [e:\victoryue4\unrealengine-4.6\unrealengine\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
UE4Editor.exe!__tmainCRTStartup() (0x000000013fa5fca9) + 21 bytes [f:\dd\vctools\crt\crtw32\dllstuff\crtexe.c:618]
kernel32.dll!UnknownFunction (0x0000000076eb652d) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x0000000076fec521) + 0 bytes [UnknownFile:0]
ntdll.dll!UnknownFunction (0x0000000076fec521) + 0 bytes [UnknownFile:0]


[2014.12.09-03.31.01:408][958]LogExit: Executing StaticShutdownAfterError
[2014.12.09-03.31.01:414][958]LogWindows: FPlatformMisc::RequestExit(1)
[2014.12.09-03.31.01:415][958]Log file closed, 12/08/14 22:31:01

Hi ,

I ran some tests with this issue, and was able to reproduce it in 4.6. However, it appears that it has been fixed in our latest internal build, so this issue should disappear in a future release version.

Does “future release version” mean 4.6.x? Or it will only be fixed in 4.7? If 4.7, could you please specify exact commit that fixes the crash so we can backport it internally?

Got a similar crash, see here:

Went away with 4.7 too.

I too would love to know the github fix :slight_smile:

It does not seem like a bug report was ever entered for this specific issue, but I was able to find a feature request to enable setting of default values for local Blueprint function variables that was recently submitted. It does not look like this has been fully tested yet, so keep that in mind if you decide to merge this into your Engine source code. It did seem to work for me when I was running a test in our latest internal build, though.

Thank you for the info !

I am happy to know this will be fixed in near future.

If anyone still really wants a fix for right now, feel free to reopen this thread.

#:heart:

I can confirm this bug on 4.6 (GitHub).