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

Bug ExecutionEngineException: Attempting to call method

Discussion in 'Visual Scripting' started by unity_ED96B2386ED1BC5BB935, Jan 13, 2023.

  1. unity_ED96B2386ED1BC5BB935

    unity_ED96B2386ED1BC5BB935

    Joined:
    Jan 5, 2023
    Posts:
    2
    When build IL2CPP and start project on device (Android/IOS) get error:

    ExecutionEngineException: Attempting to call method 'Unity.VisualScripting.InstanceFunctionInvoker`5[[UnityEngine.XR.ARFoundation.ARPlaneManager, Unity.XR.ARFoundation, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[UnityEngine.Ray, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[UnityEngine.XR.ARSubsystems.TrackableType, Unity.XR.ARSubsystems, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[Unity.Collections.Allocator, UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null],[Unity.Collections.NativeArray`1[[UnityEngine.XR.ARSubsystems.XRRaycastHit, Unity.XR.ARSubsystems, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], UnityEngine.CoreModule, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]]::.ctor' for which no ahead of time (AOT) code was generated.

    My UVS looks like this:
    Screenshot 2023-01-14 at 00.10.45.png

    Unity 2021.3.16f1
    VisualScripting 1.7.8
    ARFoundtation 4.2.7
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    1,793
    Force the package update to UVS 1.8.0 in the package manager manifest.json. It should be fixed in that update.
     
  3. unity_ED96B2386ED1BC5BB935

    unity_ED96B2386ED1BC5BB935

    Joined:
    Jan 5, 2023
    Posts:
    2
    All work perfect on 1.8.0 version. Thank you!