# Strange "..Slate.dll" Crash in VR mode

**URL:** <https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057>\
**Category:** XR Development\
**Tags:** unreal-engine, crash, bug-report, slate, question, CPP\
**Created:** [November 20, 2017, 1:48pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057 "2017-11-20T13:48:32Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Curs0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/curs0/32/470295_2.png) [@Curs0](https://forums.unrealengine.com/u/Curs0)\
**Post date:** [November 29, 2017, 4:17pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/21 "2017-11-29T16:17:21Z")

</div>

> This has been fixed, and should be in 4.19.

This is a very bad news…

> In the meantime, the workaround that  
> we have found is to wait a minute or  
> two after starting the editor before  
> entering VR Mode. That /should/ help  
> avoid crashes until the fix is  
> available.

Proposed WA does not fix the issue,

How long for 4.19 preview 1? :((

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [November 29, 2017, 4:33pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/22 "2017-11-29T16:33:15Z")

</div>

We do not have a time frame for the 4.19 preview. Unfortunately due to the nature of the change, it cannot be pushed to a 4.18 hotfix.

Is it feasible for you to make a change like Lee is suggesting?

---

<div class="post-metadata">

**Author:** ![Curs0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/curs0/32/470295_2.png) [@Curs0](https://forums.unrealengine.com/u/Curs0)\
**Post date:** [November 29, 2017, 4:41pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/23 "2017-11-29T16:41:53Z")

</div>

No experience at all in engine modifications/recompile and a game launch in 30 days…

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [November 29, 2017, 6:16pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/24 "2017-11-29T18:16:18Z")

</div>

Is this occurring in a packaged game? We’ve only observed this in VR editing mode, so you should be able to use the standard desktop editing tools.

---

<div class="post-metadata">

**Author:** ![Curs0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/curs0/32/470295_2.png) [@Curs0](https://forums.unrealengine.com/u/Curs0)\
**Post date:** [November 29, 2017, 9:12pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/25 "2017-11-29T21:12:48Z")

</div>

not sure what you mean: we’re experiencing it during pie vr preview

packaged game is fine, but we can’t test it in pie

never used vr editing mode

---

<div class="post-metadata">

**Author:** ![Curs0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/curs0/32/470295_2.png) [@Curs0](https://forums.unrealengine.com/u/Curs0)\
**Post date:** [November 29, 2017, 10:17pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/26 "2017-11-29T22:17:26Z")

</div>

got it now: didn’t noticed main subject was referencing to vr mode, sorry

anyway all forum threads and issues I listed below are referencing to **vr preview crashes**.

this is a critical failure, totally blocking development and testing phase ☹

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_69add334](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_69add334](https://forums.unrealengine.com/u/anonymous_user_69add334)\
**Post date:** [November 29, 2017, 11:54pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/27 "2017-11-29T23:54:23Z")

</div>

We’re dealing with same problem and it’s a crash in **VR preview**

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_250b3dab](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_250b3dab](https://forums.unrealengine.com/u/anonymous_user_250b3dab)\
**Post date:** [November 30, 2017, 7:12am UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/28 "2017-11-30T07:12:18Z")

</div>

For me the problem does occur in packaged builds and launching from the editor to the target.

---

<div class="post-metadata">

**Author:** ![Curs0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/curs0/32/470295_2.png) [@Curs0](https://forums.unrealengine.com/u/Curs0)\
**Post date:** [November 30, 2017, 9:10pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/29 "2017-11-30T21:10:27Z")

</div>

Epic any news?

thanks

---

<div class="post-metadata">

**Author:** ![Rukarulez](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Rukarulez](https://forums.unrealengine.com/u/Rukarulez)\
**Post date:** [December 1, 2017, 8:49pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/30 "2017-12-01T20:49:21Z")

</div>

Any updates?

---

<div class="post-metadata">

**Author:** ![Curs0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/curs0/32/470295_2.png) [@Curs0](https://forums.unrealengine.com/u/Curs0)\
**Post date:** [December 2, 2017, 2:49pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/31 "2017-12-02T14:49:32Z")

</div>

not able to get it built

```
2>SlateRHIRenderer.cpp.obj : error LNK2019: unresolved external symbol "public: struct FVector2D __cdecl FSlateWindowElementList::GetSizeInScreen(void)const " (?GetSizeInScreen@FSlateWindowElementList@@QEBA?AUFVector2D@@XZ) referenced in function "public: void__cdecl FSlateRHIRenderer::DrawWindow_RenderThread(class FRHICommandListImmediate &,struct FSlateRHIRenderer::FViewportInfo &,class FSlateWindowElementList &,bool,bool)" (?DrawWindow_RenderThread@FSlateRHIRenderer@@QEAAXAEAVFRHICommandListImmediate@@AEAUFViewportInfo@1@AEAVFSlateWindowElementList@@_N3@Z)
2>E:\GitHub\UnrealEngine\Engine\Binaries\Win64\UE4Editor-SlateRHIRenderer.dll : fatal error LNK1120: 1 unresolved externals
2>ERROR : UBT error : Failed to produce item: E:\GitHub\UnrealEngine\Engine\Binaries\Win64\UE4Editor-SlateRHIRenderer.dll

```

any suggestions?  
thanks in advance

---

<div class="post-metadata">

**Author:** ![Curs0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/curs0/32/470295_2.png) [@Curs0](https://forums.unrealengine.com/u/Curs0)\
**Post date:** [December 3, 2017, 12:43pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/32 "2017-12-03T12:43:13Z")

</div>

successfully built, editor seems ok now (I have a working commit on github)

thanks Lee for your valuable help

I think his reply should be marked as right answer.

Hope Epic will link UE-51146, UE-51727, UE-51883 to this thread and will fix that critical bug at least in 4.19…

---

<div class="post-metadata">

**Author:** ![Shadow.Storm](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadow.Storm](https://forums.unrealengine.com/u/Shadow.Storm)\
**Post date:** [December 4, 2017, 2:44pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/33 "2017-12-04T14:44:20Z")

</div>

I’m glad you were able to get it working! This issue is indeed fixed in 4.19: [Unreal Engine Issues and Bug Tracker (UE-50445)](https://issues.unrealengine.com/issue/UE-50445)

Thanks for the update!

---

<div class="post-metadata">

**Author:** ![ayamashev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ayamashev](https://forums.unrealengine.com/u/ayamashev)\
**Post date:** [December 6, 2017, 3:07am UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/34 "2017-12-06T03:07:39Z")

</div>

I’ll be able to test the workaround tomorrow.

---

<div class="post-metadata">

**Author:** ![ayamashev](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@ayamashev](https://forums.unrealengine.com/u/ayamashev)\
**Post date:** [December 6, 2017, 3:17am UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/35 "2017-12-06T03:17:42Z")

</div>

I was going to create new report but found this one. It seems like you’re working on this issue. I will attach few more crash logs. I think they all are related to the issue being discussed here and might be helpful. Some of them probably have been specified before.

* * *

```
Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0x00000000
SWidget::SlatePrepass() []
FLayoutSaveRestore::PrepareLayoutStringForIni() []
FSlateApplication::DrawPrepass() []
FSlateApplication::PrivateDrawWindows() []
FSlateApplication::TickApplication() []
FSlateApplication::Tick() [] 
FEngineLoop::Tick() []
GuardedMain() []
GuardedMainWrapper() []
WinMain() []

```

* * *

```
Ensure condition failed: false [File:D:\Build\++UE4+Release-4.18+Compile\Sync\Engine\Source\Runtime\SlateRHIRenderer\Private\SlateRHIRenderer.cpp] [Line: 1072]
Window isnt valid but being drawn!
Stack: 
FWindowsPlatformStackWalk::StackWalkAndDump() []
FDebug::EnsureFailed() []
FDebug::OptionallyLogFormattedEnsureMessageReturningFalse() []
FSlateRHIRenderer::DrawWindows_Private() []
FSlateApplication::PrivateDrawWindows() []
FSlateApplication::TickApplication() []
FSlateApplication::Tick() []
FEngineLoop::Tick() []
GuardedMain() []
GuardedMainWrapper() []
WinMain() []
```

---

<div class="post-metadata">

**Author:** ![SlimeQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlimeQ](https://forums.unrealengine.com/u/SlimeQ)\
**Post date:** [December 6, 2017, 9:31am UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/36 "2017-12-06T09:31:08Z")

</div>

Same issue, have more logs

```
[2017.12.06-09.25.55:284][785]LogWindows: Error: === Critical error: ===
[2017.12.06-09.25.55:284][785]LogWindows: Error: 
[2017.12.06-09.25.55:284][785]LogWindows: Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffff
[2017.12.06-09.25.55:284][785]LogWindows: Error: 
[2017.12.06-09.25.55:284][785]LogWindows: Error: [Callstack] 0x00000000DB17AF8D UE4Editor-SlateCore.dll!SWindow::IsVisible() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\slatecore\private\widgets\swindow.cpp:1326]
[2017.12.06-09.25.55:284][785]LogWindows: Error: [Callstack] 0x00000000C143662E UE4Editor-Slate.dll!PrepassWindowAndChildren() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1336]
[2017.12.06-09.25.55:284][785]LogWindows: Error: [Callstack] 0x00000000C1402D46 UE4Editor-Slate.dll!FSlateApplication::DrawPrepass() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1391]
[2017.12.06-09.25.55:284][785]LogWindows: Error: [Callstack] 0x00000000C1437389 UE4Editor-Slate.dll!FSlateApplication::PrivateDrawWindows() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1433]
[2017.12.06-09.25.55:284][785]LogWindows: Error: [Callstack] 0x00000000C1404140 UE4Editor-Slate.dll!FSlateApplication::DrawWindows() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1190]
[2017.12.06-09.25.55:284][785]LogWindows: Error: [Callstack] 0x00000000C145D867 UE4Editor-Slate.dll!FSlateApplication::TickApplication() [d:\build\++ue4+release-4.18+compile\sync\engine\source\runtime\slate\private\framework\application\slateapplication.cpp:1777]
```

---

<div class="post-metadata">

**Author:** ![SlimeQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlimeQ](https://forums.unrealengine.com/u/SlimeQ)\
**Post date:** [December 6, 2017, 9:50am UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/37 "2017-12-06T09:50:11Z")

</div>

good catch, I am also having this issue in **VR Preview Mode**

---

<div class="post-metadata">

**Author:** ![SlimeQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlimeQ](https://forums.unrealengine.com/u/SlimeQ)\
**Post date:** [December 6, 2017, 9:53am UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/38 "2017-12-06T09:53:20Z")

</div>

Wait wait wait, are you having this issue in **VR Mode** or **VR Preview PIE Mode**? It seems most of the commenters are the latter, but epic staff is assuming the former

---

<div class="post-metadata">

**Author:** ![SlimeQ](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@SlimeQ](https://forums.unrealengine.com/u/SlimeQ)\
**Post date:** [December 6, 2017, 10:01am UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/39 "2017-12-06T10:01:33Z")

</div>

This is sort of insane. The majority of the people here are having issues with **VR Preview** , meaning it’s basically impossible to test a VR game on UE4.18.1. This is a **critical, development blocking bug** and you’re telling us there’s no actual time table to get it fixed in a release? Everyone needs to just compile from source, a process requiring a full day and \>60gb of hard drive space? Is it really more unacceptable to change **BROKEN** public headers than it is to screw over VR devs who just went through the process of upgrading to 4.18?

---

<div class="post-metadata">

**Author:** ![Curs0](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/curs0/32/470295_2.png) [@Curs0](https://forums.unrealengine.com/u/Curs0)\
**Post date:** [December 6, 2017, 10:49am UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/40 "2017-12-06T10:49:05Z")

</div>

vr preview pie mode, told it loud and clear to epic (not sure they got it)

anyway fix reported by lee solved my problem with vr preview pie mode

I had to recompile engine, but was easier than I expected

[Previous page](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057.md?page=1)

[Next page](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057.md?page=3)
