# 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:** 7\
**Page:** 3

<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:56am UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/41 "2017-12-06T10:56:43Z")

</div>

definitely agree with you…

I was forced to go through engine recompile cause development/test were totally stuck

to help I can share on github a fresh engine branch with just this fix

---

<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 6, 2017, 4:51pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/42 "2017-12-06T16:51:12Z")

</div>

Hi all,

Thank you so much for all the information about where you were hitting this issue. I had originally seen and fixed this as a VR Mode bug, but it does look like it was a larger issue after investigating further. As part of looking into this, I was also able to implement a different version of the fix that will be in 4.18.2 so you all can continue developing on that version.

Thanks again,

Lauren

---

<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, 5:03pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/43 "2017-12-06T17:03:38Z")

</div>

Could you provide a link to patch/branch/PR please? I’d like to use custom engine build with that fix while 4.18.2 is not available?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b5b115c41](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b5b115c41](https://forums.unrealengine.com/u/anonymous_user_b5b115c41)\
**Post date:** [December 6, 2017, 5:34pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/44 "2017-12-06T17:34:26Z")

</div>

How did you fix this? I’m getting the exact same linker error, and I’m not sure what’s wrong.

EDIT: Fixed it. For anyone else, you need to use the SLATECORE\_API macro with your new function so that it can be properly linked. So it will read:

```
SLATECORE_API FVector2D GetSizeInScreen() const;

```

I also added this to the cpp implementation, but I’m unsure if that’s actually necessary.

---

<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, 7:36pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/45 "2017-12-06T19:36:28Z")

</div>

This is great news, thank you!

Any idea when 18.2 will be available?

---

<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, 8:57pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/46 "2017-12-06T20:57:39Z")

</div>

exactly, otherwise function isn’t visible by linker

---

<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 11, 2017, 7:03pm UTC](https://forums.unrealengine.com/t/strange-slate-dll-crash-in-vr-mode/410057/47 "2017-12-11T19:03:20Z")

</div>

4.18.2 is available now. Thanks!

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