Build failed with OVRPlugin Error

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)