Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Unity VR broken unsure why (expected 64 bit architecture )

Discussion in 'AR/VR (XR) Discussion' started by ceteri, Nov 17, 2016.

  1. ceteri

    ceteri

    Joined:
    Mar 12, 2015
    Posts:
    11
    I have no idea what i have done, my VR project was working fine in the editor and has built previously but when i built it, it is now broken and wont run, i have not changed any code from my working version. i get the following error

    Failed to load 'Assets/TestBuild_Data/Plugins/OVRPlugin.dll', expected 64 bit architecture (IMAGE_FILE_MACHINE_AMD64), but was IMAGE_FILE_MACHINE_I386. You must recompile your plugin for 64 bit architecture.

    that is the first error followed by loads like this:
    'Assets/TestBuild_Data/Managed/Assembly-CSharp.dll' shouldn't be queried by IsAssemblyCompatible, missing IsInternalOrCompiledAssembly check ?

    can anyone suggest a solution, i tried deleting and reimporting the OVR package, but this did not fix it
     
  2. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    What build of Unity are you using? Did you upgrade or change versions between the time it ran standalone and the time it failed?
     
  3. ceteri

    ceteri

    Joined:
    Mar 12, 2015
    Posts:
    11
    v5.4.1f1 personal. No i last built and ran standalone last night, worked on the project today and everything was fine, then when i tried to rebuild it got all the errors and it wont even run in the editor now. It was running in the editor, i built the app and now it wont run in the editor and all the compiler errors are there
     
  4. joejo

    joejo

    Unity Technologies

    Joined:
    May 26, 2016
    Posts:
    958
    Hrm... maybe try uninstalling, making sure all files from the install location are removed and re-installing that version? Maybe a Windows update happened while you where away and messed things up? That's about all I can think of since nothing changed with your project or the version of Unity you are running.
     
  5. ceteri

    ceteri

    Joined:
    Mar 12, 2015
    Posts:
    11
    i literally pressed play in the editor, it worked, built the project, and it no longer works, thanks for the advice
     
  6. ceteri

    ceteri

    Joined:
    Mar 12, 2015
    Posts:
    11
    I have found out what the problem was (reinstalling Unity didn't work). I accidentally built the project in the Assets folder (as can be seen in the second error message). Deleting the build from the Assets folder and its associated Data folder fixed the problem. I am delighted as i didn't have a backup!