Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

EnableHMD function in Shipping packaged project crashing with Oculus Rift CV1

I've got a strange issue in a project that uses Oculus Rift CV1 and HTC Vive. It just happens with the Shipping build packaged with UE4.15.0 Binary version with build number 3299760.

When I try to use EnableHMD function in a shipping build which does not start in VR mode, a crash occurs only if the Rift CV1 is plugged in.

I successfully reproduced this issue using the VR Template that comes with UE4.15. It just needs some minor modifications to be able to crash.

Crash reproduction steps:

  1. Create a project using Virtual Reality Template

  2. Go to Project Settings -> Maps & Modes -> Set GameDefaultMap to HMDLocomotionMap

  3. Go to Project Settings -> Packaging -> Set BuildConfiguration to Shipping and check IncludeDebugFiles

  4. Edit HMDLocomotionPawn Blueprint -> Add the InputEvent 'H' Key and connect to EnableHMD with Enabled boolean option checked. Figure 1: Figure 1

  5. Package the project to Windows (64-bit)

  6. Make sure that Rift CV1 is plugged and its service is running

  7. Open the packaged build and type 'H'

  8. Boom! The crash occurs... (my call stack is in the end of this question)


The weird part happens in three independent occasions:

  • If you change the BuildConfiguration to Development, the EnableHmd function behaves as expected and does not crash the program.

  • If you check StartInVR option in Project Settings -> Project -> Description, the program starts in VR and it's possible to toggle EnableHMD function normally using the code from Figure 2: Figure 2

  • If you use HTC Vive instead of Rift CV1, the program works without any problem.

Call stack from crash (step 8):

 Access violation - code c0000005 (first/second chance not available)

Product Version: UE 4.15
more ▼

asked Mar 08 '17 at 12:25 PM in Bug Reports

avatar image

26 3 5

avatar image KyperGamer Nov 09 '17 at 06:17 AM

Gee Since March, and marked as resolved? That does not make sense.

This is a current issue and my question is, are people able to package VR games for the Rift with this issue? What part of my example project is causing this?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Hello gagallo7

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 link provided for future updates. Thank you for your time and information.

Link: https://issues.unrealengine.com/issue/UE-42743

Make it a great day

more ▼

answered Mar 09 '17 at 09:59 PM

avatar image

Rudy Q ♦♦ STAFF
47.5k 545 132 522

avatar image gagallo7 Mar 10 '17 at 05:02 PM

Thanks Rudy for checking my issue.

avatar image foxhound101 Sep 18 '17 at 05:17 PM

Hi I'm having some trouble with this issue. I've been struggling since 4.13 with this... I need to finalise this project within a couple of days.. Is there any known workarounds? or should i somehow migrate to 4.12?

avatar image Rudy Q ♦♦ STAFF Sep 18 '17 at 06:12 PM

Hello foxhound101,

I do not have a workaround for this issue at this time.

avatar image foxhound101 Sep 19 '17 at 07:12 AM

Hi Rudy, thanks for yor reply. What would the workaround be? at the moment after some tests it seems it might not be the enable hmd that is causing the fatal error

avatar image foxhound101 Nov 15 '17 at 07:45 AM

Sorry Rudy , I missread your comment, only noticed now that you said "not" :P

Just to add: I mannaged to get my project packaged and working with the rift turnig on and of from menu to playback in the map. I upgraded the engine Version to 4.17.2. This seemed to fix everything and i haven't had any problems like this since.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I'm in 4.16.3, is there any workaround for this?? I can't upgrade engine version and I need this working :/

more ▼

answered Sep 14 '18 at 10:54 AM

avatar image

13 2 5 10

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question