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

Lots of logs "Unable to find internal function" when ARFoundation starts

Discussion in 'Scripting' started by OnTopStudios, Aug 20, 2021.

  1. OnTopStudios

    OnTopStudios

    Joined:
    Aug 19, 2013
    Posts:
    44
    Hello,

    Lately we had to switch our project to IL2CPP and started having a bunch or errors at the start of our ARFoundation scene. This error occurs 70 times at the start and then it doesn't happen anymore.


    08-20 20:20:28.488 24602 10567 E Unity : Unable to find internal function `UnityEngine.Animations.TransformStreamHandle::SetLocalTRSInternal_Injected`
    08-20 20:20:28.488 24602 10567 E Unity : Unity.Jobs.LowLevel.Unsafe.JobsUtility:ScheduleParallelFor(JobScheduleParameters&, Int32, Int32)
    08-20 20:20:28.488 24602 10567 E Unity : Unity.Jobs.IJobParallelForExtensions:Schedule(T, Int32, Int32, JobHandle)
    08-20 20:20:28.488 24602 10567 E Unity : UnityEngine.XR.ARCore.ARCoreProvider:GetBoundary(TrackableId, Allocator, NativeArray`1&)
    08-20 20:20:28.488 24602 10567 E Unity : UnityEngine.XR.ARFoundation.ARPlane:UpdateBoundary(XRPlaneSubsystem)
    08-20 20:20:28.488 24602 10567 E Unity : UnityEngine.XR.ARFoundation.ARPlaneManager:OnAfterSetSessionRelativeData(ARPlane, BoundedPlane)
    08-20 20:20:28.488 24602 10567 E Unity : UnityEngine.XR.ARFoundation.ARTrackableManager`5:CreateOrUpdateTrackable(TSessionRelativeData)
    08-20 20:20:28.488 24602 10567 E Unity : UnityEngine.XR.ARFoundation.ARTrackableManager`5:Update()

    --------------------------

    We've tried to use a link.xml file which is also not working:


    <linker>
    <assembly fullname="UnityEngine.CoreModule">
    <type fullname="UnityEngine.Jobs.TransformAccessArray" preserve="all" />
    </assembly>
    <assembly fullname="Unity.Collections" preserve="all" />
    <assembly fullname="Unity.Collections.Tests" preserve="all" />
    <assembly fullname="Unity.Burst.Tests" preserve="all" />
    <assembly fullname="Unity.Transforms" preserve="all" />
    <assembly fullname="Unity.Transforms.Hybrid" preserve="all" />
    <assembly fullname="Unity.Transforms.Tests" preserve="all" />
    <assembly fullname="Unity.Jobs" preserve="all" />
    <assembly fullname="Unity.Jobs.Tests" preserve="all" />
    <assembly fullname="Unity.Burst" preserve="all" />
    <assembly fullname="UnityEngine.Animations" preserve="all" />
    <assembly fullname="Unity.Jobs.LowLevel.Unsafe" preserve="all" />
    </linker>


    The Unity version we're on is: 2020.3.16f1


    Has anyone had a similar issue? Thank you in advance!
     
    fherbst likes this.
  2. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,500
    When I do not understand what is triggering the error but the error is a trigger at a known point:
    • I make a copy of the project
    • I start taking off code and content
    • I make a test to trigger the error
    • If the error is not triggered then the content is responsible for the issue
    • In this way, I end up with a game object or a component.
    • If it is a Unity component I submit a bug report using that clean project and steps
     
  3. OnTopStudios

    OnTopStudios

    Joined:
    Aug 19, 2013
    Posts:
    44
    Thank you for the response.

    Unfortunately that takes too long since we can only trigger this on the device and each build is taking up at least 10 mins. The error is not breaking anything (as far as we can tell), so we don't know if the time invested is justifiable at all.
    We just wanted to fix this quickly in case someone else has gone through this.

    Regards!
     
  4. fherbst

    fherbst

    Joined:
    Jun 24, 2012
    Posts:
    801
    Same issue here, including link.xml not solving the issue.
    Could you post some case numbers in case you reported a bug already?
     
  5. TheVirtualMunk

    TheVirtualMunk

    Joined:
    Sep 6, 2019
    Posts:
    145
  6. unity_885B27D23AF298C2D615

    unity_885B27D23AF298C2D615

    Joined:
    Jan 31, 2022
    Posts:
    9
    i have this problem