Crash in Packaged Build after deleting OpenVR

Hi there,

I am experiencing a somewhat unique issue and couldn’t find any other support topics regarding this. To upload a packaged build to the Oculus Store, the openvr_api.dll needs to be deleted from the Engine/Binaries/ThirdParty/ folder (they mention it conflicts with their systems). However, after deleting this file, my package crashes immediately on launch with the following error:

Error: === Critical error: ===
Error: 
Error: Fatal error!
Error: 
Error: Unhandled Exception: 0xc06d007e
Error: [Callstack] 0x000000006A984008 UnknownFunction []
Error: [Callstack] 0x000000009688E9A0 UnknownFunction []
Error: [Callstack] 0x000000009688E9A0 UnknownFunction []
Error: 
LogExit: Executing StaticShutdownAfterError

Based on the logs, this crash appears to happen before the map has loaded. Has anyone else experienced anything like this, or gone through the Oculus submission process and been able to launch their app succesfully without OpenVR in their package directory?

Thanks so much!

I should note, if the .dll file is deleted, but the Oculus is plugged in and running, the application does not crash.

Found the solution after a bit of digging through the plugins page in Unreal. Turns out the SteamVR plugin was still enabled even though the .uproject had it marked as enabled=false. Instead of manually deleting the OpenVR .dll file in the Binaries folder, I disabled it from the plugins page. After restarting the editor and compiling a build, this file was no longer packaged with the project automatically, and the crash was completely eradicated!

Hey ianoreo! I’m having this issue now too. The problem I’m encountering though is when I disable SteamVR to get rid of openvr_api.dll, once I package and run the .exe file, it won’t launch in my Rift. The game starts, but it won’t send to the HMD. How did you get around this? Thanks in advance.

If I delete it, it won’t launch at all. How did you get around this? Seems to work with 4.20.3, but not with 4.21