4.8 Preview 4 - Oculus Rift Black Screen?

Is 4.8 Preview 4 not working with the DK2 Rift? My Rift configuration is working for games built on older versions of the engine, so it doesn’t seem to be a problem with my headset setup.

I’ve tried with a number of different configurations:

  • Windows 7 and Windows 8.1
  • GeForce GTX Titan and GTX 580
  • Oculus Runtimes 0.4.4, 0.5.0, 0.6.0 beta
  • UE 4.8 Preview 4 - both the GitHub source and the version downloaded via the Launcher
  • Display Modes “Direct” and “Extended”

I’m testing by launching the game from the editor in Standalone mode. In “Direct” display mode, the standalone window opens but is completely black, and the power light on the DK2 stays orange. In “Extended” display mode, the DK2 displays a second desktop as expected, but when I launch the standalone game and fullscreen it, the standalone window goes black and the DK2 just stays on the desktop. VR Preview yields similar results.

To start debugging, I tried launching the game with the Rift off and then again with it on to diff the output log. I do see some additional error messages in the log from when the Rift is on – maybe they’ll mean something to you?

I’ll share here the log from when the Rift is on, split into two parts. This first part is basically the same whether I have the Rift on or not:


    [2015.06.05-17.56.35:137]  0]Log file open, 06/05/15 10:56:35
    [2015.06.05-17.56.35:137]  0]LogInit:Display: Running engine for game: DK2Test
    [2015.06.05-17.56.35:137]  0]LogInit:Display: RandInit(-2373983) SRandInit(-2373983).
    [2015.06.05-17.56.35:137]  0]LogTaskGraph: Started task graph with 4 named threads and 7 total threads.
    [2015.06.05-17.56.35:137]  0]LogStats: Stats thread started
    [2015.06.05-17.56.35:137]  0]LogInit: Version: 4.8.0-2564697+++depot+UE4-Releases+4.8
    [2015.06.05-17.56.35:137]  0]LogInit: API Version: 2564697
    [2015.06.05-17.56.35:137]  0]LogInit: Compiled (64-bit): May 26 2015 05:51:02
    [2015.06.05-17.56.35:137]  0]LogInit: Compiled with Visual C++: 18.00.21005.01
    [2015.06.05-17.56.35:137]  0]LogInit: Build Configuration: Development
    [2015.06.05-17.56.35:137]  0]LogInit: Branch Name: ++depot+UE4-Releases+4.8
    [2015.06.05-17.56.35:137]  0]LogInit: Command line:  /Temp/Autosaves/Temp/UEDPCUntitled_1 -game -PIEVIACONSOLE -ResX=1280 -ResY=720  -Multiprocess 
    [2015.06.05-17.56.35:137]  0]LogInit: Base directory: C:/Program Files/Epic Games/4.8/Engine/Binaries/Win64/
    [2015.06.05-17.56.35:147]  0]LogInit: Using libcurl 7.41.0
    [2015.06.05-17.56.35:147]  0]LogInit:  - built for x86_64-pc-win32
    [2015.06.05-17.56.35:147]  0]LogInit:  - supports SSL with WinSSL
    [2015.06.05-17.56.35:147]  0]LogInit:  - other features:
    [2015.06.05-17.56.35:147]  0]LogInit:      CURL_VERSION_SSL
    [2015.06.05-17.56.35:147]  0]LogInit:      CURL_VERSION_IPV6
    [2015.06.05-17.56.35:147]  0]LogInit:      CURL_VERSION_ASYNCHDNS
    [2015.06.05-17.56.35:147]  0]LogInit:      CURL_VERSION_LARGEFILE
    [2015.06.05-17.56.35:147]  0]LogInit:      CURL_VERSION_IDN
    [2015.06.05-17.56.35:147]  0]LogInit:  CurlRequestOptions (configurable via config and command line):
    [2015.06.05-17.56.35:147]  0]LogInit:  - bVerifyPeer = true  - Libcurl will verify peer certificate
    [2015.06.05-17.56.35:147]  0]LogInit:  - bUseHttpProxy = false  - Libcurl will NOT use HTTP proxy
    [2015.06.05-17.56.35:147]  0]LogInit:  - bDontReuseConnections = false  - Libcurl will reuse connections
    [2015.06.05-17.56.35:147]  0]LogInit:  - CertBundlePath = nullptr  - Libcurl will use whatever was configured at build time.
    [2015.06.05-17.56.35:158]  0]LogOnline:Warning: No default platform service specified for OnlineSubsystem
    [2015.06.05-17.56.35:170]  0]LogInit: Presizing for 0 objects not considered by GC, pre-allocating 0 bytes.
    [2015.06.05-17.56.35:178]  0]LogInit: Object subsystem initialized
    [2015.06.05-17.56.35:179]  0]LogConsoleResponse:Warning: Skipping Unknown console variable: 'TranslucentSortAxis = (X=0.000000,Y=-1.000000,Z=0.000000)'
    [2015.06.05-17.56.35:179]  0]LogConsoleResponse:Warning:   Found in ini file 'C:/Users/penrose4/Documents/Unreal Projects/DK2Test/Saved/Config/Windows/Engine.ini', in section '[/Script/Engine.RendererSettings]'
    [2015.06.05-17.56.35:179]  0]LogConsoleResponse:Warning: Skipping Unknown console variable: 'UIScaleRule = ShortestSide'
    [2015.06.05-17.56.35:179]  0]LogConsoleResponse:Warning:   Found in ini file 'C:/Users/penrose4/Documents/Unreal Projects/DK2Test/Saved/Config/Windows/Engine.ini', in section '[/Script/Engine.RendererSettings]'
    [2015.06.05-17.56.35:179]  0]LogConsoleResponse:Warning: Skipping Unknown console variable: 'UIScaleCurve = (EditorCurveData=(Keys=),ExternalCurve=None)'
    [2015.06.05-17.56.35:179]  0]LogConsoleResponse:Warning:   Found in ini file 'C:/Users/penrose4/Documents/Unreal Projects/DK2Test/Saved/Config/Windows/Engine.ini', in section '[/Script/Engine.RendererSettings]'
    [2015.06.05-17.56.35:179]  0]LogInit: Selected Device Profile: [Windows]
    [2015.06.05-17.56.35:179]  0]LogInit: Applying CVar settings loaded from the selected device profile: [Windows]
    [2015.06.05-17.56.35:182]  0]LogInit: Computer: PENROSE_4
    [2015.06.05-17.56.35:182]  0]LogInit: User: penrose4
    [2015.06.05-17.56.35:182]  0]LogInit: CPU Page size=4096, Cores=4
    [2015.06.05-17.56.35:182]  0]LogInit: High frequency timer resolution =3.906308 MHz
    [2015.06.05-17.56.35:182]  0]LogMemory: Memory total: Physical=15.9GB (16GB approx)
    [2015.06.05-17.56.35:182]  0]LogMemory: Platform Memory Stats for Windows
    [2015.06.05-17.56.35:182]  0]LogMemory: Process Physical Memory: 49.66 MB used, 49.66 MB peak
    [2015.06.05-17.56.35:182]  0]LogMemory: Process Virtual Memory: 22.46 MB used, 23.38 MB peak
    [2015.06.05-17.56.35:182]  0]LogMemory: Physical Memory: 3082.61 MB used, 16245.11 MB total
    [2015.06.05-17.56.35:182]  0]LogMemory: Virtual Memory: 278.86 MB used, 8388608.00 MB total
    [2015.06.05-17.56.35:210]  0]LogTextLocalizationManager: The requested culture ('en_US') has no localization data; parent culture's ('en') localization data will be used.
    [2015.06.05-17.56.35:357]  0]LogTextLocalizationManager:Warning: Loaded localization resources contain conflicting entries for (Namespace:ContentBrowser, Key:ImportAssetToolTip):
    Localization Resource: (C:/Program Files/Epic Games/4.8/Engine/Content/Localization/Editor/en/Editor.locres) Source String Hash: (-630476809) Localized String: (Import to {0}...)
    Localization Resource: (C:/Program Files/Epic Games/4.8/Engine/Content/Localization/Editor/en/Editor.locres) Source String Hash: (1271782899) Localized String: (Imports an asset from file to this folder.)
    [2015.06.05-17.56.35:620]  0]LogD3D11RHI: Found D3D11 adapter 0: NVIDIA GeForce GTX 580 (Feature Level 11_0)
    [2015.06.05-17.56.35:620]  0]LogD3D11RHI: Adapter has 3020MB of dedicated video memory, 0MB of dedicated system memory, and 7866MB of shared system memory, 2 output[s]
    [2015.06.05-17.56.35:625]  0]LogD3D11RHI: Found D3D11 adapter 1: Intel(R) HD Graphics 4600 (Feature Level 11_0)
    [2015.06.05-17.56.35:625]  0]LogD3D11RHI: Adapter has 64MB of dedicated video memory, 0MB of dedicated system memory, and 1632MB of shared system memory, 0 output[s]
    [2015.06.05-17.56.35:625]  0]LogD3D11RHI: Chosen D3D11 Adapter Id = 0
    [2015.06.05-17.56.35:628]  0]LogRHI: Texture pool is 1361 MB (70% of 1945 MB)
    [2015.06.05-17.56.35:634]  0]LogD3D11RHI: Async texture creation enabled
    [2015.06.05-17.56.35:647]  0]LogShaderCompilers:Display: Using Local Shader Compiler.
    [2015.06.05-17.56.36:224]  0]LogTemp:Display: Loaded TP DesktopTargetPlatform
    [2015.06.05-17.56.36:234]  0]LogTemp:Display: Loaded TP WindowsClientTargetPlatform
    [2015.06.05-17.56.36:243]  0]LogTemp:Display: Loaded TP WindowsNoEditorTargetPlatform
    [2015.06.05-17.56.36:254]  0]LogTemp:Display: Loaded TP WindowsServerTargetPlatform
    [2015.06.05-17.56.36:265]  0]LogTemp:Display: Loaded TP WindowsTargetPlatform
    [2015.06.05-17.56.36:273]  0]LogTemp:Display: Loaded TP AndroidTargetPlatform
    [2015.06.05-17.56.36:281]  0]LogTemp:Display: Loaded TP Android_ASTCTargetPlatform
    [2015.06.05-17.56.36:289]  0]LogTemp:Display: Loaded TP Android_ATCTargetPlatform
    [2015.06.05-17.56.36:297]  0]LogTemp:Display: Loaded TP Android_DXTTargetPlatform
    [2015.06.05-17.56.36:306]  0]LogTemp:Display: Loaded TP Android_ETC1TargetPlatform
    [2015.06.05-17.56.36:314]  0]LogTemp:Display: Loaded TP Android_ETC2TargetPlatform
    [2015.06.05-17.56.36:322]  0]LogTemp:Display: Loaded TP Android_PVRTCTargetPlatform
    [2015.06.05-17.56.36:355]  0]LogTemp:Display: Loaded TP IOSTargetPlatform
    [2015.06.05-17.56.36:363]  0]LogTemp:Display: Loaded TP LinuxNoEditorTargetPlatform
    [2015.06.05-17.56.36:371]  0]LogTemp:Display: Loaded TP LinuxServerTargetPlatform
    [2015.06.05-17.56.36:380]  0]LogTemp:Display: Loaded TP LinuxTargetPlatform
    [2015.06.05-17.56.36:380]  0]LogTargetPlatformManager:Display: Building Assets For Windows
    [2015.06.05-17.56.36:509]  0]LogDerivedDataCache:Display: Max Cache Size: 512 MB
    [2015.06.05-17.56.36:546]  0]LogDerivedDataCache: Loaded boot cache 0.04s 53MB C:/Users/penrose4/AppData/Local/UnrealEngine/4.8/DerivedDataCache/Boot.ddc.
    [2015.06.05-17.56.36:546]  0]LogDerivedDataCache:Display: Loaded Boot cache: C:/Users/penrose4/AppData/Local/UnrealEngine/4.8/DerivedDataCache/Boot.ddc
    [2015.06.05-17.56.36:546]  0]LogDerivedDataCache: FDerivedDataBackendGraph:  Pak pak cache file ../../../../../../Users/penrose4/Documents/Unreal Projects/DK2Test/DerivedDataCache/DDC.ddp not found, will not use a pak cache.
    [2015.06.05-17.56.36:546]  0]LogDerivedDataCache: Unable to find inner node Pak for hierarchical cache Hierarchy.
    [2015.06.05-17.56.36:546]  0]LogDerivedDataCache: FDerivedDataBackendGraph:  CompressedPak pak cache file ../../../../../../Users/penrose4/Documents/Unreal Projects/DK2Test/DerivedDataCache/Compressed.ddp not found, will not use a pak cache.
    [2015.06.05-17.56.36:546]  0]LogDerivedDataCache: Unable to find inner node CompressedPak for hierarchical cache Hierarchy.
    [2015.06.05-17.56.36:649]  0]LogDerivedDataCache:Display: Pak cache opened for reading ../../../Engine/DerivedDataCache/Compressed.ddp.
    [2015.06.05-17.56.36:660]  0]LogDerivedDataCache: Using Local data cache path C:/Users/penrose4/AppData/Local/UnrealEngine/Common/DerivedDataCache: Writable
    [2015.06.05-17.56.36:795]  0]ImportText (ComponentSweepMultiTests): Missing closing parenthesis: (RootShapeAsset="/Engine/BasicShapes/Cube.Cube",ShapeType="TriggerCapsule",HitResult=(Time=0.50,Location=(X=-100.000015,Y=0.0,Z=100.000015),ImpactPoint=(X=-50.0,Y=0.0,Z=50.0),Normal=(X=-1.0,Y=-0.0,Z=0.0),ImpactNormal=(X=0.0,Y=0.0,Z=1.0),TraceStart=(X=-200.0,Y=0.0,Z=200.0),TraceEnd=(X=0.0,Y=0.0,Z=0.0))
    [2015.06.05-17.56.36:795]  0]ImportText (LineTraceSingleByChannelTests): Missing closing parenthesis: (RootShapeAsset="/Engine/BasicShapes/Cube.Cube",HitResult=(Time=0.50,Location=(X=-100.000015,Y=0.0,Z=100.000015),ImpactPoint=(X=-50.0,Y=0.0,Z=50.0),Normal=(X=-1.0,Y=-0.0,Z=0.0),ImpactNormal=(X=0.0,Y=0.0,Z=1.0),TraceStart=(X=-200.0,Y=0.0,Z=200.0),TraceEnd=(X=0.0,Y=0.0,Z=0.0))
    [2015.06.05-17.56.36:800]  0]LogInit: Selected Device Profile: [Windows]
    [2015.06.05-17.56.36:816]  0]LogMeshUtilities: No automatic mesh reduction module available
    [2015.06.05-17.56.36:816]  0]LogMeshUtilities: No automatic mesh merging module available
    [2015.06.05-17.56.37:091]  0]LogInit: WinSock: version 1.1 (2.2), MaxSocks=32767, MaxUdp=65467
    [2015.06.05-17.56.37:394]  0]LogWindowsMoviePlayer: Unable to load movie: ../../../../../../Users/penrose4/Documents/Unreal Projects/DK2Test/Content/Movies/Default_Startup.mp4
    [2015.06.05-17.56.37:531]  0]SourceControl: Info Source control is disabled
    [2015.06.05-17.56.37:532]  0]SourceControl: Info Source control is disabled
    [2015.06.05-17.56.37:537]  0]SourceControl: Info Source control is disabled
    [2015.06.05-17.56.37:647]  0]LogObj: 25783 objects as part of root set at end of initial load.
    [2015.06.05-17.56.37:647]  0]LogUObjectAllocator: 5197536 out of 0 bytes used by permanent object pool.
    [2015.06.05-17.56.37:696]  0]LogAutomationTest:Warning: ERR: Transient text cannot be serialized "Testing Transient serialization detection".
    [2015.06.05-17.56.37:696]  0]LogEngine: Initializing Engine...
    [2015.06.05-17.56.37:697]  0]OCULUS: Info: [CAPI] LibOVR module is located at C:\Windows\system32\LibOVRRT64_0_6.dll

