ValveSoftware / openvr

OpenVR SDK
http://steamvr.com
BSD 3-Clause "New" or "Revised" License
6.03k stars 1.27k forks source link

Error starting compositor in 64 bits app #270

Open CUSkidmore opened 7 years ago

CUSkidmore commented 7 years ago

I want to use OpenVR without having SteamVR app running, which is fine since VR_Init starts the server, and VRCompositor() starts the compositor. In my 64-bit app, VR_Init (&eError, vr::VRApplication_Scene)succeeds, however VRCompositor() returns false if SteamVR is not running. When calling VRCompositor(), vrcompositor.exe starts up briefly then quits.

This same sequence works fine in 32 bit app - vrcompositor.exe starts up and stays running.

Edit: forget to specify - this is a Windows app running on Win 7 built with VS 2012.

CUSkidmore commented 7 years ago

Thanks for those links, but this really doesn't help me or address my problem. It doesn't help because the process of installing the software in the videos is no less onerous than just installing Steam/SteamVR. My real problem is with the OpenVR SDK, and the inconsistent behavior of the API call VRCompositor().

In 32 bits mode, VRCompositor() starts the vrcompositor.exe runtime (which stays running) and returns True. In 64 bits mode, VRCompositor() starts the vrcompositor.exe runtime (which almost immediately quits) and returns False.

The workaround for this is to start SteamVR manually from the Steam app, but I'm trying to avoid this.

Thanks, Joe

On 9/24/2016 8:00 AM, Shaun wrote:

http://steamcommunity.com/sharedfiles/filedetails/?id=604174666

https://www.youtube.com/watch?v=fxqZSGAC9WI

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/ValveSoftware/openvr/issues/270#issuecomment-249361245, or mute the thread https://github.com/notifications/unsubscribe-auth/AVXNFvxtKPqlKLXfJ4eWScd2TSwJfwt3ks5qtRDBgaJpZM4KFNG8.