Description

After adding a duplicate spline point, removing the spline component while the duplicated point is selected and creating a new spline in its place causes the editor to crash.

Crash Reporter:
[Link Removed]

Steps to Reproduce
  1. Open UE4 Editor (any project
  2. Add blueprint based on Actor (MyActor)
  3. Add spline component to component hierarchy
  4. Right click on a point on the spline and select duplicate point
  5. With the duplicated point selected, click on the spline component in the component hierarchy and press Delete to delete it
  6. From the Add Component drop down, add a new spline component

Result:
Editor crashes with provided callstack

Expected:
New default spline is added after removing original

Callstack
MachineId:7156C35640F86204E61B8383F45DEE17
EpicAccountId:e8c7fa630b6440f69a25a2c64d6c482c

Assertion failed: LastKeyIndexSelected < Position.Points.Num() [File:D:\Build\++UE4+Release-4.13+Compile\Sync\Engine\Source\Editor\ComponentVisualizers\Private\SplineComponentVisualizer.cpp] [Line: 555] 



UE4Editor_Core!FDebug::AssertFailed() [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\core\private\misc\outputdevice.cpp:421]
UE4Editor_ComponentVisualizers!FSplineComponentVisualizer::GetWidgetLocation() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\componentvisualizers\private\splinecomponentvisualizer.cpp:556]
UE4Editor_UnrealEd!FComponentVisualizerManager::GetWidgetLocation() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\componentvisualizermanager.cpp:118]
UE4Editor_UnrealEd!FLevelEditorViewportClient::GetWidgetLocation() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\leveleditorviewport.cpp:2982]
UE4Editor_UnrealEd!FWidget::Render() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\unrealwidget.cpp:297]
UE4Editor_UnrealEd!FEditorViewportClient::Draw() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\editorviewportclient.cpp:3433]
UE4Editor_UnrealEd!FLevelEditorViewportClient::Draw() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\leveleditorviewport.cpp:3825]
UE4Editor_Renderer!FSceneRenderer::FSceneRenderer() [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\renderer\private\scenerendering.cpp:1295]
UE4Editor_Renderer!FDeferredShadingSceneRenderer::FDeferredShadingSceneRenderer() [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\renderer\private\deferredshadingrenderer.cpp:175]
UE4Editor_Renderer!FRendererModule::BeginRenderingViewFamily() [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\renderer\private\scenerendering.cpp:1988]
UE4Editor_UnrealEd!FEditorViewportClient::Draw() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\editorviewportclient.cpp:3316]
UE4Editor_Engine!FViewport::Draw() [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\engine\private\unrealclient.cpp:1163]
UE4Editor_UnrealEd!UEditorEngine::UpdateSingleViewportClient() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\editorengine.cpp:1782]
UE4Editor_UnrealEd!UEditorEngine::Tick() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\editorengine.cpp:1530]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [d:\build\++ue4+release-4.13+compile\sync\engine\source\editor\unrealed\private\unrealedengine.cpp:371]
UE4Editor!FEngineLoop::Tick() [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\launch\private\launchengineloop.cpp:2834]
UE4Editor!GuardedMain() [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\launch\private\launch.cpp:156]
UE4Editor!GuardedMainWrapper() [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:126]
UE4Editor!WinMain() [d:\build\++ue4+release-4.13+compile\sync\engine\source\runtime\launch\private\windows\launchwindows.cpp:202]
UE4Editor!__scrt_common_main_seh() [f:\dd\vctools\crt\vcstartup\src\startup\exe_common.inl:264]
kernel32
ntdll

Have Comments or More Details?

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

0
Login to Vote

Fixed
ComponentUE - Gameplay
Affects Versions4.134.13.1
Target Fix4.14
Fix Commit3141242
Main Commit3152072
CreatedSep 26, 2016
ResolvedSep 27, 2016
UpdatedApr 27, 2018
View Jira Issue