ValveSoftware / openvr

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

Bad Image: openvr_api.dll #528

Open aaronsnoswell opened 7 years ago

aaronsnoswell commented 7 years ago

I have an Unreal Engine 4.15 application that loads the SteamVR plugin during startup. A few of my users report that this application crashes upon opening with an error message 'Bad Image: openvr_api.dll'. This is occurring with the 64-bit version 1.0.2 of the OpenVR API dll.

Image of error message

I managed to get the dxdiag output from the user, I've attached this here (290175-dxdiag.txt). I've also attached the openvr_api.dll file that was causing the bad image error (openvr_api.zip). As far as I can tell it is identical to the working DLL on my machine (same SHA1 hash). I replaced my openvr_api.dll file with the offending one and the application runs fine on my machine.

The user does not have any other instances of the openvr_api.dll on their computer - I checked. The user has also updated their graphics drivers and the crash still happens.

Has anyone else seen this error?

aaronsnoswell commented 7 years ago

I thought this may be related to https://github.com/ValveSoftware/openvr/issues/412, but it doesn't seem to be.

aaronsnoswell commented 7 years ago

I have tested and this bug still occurs for my user with the SteamVR 1.0.7 openvr_api.dll file (downloaded from this GitHub repo's releases page).

natbro commented 7 years ago

I don't think we've seen this error regularly - it looks like the machine in question is a Windows 7 machine - is your machine Windows 7 as well, or Windows 10?

aaronsnoswell commented 7 years ago

Hi @natbro thanks for the reply. Indeed, my machine (where things work) is Windows 10. My users (some who are able to run the application, others who get this crash) are running Windows 7.