Opening and playing the project from Case 1108597 in Unity 2020.2.0a15 editor outputs the following error message to the Console window:
Loading assembly failed: "Assets/Code/Plugins/XInputDotNet/x86_64/XInputDotNetPure.dll"
Opening/playing the project in Unity 2020.1.0b13 editor does not output the error.
I don’t know if the error is expected. XInputDotNetPure.dll
seems to be built with .NET3.5, maybe it’s related to that?
However, I submitted the bug-report, because it’s a regression and I’m not sure if it’s perhaps a bigger issue and should be looked at.
I personally can live without using that specific assembly.
Thanks for the report Peter. We’ll look into it.
1 Like
QA was abke to repro, thank you!
1 Like
Hey there! So this is actually expected behavior though admittedly it could be a bit more clear. In the editor log it has:
Could not load image \XInputDotNet\x86_64\XInputDotNetPure.dll due to Invalid PE header Machine value
Failed loading assembly Assets/Code/Plugins/XInputDotNet/x86_64/XInputDotNetPure.dll
Loading assembly failed: “Assets/Code/Plugins/XInputDotNet/x86_64/XInputDotNetPure.dll”
I’ll work on getting the reason for load failure bubbled up to the editor log so it’s clearer. Recently I added the ability for the editor to verify the portable executable headers prior to loading the dll in order to prevent the loading of corrupt dlls which cause crashes when they are used.
1 Like