-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Steam vr compositor fails to start with "Invalid adapter (-1, -1) specified!" #82
Comments
I'm also having this same problem. I have not yet had SteamVR start successfully in Direct Mode, when starting a game from within Steam - Compositor fails to start as described in OP. However .... If I edit the SteamVR config file to disable direct mode, the compositor starts correctly when running games from Steam but is in Extended Mode of course. Curiously, I also found that if I ran 'hellovr_sdl' outside of Steam, then Direct Mode started correctly with the Compositor running, and that I could then run SteamVR Room setup-up, Tutorial, and games (eg The Rose & I) correctly. When I compare the StemVR logs between a good start using 'hellovr' and a failed start (directly from Steam), there are no obvious differences (ie failure codes, or errors) except for the "Invalid adapter specified" message as described in the OP. |
I didn't mention in the original post, I'm using a DK1 and I've verified that osvr is working correctly because I get the correct image and correct tracking in the d3d sample app. I'm going to see if I can get the driver compiling tonight. We use visual studio at work so I don't have much experience with cmake. If anyone has any pointers as to where I can start looking to debug the issue I'd appreciate any help you can give. |
@farnk @Nicko453 |
I installed the latest release from your link, but I'm still seeing the same problem. I uninstalled the runtime and delete the programs file directory, and I did the same with steam VR, and then started fresh. There were several different versions of the osvr runtime, I downloaded build 258. The vrcompositor.txt still failed with invalid adapter (-1, -1). |
@farnk If you're using a DK1 then you may need to add a couple settings to the You can use the example You'll need to set the You may also need to set the For example, let's say the native resolution of your HMD is 1080×1920 and there is no rotation applied (i.e., it appears in a portrait orientation). When you're wearing your HMD, where is the top-left corner of the desktop? If it's at the upper-right corner, use that in the config file. If it's in the lower-left corner, use that instead. If you continue to have problems or have any further questions, please set the |
Sun Aug 21 2016 11:24:07.855 - ================================================================================================ |
Sun Aug 21 2016 11:24:07.855 - ================================================================================================ |
Modifying the steamvr.vrsettings file like you suggested allowed the compositor to start correctly! Thanks. Now the room setup is failing, but I think there's a way I can input the numbers manually. I attached the vrserver.txt and vrmonitor.txt just in case there's something relevant in there. Thanks for you help! |
@Nicko453 The latter log file looks pretty good, though you may need to upgrade the firmware on your HDK to get direct mode to work. |
@farnk Room setup requires head tracking, so you might check that that's working okay using the OSVR Tracker Viewer. Otherwise, your log file looks pretty good! |
The Rift is showing a white wireframe sphere and the tracking is working, but the original rift doesn't have positional tracking, just rotational, maybe that's the problem. I thought I read somewhere that you can generate the room setup file manually and set the height so that the headset doesn't seem like it's on the ground, but I can't find it right now. Do you know of any steam apps that are cheap and good which I can use to test if things are working? |
@farnk You might give InMind VR a try. It doesn't really require position tracking since you're just shooting neurons by staring at them for a second. It doesn't require controllers either. And it's free! |
I restarted everything and I was able to get room setup to complete and InMind is working! Now I need to get the IPD right, I was able to get it working in a native OSVR game by adjusting the "center_proj" in the display setup, but then it was wrong in another demo I tried. Is there a better way to do that? |
|
@farnk You can try setting an IPD value in the I don't know if that will override the constant IPD we have in the OSVR driver or not. (OSVR doesn't currently provide a real IPD value, but it's on the to-do list.) |
@Nicko453 When the HDK is in direct mode, it's invisible to Windows and the detection code can't see it. At that point, it falls back on settings from the configuration files. |
Setting the "center_proj" values in the display JSON fixes the D3D sample app, but doesn't affect the steam games, and setting the IPD in steamvr.vrsettings doesn't seem to do anything to the steam vr test room, or InMind. Although I have a feeling that it may not be related to steam because I was trying the "osvr vomit coaster" which works naively with the osvr api and it also didn't draw correctly. |
Unfortunately, SteamVR doesn't appear to make use of the center-of-projection values at the moment. |
Is this possibly a timing issue ? I can reproduce this behaviour 100% , but don't understand why. I still get the compositor failure referenced in the OP when I start SteamVR from Steam (or as the result of launching a game). However, if I launch 'hellovr_sdl' Steam test app everything works correctly. I have attached a steamvr log file to show this. The exact steps taken (and system behaviour) are as follows:
I am wondering if there is a timing problem of the HDK being put into Direct mode before the steam osvr driver has read the adapter details and initialised correctly. No idea why it should fail when launched directly or indirectly from Steam, but works when using the hellovr test app. Log of the above activity is attached here: You can see in the log file - on the first run (launching SteamVR directly, and getting the error), the HDK is already in Direct mode, and the osvr driver fails to see the adapter: However, in both cases the HDK was definitely in Extended mode at the start of each of these tests. |
@godbyk I was looking at the SteamVR sdk docs and the OSVRTrackedDevice.cpp source file. I'm new to this, but it seems like SteamVR is using IVRSystem::GetProjectionRaw to setup the projection matrix for each eye. Looking at your driver code you're getting the clipping planes this from the osvr::clientkit::DisplayConfig object provided by OSVR. It seems to me like the OSVR server should have already taken the center_proj values into account when populating this structure and so this may be a bug in OSVR. If you think this may be a possibility, let me know and I can start looking at the OSVR source code. |
Ok, I looked at the OSVR source and the center_proj values are actually used in the distortion calculations in osvr::renderkit::DistortionCorrectRGBSymmetricPolynomials which is called by your plugin's call to osvr::renderkit::DistortionCorrectTextureCoordinate so it should be working correctly if SteamVR is calling IVRDisplayComponent::ComputeDistortion. I'll have to look into it more tonight. |
SteamVR definitely does call |
@farnk Hey I've been having a similar error with a dk2 clone. Would it be possible to see your steamvr.vrsettings file to see what a working one with a non osvr headset looks like? |
@farnk could you solve this issue??? I was doing OK until last SteamVR Update and now evertying I try doesn't work. The closer I could get now is SteamVR showin HMD and sensor green, not ready and vrcompositor failig with this log:
any ideas r welcome.. Hardware and driver setup: HDK 2 |
Description of issue
I'm trying to start steam VR but the compositor never starts correct. The output from vrcompositor.txt is:
Wed Aug 17 2016 14:37:54.275 - VR compositor (v1469551863) starting up
Wed Aug 17 2016 14:37:54.275 - RuntimePath : C:\Program Files (x86)\Steam\steamapps\common\SteamVR
Wed Aug 17 2016 14:37:54.657 - Events created
Wed Aug 17 2016 14:37:54.668 - Initializing D3D resources...
Wed Aug 17 2016 14:37:54.672 - Headset display is on desktop
Wed Aug 17 2016 14:37:54.678 - Invalid adapter (-1, -1) specified!
Wed Aug 17 2016 14:37:54.682 - Failed to initialize compositor
Wed Aug 17 2016 14:37:54.682 - Failed to start compositor: VRInitError_Compositor_Failed
Steps to reproduce the problem
System configuration
Graphics card(s): GTX 670
Operating system: Windows 7
Version of SteamVR: 1469551863)
Version of SteamVR-OSVR: v0.1-194-g92739af-core-v0.6-1197-g8796762
Attached files
vrclient_vrmonitor.txt
vrcompositor.txt
vrclient_Steam.txt
vrmonitor.txt
vrserver.txt
vrclient_vrcompositor.txt
osvr_server_config.json.txt
The text was updated successfully, but these errors were encountered: