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"

Bug in 4.12.2 with Oculus on startup

Not sure how much earlier this goes, but is evident on 4.12.2 and 4.12.1

Editor crashes on startup with an array out of bounds error.

My system has 2 GTX 970s, the rift is plugged into the second one, my main display is plugged into the first.

I created a debug build and traced the error to here.



 void FD3D11DynamicRHIModule::FindAdapter()

this line(368) causes the error

 ChosenDescription = AdapterDescription[ChosenAdapter.AdapterIndex];

This is caused by the AdapterDescription array having only one entry due to how it is populated in the loop above. Several test call "continue" resulting in no description for that device being added to the array.

This line is below the tests in the loop, it needs to be moved to above the tests.


Or, change line 368 to

 ChosenDescription = AdapterDescription[0];

I'll let someone familiar with that code make the correct fix.

Cheers, Dave.

Product Version: UE 4.12
more ▼

asked Jun 10 '16 at 02:01 PM in Bug Reports

avatar image

26 1 2 3

avatar image Rudy Q ♦♦ STAFF Jun 10 '16 at 06:47 PM

Hello doorman,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Which oculus device are you using?

  2. Can you reproduce this issue in a clean project?

  3. If so, could you provide a detailed list of steps to reproduce this issue on our end?

  4. Was the project that you are using upgraded from an older version of the engine?

avatar image doorman Jun 11 '16 at 12:16 AM

Hi Rudy,

Steps to reproduce: Plug an Oculus CRV1 into the second (or subsequent) graphics adapter in your system. This bug will not appear if you are plugging your HMD into the first adapter.

Project specifics: This bug occurs on startup at 0%, no project is loaded.

Versions: I compiled from zip file of 4.12.2 (and 4.12.1)

And just to be clear, I have fixed this issue for myself, I'm trying to give you guys the fix.The code change I described does fix the problem, I'm just not across that code so I'm not confident that my fix won't have an adverse effect on something else.

I'll try and get the most current source and look at the code in a bit more depth, then ill fix it there and create a pull request.

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

1 answer: sort voted first

Hello again,

I have made a pull request here. https://github.com/EpicGames/UnrealEngine/pull/2494

This is the first time I've done this, so apologies if I have stuffed anything up.

more ▼

answered Jun 11 '16 at 05:26 AM

avatar image

26 1 2 3

avatar image Rudy Q ♦♦ STAFF Jun 13 '16 at 06:18 PM

Hello doorman,

Thank you for submitting a pull request. I will be converting your last comment to an answer. Thank you for your time.

Make it a great day

(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