# Toggling VR Mode 2nd Time Crash with Rift CV1 (Workaround available)

**URL:** <https://forums.unrealengine.com/t/toggling-vr-mode-2nd-time-crash-with-rift-cv1-workaround-available/379937>\
**Category:** XR Development\
**Tags:** rift, vr-use-focus, oculus-vr, unreal-engine, crash, question\
**Created:** [December 21, 2016, 10:13pm UTC](https://forums.unrealengine.com/t/toggling-vr-mode-2nd-time-crash-with-rift-cv1-workaround-available/379937 "2016-12-21T22:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![TomShannon](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/tomshannon/32/1145428_2.png) [@TomShannon](https://forums.unrealengine.com/u/TomShannon)\
**Post date:** [December 21, 2016, 10:13pm UTC](https://forums.unrealengine.com/t/toggling-vr-mode-2nd-time-crash-with-rift-cv1-workaround-available/379937/1 "2016-12-21T22:13:33Z")

</div>

Using a Rift CV1 (no touch), UE4.14 Windows 10 pro x64

Toggling VR mode (using **stereo on** and **stereo off** ) a **second time** will crash UE4 **IF** the Oculus application was launched before the UE4 project **AND IF** the Rift Proximity Sensor is **NOT** activated (Being worn)

Replication:

1. Start with a blank project and  
create a new, default map (with the  
player start and sky, etc.)
2. Save the map and assign it as the  
default map in the project settings
3. close the editor
4. Launch Oculus application
5. Launch UE4 project as Game (right  
clicking on .uproject for example)
6. Once loadeded use the console to  
issue the following commands:  
**hmd enable** then  
**stereo on**
7. The headset shoud become active and  
you can put it on and see the scene  
in VR (You may have to agree to the  
health stuff, be sure to put on the  
headset)
8. Type **stereo off** into the console  
returning you to regular view
9. Remove the headset (deactivating the  
proximity sensor)
10. Type stereo on again into the  
console and
11. Crash UE4

Workaround:  
To avoid this crash you simply must ensure the Oculus application is not running before loading your application. It will load when your project loads, but you should be able to switch without crashing.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [December 22, 2016, 2:56pm UTC](https://forums.unrealengine.com/t/toggling-vr-mode-2nd-time-crash-with-rift-cv1-workaround-available/379937/2 "2016-12-22T14:56:05Z")

</div>

Hello ,

I was able to reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have also provided a link to the public tracker. Please feel free to use the like provided for future updates. Thank you for your time and information.

Link: [Unreal Engine Issues and Bug Tracker (UE-40012)](https://issues.unrealengine.com/issue/UE-40012)

Make it a great day

---

<div class="post-metadata">

**Author:** ![LeFxGuy](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeFxGuy](https://forums.unrealengine.com/u/LeFxGuy)\
**Post date:** [March 7, 2017, 12:33pm UTC](https://forums.unrealengine.com/t/toggling-vr-mode-2nd-time-crash-with-rift-cv1-workaround-available/379937/3 "2017-03-07T12:33:18Z")

</div>

The ticket says this is a duplicate but there is no link to the duplicate ticket? Is this bug already solved in master?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_e729f54e](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_e729f54e](https://forums.unrealengine.com/u/anonymous_user_e729f54e)\
**Post date:** [March 7, 2017, 2:50pm UTC](https://forums.unrealengine.com/t/toggling-vr-mode-2nd-time-crash-with-rift-cv1-workaround-available/379937/4 "2017-03-07T14:50:03Z")

</div>

Hello LeFxGuy,

The report has been updated.
