Build failed with OVRPlugin Error

Hello,
unfortunately we have problems to build our project. Here is the log:

***UATHelper: Packaging (Windows (64-bit)): Cook: LogInit: Display: NOTE: Only first 50 warnings displayed.
UATHelper: Packaging (Windows (64-bit)): Cook: LogInit: Display: 
UATHelper: Packaging (Windows (64-bit)): Cook: LogInit: Display: Failure - 40 error(s), 1673 warning(s)
UATHelper: Packaging (Windows (64-bit)): Cook: LogInit: Display: 
UATHelper: Packaging (Windows (64-bit)): Cook: 
UATHelper: Packaging (Windows (64-bit)): Cook: Execution of commandlet took:  217.58 seconds
UATHelper: Packaging (Windows (64-bit)): Cook: LogOnline: Display: Unloading online subsystem: NULL
UATHelper: Packaging (Windows (64-bit)): Cook: [OVRPlugin][ERROR] ovr_GetAudioDeviceInGuidStr failed: 
UATHelper: Packaging (Windows (64-bit)): Cook: [OVRPlugin][ERROR] Cannot get preferred VR audio IN device.[OVRPlugin][ERROR] ovr_GetAudioDeviceOutGuidStr failed: 
UATHelper: Packaging (Windows (64-bit)): Cook: [OVRPlugin][INFO] [CAPI] LibOVR module is located at C:\Program Files\Oculus\Support\oculus-runtime\LibOVRRT64_1.dll[OVRPlugin][INFO] IAD changed to 65.8mm
UATHelper: Packaging (Windows (64-bit)): Cook: [OVRPlugin][ERROR] Cannot get preferred VR audio OUT device.
UATHelper: Packaging (Windows (64-bit)): CommandUtils.Run: Run: Took 236,6418803s to run UE4Editor-Cmd.exe, ExitCode=1
UATHelper: Packaging (Windows (64-bit)): Project.Cook: Cook failed. Deleting cooked data.***
UATHelper: Packaging (Windows (64-bit)): Program.Main: ERROR: AutomationTool terminated with exception: AutomationTool.AutomationException: Cook failed. ---> AutomationTool.CommandletException: BUILD FAILED: Failed while running Cook for d:\Users\me\Documents\Unreal Projects\IntersportVR\IntersportVR.uproject; see log C:\Users\me\AppData\Roaming\Unreal Engin
e\AutomationTool\Logs\d+Program+Files+Epic+Games+UE_4.17\Cook-2017.10.05-11.37.41.txt
UATHelper: Packaging (Windows (64-bit)):    bei AutomationTool.CommandUtils.RunCommandlet(FileReference ProjectName, String UE4Exe, String Commandlet, String Parameters)
UATHelper: Packaging (Windows (64-bit)):    bei AutomationTool.CommandUtils.CookCommandlet(FileReference ProjectName, String UE4Exe, String[] Maps, String[] Dirs, String InternationalizationPreset, String[] CulturesToCook, String TargetPlatform, String Parameters)
UATHelper: Packaging (Windows (64-bit)):    bei Project.Cook(ProjectParams Params)
UATHelper: Packaging (Windows (64-bit)):    --- Ende der internen Ausnahmestapelüberwachung ---
UATHelper: Packaging (Windows (64-bit)):    bei Project.Cook(ProjectParams Params)
UATHelper: Packaging (Windows (64-bit)):    bei BuildCookRun.DoBuildCookRun(ProjectParams Params)
UATHelper: Packaging (Windows (64-bit)):    bei BuildCookRun.ExecuteBuild()
UATHelper: Packaging (Windows (64-bit)):    bei AutomationTool.BuildCommand.Execute()
UATHelper: Packaging (Windows (64-bit)):    bei AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands)
UATHelper: Packaging (Windows (64-bit)):    bei AutomationTool.Automation.Process(String[] Arguments)
UATHelper: Packaging (Windows (64-bit)):    bei AutomationTool.Program.MainProc(Object Param)
UATHelper: Packaging (Windows (64-bit)):    bei AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
UATHelper: Packaging (Windows (64-bit)):    bei AutomationTool.Program.Main()
UATHelper: Packaging (Windows (64-bit)): Program.Main: AutomationTool exiting with ExitCode=25 (Error_UnknownCookFailure)
UATHelper: Packaging (Windows (64-bit)): BUILD FAILED
PackagingResults: Error: Unknown Cook Failure

