# Crash : Assertion failed: FVector::Distance(Initializer.ViewRotationMatrix.GetScaleVector(), FVector::OneVector) \< (1.e-4f)

**URL:** <https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932>\
**Category:** Getting Started & Setup\
**Tags:** assertion-failed, unreal-engine, crash, editor, question\
**Created:** [January 29, 2021, 1:42pm UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932 "2021-01-29T13:42:47Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aherys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aherys/32/1194650_2.png) [@Aherys](https://forums.unrealengine.com/u/Aherys)\
**Post date:** [January 29, 2021, 1:42pm UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/1 "2021-01-29T13:42:47Z")

</div>

**Way to reproduce :** Happening when in editor we navigate with the camera in editor + right mouse bouton (very often, and very fast if we do a “long use” of camera navigation).

Engine suddently crash with this assert.

**Engine :** UE4.26 Epic Launcher

```
   Assertion failed: FVector::Distance(Initializer.ViewRotationMatrix.GetScaleVector(), FVector::OneVector) < (1.e-4f) [File:D:/Build/++UE4/Sync/Engine/Source/Runtime/Engine/Private/SceneView.cpp] [Line: 479]
    
UE4Editor_Core!AssertFailedImplV() [D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:102]
UE4Editor_Core!FDebug::CheckVerifyFailedImpl() [D:\Build++UE4\Sync\Engine\Source\Runtime\Core\Private\Misc\AssertionMacros.cpp:458]
UE4Editor_Engine!FViewMatrices::Init() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\SceneView.cpp:479]
UE4Editor_Engine!FViewMatrices::FViewMatrices() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\SceneView.cpp:607]
UE4Editor_Engine!FSceneView::FSceneView() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\SceneView.cpp:657]
UE4Editor_UnrealEd!FEditorViewportClient::CalcSceneView() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\EditorViewportClient.cpp:1153]
UE4Editor_UnrealEd!FLevelEditorViewportClient::CalcSceneView() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\LevelEditorViewport.cpp:1938]
UE4Editor_UnrealEd!FEditorViewportClient::Draw() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\EditorViewportClient.cpp:3872]
UE4Editor_Engine!FViewport::Draw() [D:\Build++UE4\Sync\Engine\Source\Runtime\Engine\Private\UnrealClient.cpp:1559]
[22:29]
UE4Editor_UnrealEd!UEditorEngine::UpdateSingleViewportClient() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:2154]
UE4Editor_UnrealEd!UEditorEngine::Tick() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\EditorEngine.cpp:1849]
UE4Editor_UnrealEd!UUnrealEdEngine::Tick() [D:\Build++UE4\Sync\Engine\Source\Editor\UnrealEd\Private\UnrealEdEngine.cpp:426]
UE4Editor!FEngineLoop::Tick() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\LaunchEngineLoop.cpp:4834]
UE4Editor!GuardedMain() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\Launch.cpp:169]
UE4Editor!GuardedMainWrapper() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:137]
UE4Editor!WinMain() [D:\Build++UE4\Sync\Engine\Source\Runtime\Launch\Private\Windows\LaunchWindows.cpp:268]
UE4Editor!__scrt_common_main_seh() [d:\agent_work\5\s\src\vctools\crt\vcstartup\src\startup\exe_common.inl:288]
kernel32

```

---

<div class="post-metadata">

**Author:** ![KREEN\_GUARDIAN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KREEN\_GUARDIAN](https://forums.unrealengine.com/u/KREEN_GUARDIAN)\
**Post date:** [August 29, 2021, 9:11am UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/2 "2021-08-29T09:11:21Z")

</div>

Hi, did you find a way to solve this I am having the same problem ?

---

<div class="post-metadata">

**Author:** ![Aherys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aherys/32/1194650_2.png) [@Aherys](https://forums.unrealengine.com/u/Aherys)\
**Post date:** [August 29, 2021, 9:34am UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/3 "2021-08-29T09:34:56Z")

</div>

No solution at this day, except removing the assertion in unreal source code itself.

Fun fact : look like this error is back since yesterday, as many people got it again.

---

<div class="post-metadata">

**Author:** ![KREEN\_GUARDIAN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KREEN\_GUARDIAN](https://forums.unrealengine.com/u/KREEN_GUARDIAN)\
**Post date:** [August 29, 2021, 9:41am UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/4 "2021-08-29T09:41:06Z")

</div>

wait will removing the assertion stop the editor from crashing. And if so what are the dowsnides of doing that and how can I do it ? This is extremely important for me to solve and thank you for the quick answer.

---

<div class="post-metadata">

**Author:** ![Aherys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aherys/32/1194650_2.png) [@Aherys](https://forums.unrealengine.com/u/Aherys)\
**Post date:** [August 29, 2021, 9:48am UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/5 "2021-08-29T09:48:27Z")

</div>

yes, and how… simply remove it.

No downside or anything for the moment, working fine.

---

<div class="post-metadata">

**Author:** ![KREEN\_GUARDIAN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KREEN\_GUARDIAN](https://forums.unrealengine.com/u/KREEN_GUARDIAN)\
**Post date:** [August 29, 2021, 9:56am UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/6 "2021-08-29T09:56:34Z")

</div>

Great ! solving this would save me literally hundreds of hours of rework, unfortunately I am not very good at this and don’t really wanna break anything could you maybe give me a bit more specifics - where to go and what to look for to delete (folders files etc), or maybe if that is not asking too much give me your discord and work me through this - I will be so grateful for this 🙂

---

<div class="post-metadata">

**Author:** ![Aherys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aherys/32/1194650_2.png) [@Aherys](https://forums.unrealengine.com/u/Aherys)\
**Post date:** [August 29, 2021, 10:13am UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/7 "2021-08-29T10:13:28Z")

</div>

No problem dude, Unfortunally to be able to do this, you should edit the unreal engine source and compile yourself the engine.

In theory, just simply remove the line from the file (SceneView.cpp [Line: 479]), then recompile the engine.

In fact… you need to know how to do this to be able to do it.  
I suggest you to contact the technical lead of your company.

---

<div class="post-metadata">

**Author:** ![Aherys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aherys/32/1194650_2.png) [@Aherys](https://forums.unrealengine.com/u/Aherys)\
**Post date:** [August 30, 2021, 9:24pm UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/8 "2021-08-30T21:24:39Z")

</div>

So final solution :

On a custom UE build (4.27)  
Change line 499 of SceneView.cpp (Engine/Source/Runtime/Engine/Private/SceneView.cpp)

> //check(FVector::Distance(Initializer.ViewRotationMatrix.GetScaleVector(), FVector::OneVector) \< KINDA\_SMALL\_NUMBER);  
> Compile your own build of unreal engine

(Just add the both //), it will skip the assertion, everything working fine after this.

---

<div class="post-metadata">

**Author:** ![JoshuaGreig](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@JoshuaGreig](https://forums.unrealengine.com/u/JoshuaGreig)\
**Post date:** [August 30, 2021, 9:40pm UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/9 "2021-08-30T21:40:49Z")

</div>

Right click on the level in content browser. it should load for a second, try after that  
This works. I have used it 2 times now on different projects that I had worked on for a while.

---

<div class="post-metadata">

**Author:** ![Aherys](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/aherys/32/1194650_2.png) [@Aherys](https://forums.unrealengine.com/u/Aherys)\
**Post date:** [August 30, 2021, 10:09pm UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/10 "2021-08-30T22:09:37Z")

</div>

Unfortunally not working.

The “fix” i found was to remove the assert from UE4 engine source.

---

<div class="post-metadata">

**Author:** ![KREEN\_GUARDIAN](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KREEN\_GUARDIAN](https://forums.unrealengine.com/u/KREEN_GUARDIAN)\
**Post date:** [August 31, 2021, 7:28am UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/11 "2021-08-31T07:28:45Z")

</div>

Yep this doesn’t work 😕

---

<div class="post-metadata">

**Author:** ![qwertyuiop67515](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@qwertyuiop67515](https://forums.unrealengine.com/u/qwertyuiop67515)\
**Post date:** [October 11, 2021, 9:06pm UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/12 "2021-10-11T21:06:37Z")

</div>

Hello, how to find SceneView.cpp? I dont have any SceneView.cpp files on my computer, i tried to find it through windows search, no one disk has such file, how to find it and edit?

---

<div class="post-metadata">

**Author:** ![ERR0R4224699](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ERR0R4224699](https://forums.unrealengine.com/u/ERR0R4224699)\
**Post date:** [June 7, 2026, 9:02pm UTC](https://forums.unrealengine.com/t/crash-assertion-failed-fvector-distance-initializer-viewrotationmatrix-getscalevector-fvector-onevector-1-e-4f/477932/13 "2026-06-07T21:02:57Z")

</div>

its located in C:\Program Files\Epic Games\UE\_4.27\Engine\Source\Runtime\Engine\Private
