ValveSoftware / openvr

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

ShowKeyboard returns VROverlayError_InvalidHandle #130

Open jrbudda opened 8 years ago

jrbudda commented 8 years ago

Did not have this problem before updating to 1.0.0.

Trying to show keyboard in game, not creating an overlay.

Calling ShowKeyboard, which takes no argument for overlay handle, fails to show the keyboard and return VROverlayError_InvalidHandle.

Do I have to create an overlay and use ShowKeyboardForOverlay instead?

jrbudda commented 8 years ago

Was able to work around by setting IVROverlay_Version = "VROverlay_010" instead of 012.

JoeLudwig commented 8 years ago

What version of SteamVR are you using? The beta? The default (non-beta) build?

jrbudda commented 8 years ago

That is a good question I had not thought of. I am in the beta branch.

JoeLudwig commented 8 years ago

Was this fixed by the SteamVR beta update last night? (Or by the general SteamVR update this afternoon?)

jrbudda commented 8 years ago

Has the openvr_api.dll changed in this update? Meaning do I need to call against it to test, or is it something my current .dll (signed fri, may 20th) would be able to test?

Sorry I'm not 100% sure how openvr finds/talks to steamvr.

jrbudda commented 8 years ago

I tried putting the overlay version back to 12 and that causes steamvr to deadlock and the next call to waitgetposes hangs and does not return.

I also noticed if SteamVR is not running the call to ShowKeyboard does not show the keyboard, naturally, but it also does not return an error.

BoJunHuang commented 8 years ago

"I also noticed if SteamVR is not running the call to ShowKeyboard does not show the keyboard, naturally, but it also does not return an error."

@jrbudda I guess that's because keyboard is an overlay and all overlays rely on vrdashboard.exe, which is started by SteamVR.