x

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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

OculusBoundaryComponent crashes when no HMD connected

If using OculusBoundaryComponent, but no HMD is connected and Vive is also setup but not turned on (so it runs an inactive SteamVR). Oculus BoundaryComponent crashes in OnTick:

The fix is to check that the XRSystem is valid:

 if (GEngine->XRSystem.IsValid())

So the code now looks like this:

 void UOculusBoundaryComponent::TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction)
 {
     Super::TickComponent(DeltaTime, TickType, ThisTickFunction);
 #if OCULUS_HMD_SUPPORTED_PLATFORMS
     FOculusHMD* OculusHMD = nullptr;
     if (GEngine)
     {
         if (GEngine->XRSystem.IsValid())
         {
             OculusHMD = (FOculusHMD*)(GEngine->XRSystem->GetHMDDevice());
         }
     }
 
     if (OculusHMD && OculusHMD->IsHMDActive())


In OculusBoundaryComponent.cpp

Product Version: UE 4.18
Tags:
more ▼

asked Oct 26 '17 at 10:59 AM in Bug Reports

avatar image

jimsnomis
66 2 7 13

avatar image Jeff A ♦♦ STAFF Nov 06 '17 at 09:35 PM

Hello,

Could you please provide the contents of the call stack when you receive this crash. Also for clarification, is this happening in a new project or is this from a project that you have upgraded from 4.17.

Thank you.

avatar image jimsnomis Nov 06 '17 at 09:41 PM

It's an upgraded project, haven't tested it with a fresh one. I'll test and send the call stack.

I've pull requested the fix. https://github.com/EpicGames/UnrealEngine/pull/4165

avatar image jimsnomis Nov 07 '17 at 11:00 AM

Callstack having reverted my fix:

link text

callstack.txt (3.1 kB)
avatar image jimsnomis Nov 07 '17 at 11:02 AM

This occurs when running up into the editor after the VR system initialises. To make it go wrong, run with SteamVR system installed but with the HMD/Sensors turned off. I also have an Oculus installed but not connected.

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

1 answer: sort voted first

Hey Jimsnomis,

So I was able to reproduce a similar bug with this where my 4.18 projects would crash the moment I added the boundary component with no HMD connected. 4.17 I was having no issues what so ever. I have created a bug report for the crash I was receiving and linked yours in as well as a related issue.

You can follow the bug report here UE-52092

In time this should resolve both of the issues, one with your OnTick crash and the adding boundary component crash.

Thank you.

more ▼

answered Nov 07 '17 at 04:28 PM

avatar image

Jeff A ♦♦ STAFF
3.2k 2 5 6

avatar image jimsnomis Nov 08 '17 at 10:07 AM

Great thanks!

(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