Skip to main content
Up and Coming
November 3, 2014

Unhandled Exception Unity3D import OVR 0.4.3 into my project

This is an error that started cropping up when importing the 0.4.3 OVR pack into my Unity3D 4.5.3f3 project.
error message in console:

Internal compiler error. See the console log for more information. output was:
Unhandled Exception: Mono.CSharp.InternalErrorException: VerifyArgumentsCompat didn't find any problem with rejected candidate MethodBuilder [OVRGamepadController::GPC_GetAxis]

I can't see anything in the log that illuminates this error or I'd be able to fix it myself.
I can't figure out where the problem is.

:cry:

Anyone able to help with this one ?

    5 replies

    Inspiring
    November 3, 2014
    I recall hearing of problems with 4.5.3. Can you update to 4.5.5 instead?
    AMD Ryzen 7 1800X | MSI X370 Titanium | G.Skill 16GB DDR4 3200 | EVGA SuperNOVA 1000 | Corsair Hydro H110i Gigabyte RX Vega 64 x2 | Samsung 960 Evo M.2 500GB | Seagate FireCuda SSHD 2TB | Phanteks ENTHOO EVOLV
    Up and Coming
    November 4, 2014
    I'll give it a shot.
    The strange thing is that the error does not appear if it's on new projects.

    Thanks, I'll post the results when I've got that far.
    Up and Coming
    November 4, 2014
    4.5.5f1 and still the same problem :(
    Participant
    November 12, 2014
    I had the same problem and was able to solve it:

    Close Unity.
    Remove OVR Folder from the asset folder.
    Remove all oculus DLL's in your project folder.
    Start unity.
    Import new oculus sdk package.
    Have fun.

    I think the problem is, that unity loads the old dll while compiling and cannot replace the old dll.


    edit:
    That did not solve the problem entirely.

    If have something like this:

    VRGamepadController.GPC_GetAxis((int)OVRGamepadController.Axis.LeftXAxis)

    remove the cast. The signature of GPC_GetAxis changed and for some reason the compiler is not able to handle this.
    Up and Coming
    November 22, 2014
    What do you mean by "remove the cast" ?