OSVR / OSVR-Core

The core libraries, applications, and plugins of the OSVR software platform.
Apache License 2.0
329 stars 124 forks source link

error [RenderManager]: Invalid display mode index: -1 (mode not found based on either index or parameters) #605

Closed kungfooman closed 9 months ago

kungfooman commented 9 months ago

Full log:

C:\Program Files\OSVR\Runtime\bin>RenderManagerD3DPresentExample3D.exe
Jan 30 12:49:14.730 info [OSVR]: Logging for C:\Program Files\OSVR\Runtime\bin\RenderManagerD3DPresentExample3D.exe
Jan 30 12:49:14.731 info [OSVR: osvr.RenderManager.D3DPresentExample3D]: OSVR client context initialized for osvr.RenderManager.D3DPresentExample3D
Jan 30 12:49:14.738 info [OSVR: osvr.RenderManager.D3DPresentExample3D]: Got connection to main OSVR server
Jan 30 12:49:14.869 info [OSVR: osvr.RenderManager.D3DPresentExample3D]: Connected 0 of 0 unconnected paths successfully
Jan 30 12:49:14.884 info [OSVR: osvr.RenderManager.D3DPresentExample3D]: Connection process took 146ms: have connection to server, have path tree
Jan 30 12:49:14.884 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\Common\ClientInterface.cpp:38: Interface initialized for /controller/left/1
Jan 30 12:49:14.885 info [OSVR: osvr.RenderManager.D3DPresentExample3D]: Could not resolve source for /controller/left/1
Jan 30 12:49:14.885 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\Common\ClientInterface.cpp:38: Interface initialized for /controller/right/1
Jan 30 12:49:14.886 info [OSVR: osvr.RenderManager.D3DPresentExample3D]: Could not resolve source for /controller/right/1
Jan 30 12:49:14.887 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\Common\ClientInterface.cpp:38: Interface initialized for /me/head
Jan 30 12:49:14.889 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\Client\TrackerRemoteFactory.cpp:93: Constructed a TrackerHandler for org_osvr_filter_videoimufusion/HeadFusion@localhost:3883 sensor 0
Jan 30 12:49:14.889 info [OSVR: osvr.RenderManager.D3DPresentExample3D]: Successfully produced handler for /me/head
Jan 30 12:49:14.890 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\Common\ClientInterface.cpp:38: Interface initialized for /me/head
Jan 30 12:49:14.890 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\Common\ClientInterface.cpp:38: Interface initialized for /me/head
Jan 30 12:49:14.891 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\Client\DisplayConfig.cpp:195: Display: OSVR HDK (Version 1.3) [Display descriptor note: Specific to the optics of 1.3, with Render Manager compatible distortion parameters]
Jan 30 12:49:14.892 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\ClientKit\DisplayC.cpp:47: Created an OSVR_DisplayConfigObject!
Jan 30 12:49:15.092 error [createRenderManager]: Got Display info from server (ignore earlier errors that occured while we were waiting to connect)
OSVRDisplayConfiguration::parse(): Using polynomial distortion.
Jan 30 12:49:15.095 info [createRenderManager]: Display descriptor reports vendor as OSVR
Jan 30 12:49:15.096 info [createRenderManager]: Adding direct mode candidate PNPID SEN described as Some OSVR HDK units with early firmware/EDID data
Jan 30 12:49:15.097 info [createRenderManager]: Adding direct mode candidate PNPID SVR described as Most OSVR HDK units
Jan 30 12:49:15.097 info [createRenderManager]: Adding direct mode candidate PNPID AUO described as Some OSVR HDK2 firmware versions
Jan 30 12:49:15.133 info [OSVR: com.osvr.renderManager]: OSVR client context initialized for com.osvr.renderManager
Jan 30 12:49:15.136 info [OSVR: com.osvr.renderManager]: Got connection to main OSVR server
Jan 30 12:49:15.252 info [OSVR: com.osvr.renderManager]: Connected 0 of 0 unconnected paths successfully
Jan 30 12:49:15.268 info [OSVR: com.osvr.renderManager]: Connection process took 131ms: have connection to server, have path tree
Jan 30 12:49:15.268 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\Common\ClientInterface.cpp:38: Interface initialized for /me/head
Jan 30 12:49:15.270 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\Client\TrackerRemoteFactory.cpp:93: Constructed a TrackerHandler for org_osvr_filter_videoimufusion/HeadFusion@localhost:3883 sensor 0
Jan 30 12:49:15.271 info [OSVR: com.osvr.renderManager]: Successfully produced handler for /me/head
Jan 30 12:49:15.272 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\Common\ClientInterface.cpp:38: Interface initialized for /me/head
Jan 30 12:49:15.274 info [RenderManager]: RenderManagerNVidiaD3D11: High-priority context set
Jan 30 12:49:15.306 info [RenderManager]: RenderManagerNVidiaD3D11: Calling RenderManagerD3D11Base::OpenDisplay()
Jan 30 12:49:15.416 info [RenderManager]: RenderManagerD3D11Base::SetDeviceAndContext: Created D3D11 device
Jan 30 12:49:15.417 info [RenderManager]: RenderManagerD3D11Base::OpenDisplay(): Using display adapter NVIDIA GeForce RTX 3090
Jan 30 12:49:15.435 info [RenderManager]: RenderManagerNVidiaD3D11: High-priority context cleared
Jan 30 12:49:15.461 error [RenderManager]: Invalid display mode index: -1 (mode not found based on either index or parameters)
Could not open display
Jan 30 12:49:15.464 info [OSVR: osvr.RenderManager.D3DPresentExample3D]: OSVR client context shut down for osvr.RenderManager.D3DPresentExample3D
Jan 30 12:49:15.465 info [OSVR]: Z:\j\workspace\OSVR-Core-Build-Win\BIT\64\TRACING\OFF\VS\12\host\windows\src\osvr\ClientKit\DisplayC.cpp:50: OSVR_DisplayConfigObject destructor

C:\Program Files\OSVR\Runtime\bin>

image

Firmware from get-firmware-version.exe (just updated with help from old post of @rpavlik on Reddit):

OSVR HDK - Get Firmware Version utility

Connecting to HDK

Connected to COM5

Getting firmware version

>> Version 2.00 (RELEASE)  Feb  2 2017
>> Tracker:1.10.1.472
>>
>>
>>

Does anyone happen to know why examples like RenderManagerD3DPresentExample3D.exe don't work? I tried direct and extended mode.

kungfooman commented 9 months ago

I think it was fixed after installing OSVR-HDK-Combined-Driver-Installer-1.2.8.exe AND rebooting

rpavlik commented 9 months ago

HDK 1.x direct mode won't work on any modern NVIDIA driver. HDK2 has HDCP so NVIDIA direct mode should still work if they haven't changed the API.