I searched the forums to find a solution for that, and we tried several things: First we put on the Rift on our production system, made a new Rift setup, then we stopped with this errors. We tried to build with activating and deactivating several plugins like OculusAudioPlugin or Oculus Online Subsystem, as this was mentioned in some posts, but everytime the process stops here.
Has anybody an idea, what we can try, to build our project?

Thanks in advance!

Hey! I was packaging a Windows 64-bit Oculus Simulation (UE4 4.18) also had this issue.

Because it crashed after the [OVRPlugin][ERROR], I thought it was an Oculus problem. Turns out it’s an incompatible GAME ICON issue.

I solved this by only building for Windows in Project Settings, and also converting an .ICO file online – like in this thread – https://answers.unrealengine.com/questions/18221/packed-game.html

Hope this helps. (Also: I just finished a VR standalone game with UE4.17 and didn’t have this problem.)


ERROR LOG:

ProcessResult.StdErr:   [OVRPlugin][ERROR] ovr_GetAudioDeviceInGuidStr failed:
ProcessResult.StdErr:   [OVRPlugin][ERROR] Cannot get preferred VR audio IN device.[OVRPlugin][ERROR] ovr_GetAudioDeviceOutGuidStr failed:
ProcessResult.StdErr:   [OVRPlugin][ERROR] Cannot get preferred VR audio OUT device.
ProcessResult.StdOut:   [OVRPlugin][INFO] [CAPI] LibOVR module is located at C:\Program Files\Oculus\Support\oculus-runtime\LibOVRRT64_1.dll[OVRPlugin][INFO] IAD changed to 65.1mm
CommandUtils.Run: Took 43.1377652s to run UE4Editor-Cmd.exe, ExitCode=0
InternalUtils.SafeDeleteFile: SafeDeleteFile C:\Users\Lawrence\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.18\Cook-2017.11.03-02.04.07.txt
InternalUtils.SafeCopyFile: SafeCopyFile C:\Program Files\Epic Games\UE_4.18\Engine\Programs\AutomationTool\Saved\Cook-2017.11.03-02.03.24.txt C:\Users\Lawrence\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.18\Cook-2017.11.03-02.04.07.txt
InternalUtils.SafeDeleteFile: SafeDeleteFile C:\Program Files\Epic Games\UE_4.18\Engine\Programs\AutomationTool\Saved\Cook-2017.11.03-02.03.24.txt
Project.Cook: ********** COOK COMMAND COMPLETED **********
InternalUtils.SafeFileExists: SafeFileExists E:\GEO_PART02\UE4\GEO_P2 4.16\GE0_P2.uproject=True
Project.CopyBuildToStagingDirectory: ********** STAGE COMMAND STARTED **********
InternalUtils.SafeCreateDirectory: SafeCreateDirectory E:\GEO_PART02\UE4\GEO_P2 4.16\Saved\StagedBuilds\WindowsNoEditor
InternalUtils.SafeCreateDirectory: SafeCreateDirectory C:\Users\Lawrence\Desktop\PLAYSTATION-VR\WindowsNoEditor
Project.LogDeploymentContext: Deployment Context **************
Project.LogDeploymentContext: ProjectFile = E:\GEO_PART02\UE4\GEO_P2 4.16\GE0_P2.uproject
Project.LogDeploymentContext: ArchiveDir = C:\Users\Lawrence\Desktop\PLAYSTATION-VR\WindowsNoEditor
Project.LogDeploymentContext: IsCodeBasedUprojectFile = False
Project.LogDeploymentContext: DedicatedServer = False
Project.LogDeploymentContext: Stage = True
Project.LogDeploymentContext: StageTargetPlatform = Win64
Project.LogDeploymentContext: InputRootDir = C:\Program Files\Epic Games\UE_4.18
Project.LogDeploymentContext: InputProjectDir = E:\GEO_PART02\UE4\GEO_P2 4.16
Project.LogDeploymentContext: PlatformDir = Win64
Project.LogDeploymentContext: StagedOutputDir = E:\GEO_PART02\UE4\GEO_P2 4.16\Saved\StagedBuilds\WindowsNoEditor
Project.LogDeploymentContext: ShortProjectName = GE0_P2
Project.LogDeploymentContext: ProjectArgForCommandLines = ../../../GE0_P2/GE0_P2.uproject
Project.LogDeploymentContext: RunRootDir = E:\GEO_PART02\UE4\GEO_P2 4.16\Saved\StagedBuilds\WindowsNoEditor
Project.LogDeploymentContext: RunProjectDir = E:\GEO_PART02\UE4\GEO_P2 4.16\Saved\StagedBuilds\WindowsNoEditor\GE0_P2
Project.LogDeploymentContext: PakFileInternalRoot = ../../../
Project.LogDeploymentContext: PlatformUsesChunkManifests = False
Project.LogDeploymentContext: End Deployment Context **************
Project.CreateStagingManifest: Creating Staging Manifest...
InternalUtils.SafeDeleteFile: SafeDeleteFile E:\GEO_PART02\UE4\GEO_P2 4.16\Intermediate\Staging\GE0_P2.exe
InternalUtils.SafeCopyFile: SafeCopyFile C:\Program Files\Epic Games\UE_4.18\Engine\Binaries\Win64\BootstrapPackagedGame-Win64-Shipping.exe E:\GEO_PART02\UE4\GEO_P2 4.16\Intermediate\Staging\GE0_P2.exe
ExceptionUtils.PrintExceptionInfo: ==============================================================================
ExceptionUtils.PrintExceptionInfo: ERROR: System.IO.InvalidDataException: Found invalid data while decoding.
ExceptionUtils.PrintExceptionInfo:           at GroupIconResource.ReadIconHeader(BinaryReader Reader)
ExceptionUtils.PrintExceptionInfo:           at GroupIconResource.FromIco(String FileName)
ExceptionUtils.PrintExceptionInfo:           at BaseWinPlatform.StageBootstrapExecutable(DeploymentContext SC, String ExeName, FileReference TargetFile, StagedFileReference StagedRelativeTargetPath, String StagedArguments)
ExceptionUtils.PrintExceptionInfo:           at BaseWinPlatform.GetFilesToDeployOrStage(ProjectParams Params, DeploymentContext SC)
ExceptionUtils.PrintExceptionInfo:           at Win64Platform.GetFilesToDeployOrStage(ProjectParams Params, DeploymentContext SC)
ExceptionUtils.PrintExceptionInfo:           at Project.CreateStagingManifest(ProjectParams Params, DeploymentContext SC)
ExceptionUtils.PrintExceptionInfo:           at Project.CopyBuildToStagingDirectory(ProjectParams Params)
ExceptionUtils.PrintExceptionInfo:           at BuildCookRun.DoBuildCookRun(ProjectParams Params)
ExceptionUtils.PrintExceptionInfo:           at BuildCookRun.ExecuteBuild()
ExceptionUtils.PrintExceptionInfo:           at AutomationTool.BuildCommand.Execute()
ExceptionUtils.PrintExceptionInfo:           at AutomationTool.Automation.Execute(List`1 CommandsToExecute, Dictionary`2 Commands)
ExceptionUtils.PrintExceptionInfo:           at AutomationTool.Automation.Process(String[] Arguments)
ExceptionUtils.PrintExceptionInfo:           at AutomationTool.Program.MainProc(Object Param)
ExceptionUtils.PrintExceptionInfo:           at AutomationTool.InternalUtils.RunSingleInstance(Func`2 Main, Object Param)
ExceptionUtils.PrintExceptionInfo:           at AutomationTool.Program.Main()
ExceptionUtils.PrintExceptionInfo:        (see C:\Users\Lawrence\AppData\Roaming\Unreal Engine\AutomationTool\Logs\C+Program+Files+Epic+Games+UE_4.18\UAT_Log.txt for full exception trace)