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. Dismiss Notice

Bug MARS 1.5.0 Errors

Discussion in 'Unity MARS' started by wickedwaring, Oct 21, 2022.

  1. wickedwaring

    wickedwaring

    Joined:
    Feb 5, 2014
    Posts:
    32
    Hi,

    Unity: 2021.3.8f1

    Getting these errors on clean install of MARs in new URP project, anyone have a clue what’s going on?

    upload_2022-10-21_11-27-45.png

    Best
    Matt
     

    Attached Files:

  2. mtschoen

    mtschoen

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    188
    Hi there! Sorry to hear you're having trouble.

    It looks like this will happen in 2021.3 if you use the MARS installer at this point in time. The issue is that the installer/package manager will install the latest major release of AR Foundation, but does not expose that version of the AR plugins (ARKit and ARCore) in the UI. We'll work on an update to the installer to make this process go a little more smoothly for future users.

    You can fix this issue by manually updating your `Packages/manifest.json` file to point at the `5.0.2` version of `com.unity.xr.arkit`. `com.unity.xr.arkit-face-tracking` is actually obsolete as of version 5, since its contents have been merged into the main ARKit Plugin package. In other words, you can just remove it from your project and upgrade to ARKit 5.0.2. When configuring future projects, you can avoid this issue by installing the ARKit package directly by name. To do this, press the "+" drop-down in the package manager UI and select "Add package by name..." and type in "com.unity.xr.arkit" and press "Add" or Enter.

    I'll update this thread when we have a proper fix in place. Thanks for letting us know about this issue!
     
  3. wickedwaring

    wickedwaring

    Joined:
    Feb 5, 2014
    Posts:
    32
    Hi mtschoen,

    Thanks for the quick reply, here is my manifest.json, it seems to already be 5.0.2

    {
    "dependencies": {
    "com.unity.ar-companion-core": "2.0.0-preview",
    "com.unity.collab-proxy": "1.17.1",
    "com.unity.content-manager": "0.1.6-preview",
    "com.unity.ide.rider": "3.0.16",
    "com.unity.ide.visualstudio": "2.0.16",
    "com.unity.ide.vscode": "1.2.5",
    "com.unity.mars": "1.5.0",
    "com.unity.mars-ar-foundation-providers": "1.5.0",
    "com.unity.mars-ar-foundation-support": "file:../localcontentpacks/arfoundationsupport_standard",
    "com.unity.mars-nav-mesh": "1.5.0",
    "com.unity.render-pipelines.universal": "12.1.7",
    "com.unity.runtime-scene-serialization": "0.6.0-preview",
    "com.unity.test-framework": "1.1.31",
    "com.unity.textmeshpro": "3.0.6",
    "com.unity.timeline": "1.6.4",
    "com.unity.ugui": "1.0.0",
    "com.unity.visualscripting": "1.7.8",
    "com.unity.xr-content.mars-sim-environments": "file:../ContentPackages/com.unity.xr-content.mars-sim-environments.tgz",
    "com.unity.xr.arfoundation": "5.0.2",
    "com.unity.xr.arkit": "5.0.2",
    "com.unity.xr.management": "4.2.1",
    "com.unity.modules.ai": "1.0.0",
    "com.unity.modules.androidjni": "1.0.0",
    "com.unity.modules.animation": "1.0.0",
    "com.unity.modules.assetbundle": "1.0.0",
    "com.unity.modules.audio": "1.0.0",
    "com.unity.modules.cloth": "1.0.0",
    "com.unity.modules.director": "1.0.0",
    "com.unity.modules.imageconversion": "1.0.0",
    "com.unity.modules.imgui": "1.0.0",
    "com.unity.modules.jsonserialize": "1.0.0",
    "com.unity.modules.particlesystem": "1.0.0",
    "com.unity.modules.physics": "1.0.0",
    "com.unity.modules.physics2d": "1.0.0",
    "com.unity.modules.screencapture": "1.0.0",
    "com.unity.modules.terrain": "1.0.0",
    "com.unity.modules.terrainphysics": "1.0.0",
    "com.unity.modules.tilemap": "1.0.0",
    "com.unity.modules.ui": "1.0.0",
    "com.unity.modules.uielements": "1.0.0",
    "com.unity.modules.umbra": "1.0.0",
    "com.unity.modules.unityanalytics": "1.0.0",
    "com.unity.modules.unitywebrequest": "1.0.0",
    "com.unity.modules.unitywebrequestassetbundle": "1.0.0",
    "com.unity.modules.unitywebrequestaudio": "1.0.0",
    "com.unity.modules.unitywebrequesttexture": "1.0.0",
    "com.unity.modules.unitywebrequestwww": "1.0.0",
    "com.unity.modules.vehicles": "1.0.0",
    "com.unity.modules.video": "1.0.0",
    "com.unity.modules.vr": "1.0.0",
    "com.unity.modules.wind": "1.0.0",
    "com.unity.modules.xr": "1.0.0"
    }
    }

    Also, as an update, I can for some reason actually run the project and MARS seems to be operational, but the errors do come up, also when I add a unit test with the test runner I get an error like this -

    Run Failed: One or more errors in a prebuild setup. See the editor log for details.
    UnityEditor.EditorApplication:Internal_CallUpdateFunctions () (at /Users/bokken/buildslave/unity/build/Editor/Mono/EditorApplication.cs:356)

    Which might be related, be of course I cannot continue with the clean project with 140+ errors anyway as makes no sense to build on top of it.

    What next do you think?

    Best
    Matt
     
    Last edited: Oct 23, 2022
  4. mtschoen

    mtschoen

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    188
    Huh! That is quite unexpected. Could you submit this project through the bug reporter? This isn't what I was seeing locally with a similar manifest, so we'll need to dig a little deeper to figure out what's going on here.
     
  5. mtschoen

    mtschoen

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    188
    OK I had a chance to test it out with this manifest. The issue is that we need to update the AR Foundation Support content pack. If you remove that, you should be good. All that it does is add a set of specified AR Foundation package versions, but they are out of date.
     
    wickedwaring likes this.
  6. wickedwaring

    wickedwaring

    Joined:
    Feb 5, 2014
    Posts:
    32
    I am pleased to say removing that ARF Support package removed the errors and also allowed my unit tests to run.

    What is that actually used for now? I was following a Unity tutorial when reinstalling MARs which told me to include it?
     
  7. mtschoen

    mtschoen

    Unity Technologies

    Joined:
    Aug 16, 2016
    Posts:
    188
    It should still be a "shortcut" to getting the official verified versions installed, but it's gone out of date. We'll need to update this from our end, but it was overlooked when we rolled out 1.5.0.
     
    wickedwaring likes this.