Description

This is a trending crash in the 4.17 previews. Unfortunately users have not provided any descriptions of their actions when the crash occurred.

Source Context

 464       FViewMatrices::FViewMatrices(const FSceneViewInitOptions& InitOptions) : FViewMatrices()
  465       {
  466       	//check(InitOptions.ViewRotationMatrix.GetOrigin().IsNearlyZero());
  467       	check(FVector::Distance(InitOptions.ViewRotationMatrix.GetScaleVector(), FVector::OneVector) < KINDA_SMALL_NUMBER);
  468       
  469 ***** 	FVector LocalViewOrigin = InitOptions.ViewOrigin;
  470       	FMatrix ViewRotationMatrix = InitOptions.ViewRotationMatrix;
  471       	if (!ViewRotationMatrix.GetOrigin().IsNearlyZero(0.0f))
  472       	{
  473       		LocalViewOrigin += ViewRotationMatrix.InverseTransformPosition(FVector::ZeroVector);
  474       		ViewRotationMatrix = ViewRotationMatrix.RemoveTranslation();
  475       	}
Steps to Reproduce
  1. Open UE4 Editor (any project)
  2. From Modes tab, add Planar Reflection to viewport
  3. In the details panel, set Scale for Planar Reflection to (0.9, 0.9, 0.9)

Result:
Editor crashes upon entering last scale value

Expected:
Planar reflection scale is adjusted appropriately.

Callstack
Assertion failed: FVector::Distance(InitOptions.ViewRotationMatrix.GetScaleVector(), FVector::OneVector) < KINDA_SMALL_NUMBER [File:D:\Build\++UE4+Release-4.17+Compile\Sync\Engine\Source\Runtime\Engine\Private\SceneView.cpp] [Line: 468]

UE4Editor_Engine!FViewMatrices::FViewMatrices() [sceneview.cpp:470]
UE4Editor_Engine!FSceneView::FSceneView() [sceneview.cpp:595]
UE4Editor_Renderer!CreateSceneRendererForSceneCapture() [scenecapturerendering.cpp:421]
UE4Editor_Renderer!FScene::UpdatePlanarReflectionContents() [planarreflectionrendering.cpp:408]
UE4Editor_Renderer!FRendererModule::BeginRenderingViewFamily() [scenerendering.cpp:2036]
UE4Editor_UnrealEd!FEditorViewportClient::Draw() [editorviewportclient.cpp:3396]
UE4Editor_Engine!FViewport::Draw() [unrealclient.cpp:1198]
UE4Editor_UnrealEd!UEditorEngine::UpdateSingleViewportClient() [editorengine.cpp:2030]
UE4Editor_UnrealEd!UEditorEngine::Tick() [editorengine.cpp:1775]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [unrealedengine.cpp:396]
UE4Editor!FEngineLoop::Tick() [launchengineloop.cpp:3215]
UE4Editor!GuardedMain() [launch.cpp:166]
UE4Editor!GuardedMainWrapper() [launchwindows.cpp:134]
UE4Editor!WinMain() [launchwindows.cpp:210]
UE4Editor!__scrt_common_main_seh() [exe_common.inl:253]
kernel32!BaseThreadInitThunk()
ntdll!RtlUserThreadStart()

Have Comments or More Details?

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

22
Login to Vote

Cannot Reproduce
ComponentUE - Rendering
Affects Versions4.174.184.194.204.214.224.254.25.14.25.34.25.4
Target Fix4.27
CreatedAug 3, 2017
ResolvedMar 9, 2021
UpdatedMar 10, 2021