If the Rift is off, the log pretty much stops here. If it’s on, though, this is how the log continues:


    [2015.06.05-17.56.37:800]  0]LogHMD:Warning: HMD Oculus Rift DK2, res = 1920 x 1080
    [2015.06.05-17.56.37:800]  0]LogHMD: Oculus plugin initialized. Version: 4.8.0-2564697+++depot+UE4-Releases+4.8, LibOVR: 0.6.0.0, built May 26 2015, 05:53:59
    [2015.06.05-17.56.37:903]  0]LogInit: XAudio2 using 'Realtek Digital Output (Realtek High Definition Audio)' : 2 channels at 48 kHz using 16 bits per sample (channel mask 0x3)
    [2015.06.05-17.56.37:909]  0]LogInit: FAudioDevice initialized.
    [2015.06.05-17.56.37:912]  0]LogInit: Texture streaming: Disabled
    [2015.06.05-17.56.37:954]  0]LogNet: Browse: /Temp/Autosaves/Temp/UEDPCUntitled_1?Name=Player
    [2015.06.05-17.56.37:954]  0]LogLoad: LoadMap: /Temp/Autosaves/Temp/UEDPCUntitled_1?Name=Player
    [2015.06.05-17.56.37:961]  0]LogParticles: Destroying 0 GPU particle simulations for FXSystem 0x000000000AF7D940
    [2015.06.05-17.56.37:966]  0]LogMemory: Platform Memory Stats for Windows
    [2015.06.05-17.56.37:966]  0]LogMemory: Process Physical Memory: 350.45 MB used, 350.45 MB peak
    [2015.06.05-17.56.37:966]  0]LogMemory: Process Virtual Memory: 297.95 MB used, 300.89 MB peak
    [2015.06.05-17.56.37:966]  0]LogMemory: Physical Memory: 3334.07 MB used, 16245.11 MB total
    [2015.06.05-17.56.37:966]  0]LogMemory: Virtual Memory: 788.54 MB used, 8388608.00 MB total
    [2015.06.05-17.56.37:966]  0]LogMemory: 
    [2015.06.05-17.56.37:966]  0]Allocator Stats for TBB: (not implemented)
    [2015.06.05-17.56.38:185]  0]LogAIModule: Creating AISystem for world Untitled_1
    [2015.06.05-17.56.38:185]  0]LogWorld: Game class is 'GameMode'
    [2015.06.05-17.56.38:190]  0]LogWorld: Bringing World /Temp/Autosaves/Temp/UEDPCUntitled_1.Untitled_1 up for play (max tick rate 0) at 2015.06.05-10.56.38
    [2015.06.05-17.56.38:191]  0]LogWorld: Bringing up level for play took: 0.001037
    [2015.06.05-17.56.38:192]  0]LogInit:Display: Game Engine Initialized.
    [2015.06.05-17.56.38:459]  0]LogAssetRegistry: FAssetRegistry took 0.0002 seconds to start up
    [2015.06.05-17.56.38:459]  0]LogLoad: Full Startup: 4.34 seconds (BP compile: 0.06 seconds)
    [2015.06.05-17.56.38:464]  0]LogContentStreaming: Texture pool size is 1000.000000MB
    [2015.06.05-17.56.38:553]  2]LogRenderer: Reallocating scene render targets to support 1280x720 (Frame:2).
    [2015.06.05-17.56.39:977][242]LogRenderer: Reallocating scene render targets to support 1920x1080 (Frame:244).
    [2015.06.05-17.56.40:047][242]LogHMD: Allocated a new swap texture set (size 2400 x 1464)
    [2015.06.05-17.56.40:068][244]LogHMD: Allocated a new mirror texture (size 1920 x 1080)
    [2015.06.05-17.56.40:068][244]LogRenderer: Reallocating scene render targets to support 2400x1464 (Frame:246).
    [2015.06.05-17.56.40:083][244]OCULUS: Info: 
    [2015.06.05-17.56.40:153][245]OCULUS: Info: 
    [2015.06.05-17.56.40:174][246]LogRenderTargetPool:Warning: r.RenderTargetPoolMin exceeded 409/400 MB (ok in editor, bad on fixed memory platform)
    [2015.06.05-17.56.40:175][246]OCULUS: Info: 
    [2015.06.05-17.56.40:196][247]OCULUS: Info: 
    [2015.06.05-17.56.40:218][248]OCULUS: Info: 
    [2015.06.05-17.56.40:232][249]LogRenderTargetPool:Warning: r.RenderTargetPoolMin exceeded 409/400 MB (ok in editor, bad on fixed memory platform)
    [2015.06.05-17.56.40:232][249]OCULUS: Info: 
    [2015.06.05-17.56.40:252][250]OCULUS: Info: 
    [2015.06.05-17.56.40:269][251]OCULUS: Info: 
    [2015.06.05-17.56.40:286][252]LogRenderTargetPool:Warning: r.RenderTargetPoolMin exceeded 409/400 MB (ok in editor, bad on fixed memory platform)
    
    < These lines keep repeating several times per second >

I found this post on AnswerHub regarding exceeded r.RenderTargetPoolMin, and changing that value to 500 in the console before fullscreening the game does make those warnings stop, but it doesn’t seem to fix the problem.

Any ideas? Thanks!

FWIW, 4.8 Preview 2 seems to be working for DK2.

Same thing happening to me with 4.8 release

Same. Worked good with 4.7.x, now its bugged, and i need to change to the extend desktop’

DK2 not working - Blackscreen when using direct mode (worked fine in earlier version) and when using extended mode, It just crashes!

I get this error if i dont use VR preview and run in a stand alone game. (again crashes on start-up)

LogScript:Warning: UGameplayStatics::SpawnEmitterAttached: NULL AttachComponent specified!

Anyone got any ideas, Cant even use this DK2 at the moment, which is not good when you are making a VR game.

I am using U4 4.8 and have updated oculus runtime to 6.0.0

In my crash window, I noticed this :

"Assertion failed: ViewFamily.RenderTarget->GetRenderTargetTexture() File:D:\BuildFarm\buildmachine_++depot+UE4-Releases+4.8\Engine\Plugins\Runtime\OculusRift\S

If this has anything to do with it

Not working for me either (4.8 OS X)