ValveSoftware / openvr

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

OpenVR.Settings.GetFloat lead to crash (with SteamVR beta 1.9.1) #1241

Closed sergioberg closed 4 years ago

sergioberg commented 4 years ago

Code:
var err5 = EVRSettingsError.None; ss = OpenVR.Settings.GetFloat(OpenVR.k_pch_SteamVR_Section, OpenVR.k_pch_SteamVR_SupersampleScale_Float, ref err5);

Exception: System.AccessViolationException HResult=0x80004003 Attempted to read or write protected memory. This is often an indication that other memory is corrupt.

Exception at line 3382 in openvr_api.cs (1.8.19): public float GetFloat(string pchSection,string pchSettingsKey,ref EVRSettingsError peError) { ===>>>>> float result = FnTable.GetFloat(pchSection,pchSettingsKey,ref peError); return result; }

Affects my app "fpsVR" ( https://store.steampowered.com/app/908520/fpsVR/ ) with both 1.8.19 and 1.2.10 openvr_api.dll and openvr_api.cs

Superhot VR, Bigscreen, H3VR crashes too (not sure if this same issue, but probably yes)

sergioberg commented 4 years ago

I forgot to mention the most important thing, the issue is observed only with SteamVR beta 1.9.1 :)

sergioberg commented 4 years ago

fixed in 1.9.2