Search Unity

Bug Building with "remove trait" effect throws burst error

Discussion in 'AI & Navigation Previews' started by Gnarf, Dec 8, 2020.

  1. Gnarf

    Gnarf

    Joined:
    Jul 29, 2015
    Posts:
    6
    To reproduce :

    - Create new project (Unity 2020.1.12f1).
    - Add AI Planner 0.2.4-preview.3.
    - Create semantic trait "TraitToRemove"
    - Create ai planner action "RemoveTrait" with a single parameter containing TraitToRemove
    - Create an Object Modified -> Remove Trait effect on RemoveTrait
    - Create ai planner problem "RemoveProblem" containing RemoveTrait
    - Run Semantic -> Traits -> Build
    - Run Ai -> Planner -> Build
    - Run File -> Build And Run generates

    Code (CSharp):
    1. (0,0): Burst error BC1001: Unable to access the managed method `object.Equals(object)` from type `Generated.AI.Planner.StateRepresentation.RemoveProblem.TraitBasedObject`
    2.  
    3. at Generated.AI.Planner.StateRepresentation.RemoveProblem.StateData.RemoveTraitOnObject(Generated.AI.Planner.StateRepresentation.RemoveProblem.StateData* this, ref Generated.AI.Planner.StateRepresentation.RemoveProblem.TraitBasedObject traitBasedObject)
    4. at Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait.ApplyEffects(Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait* this, Unity.AI.Planner.Traits.ActionKey action, Generated.AI.Planner.StateRepresentation.RemoveProblem.StateEntityKey originalStateEntityKey)
    5. at Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait.Execute(Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait* this, int jobIndex)
    6. at Unity.Jobs.IJobParallelForDeferExtensions.JobParallelForDeferProducer`1<Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait>.Execute(ref Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex)
    7.  
    8. BuildFailedException: Burst compiler (1.3.7) failed running
    9.  
    10. stdout:
    11. stderr:
    12. (0,0): Burst error BC1001: Unable to access the managed method `object.Equals(object)` from type `Generated.AI.Planner.StateRepresentation.RemoveProblem.TraitBasedObject`
    13.  
    14. at Generated.AI.Planner.StateRepresentation.RemoveProblem.StateData.RemoveTraitOnObject(Generated.AI.Planner.StateRepresentation.RemoveProblem.StateData* this, ref Generated.AI.Planner.StateRepresentation.RemoveProblem.TraitBasedObject traitBasedObject)
    15. at Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait.ApplyEffects(Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait* this, Unity.AI.Planner.Traits.ActionKey action, Generated.AI.Planner.StateRepresentation.RemoveProblem.StateEntityKey originalStateEntityKey)
    16. at Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait.Execute(Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait* this, int jobIndex)
    17. at Unity.Jobs.IJobParallelForDeferExtensions.JobParallelForDeferProducer`1<Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait>.Execute(ref Generated.AI.Planner.Plans.RemoveProblem.RemoveTrait jobData, System.IntPtr additionalPtr, System.IntPtr bufferRangePatchData, ref Unity.Jobs.LowLevel.Unsafe.JobRanges ranges, int jobIndex)
    18.  
    19.  
    20. Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunProgram (UnityEditor.Utils.Program p, System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:856)
    21. Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, System.String workingDirectory, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:794)
    22. Unity.Burst.Editor.BurstAotCompiler+BclRunner.RunManagedProgram (System.String exe, System.String args, UnityEditor.Scripting.Compilers.CompilerOutputParserBase parser, UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:768)
    23. Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLsImpl (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:441)
    24. Unity.Burst.Editor.BurstAotCompiler.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at Library/PackageCache/com.unity.burst@1.3.7/Editor/BurstAotCompiler.cs:163)
    25. UnityEditor.Build.BuildPipelineInterfaces.OnPostBuildPlayerScriptDLLs (UnityEditor.Build.Reporting.BuildReport report) (at <20b79eb59c0f467d8b1106b2110bc953>:0)
    26. UnityEditor.EditorApplication:Internal_CallGlobalEventHandler()
    27.  
    28. Error building Player: 3 errors
     
    Noxalus likes this.
  2. mplantady_unity

    mplantady_unity

    Unity Technologies

    Joined:
    Jun 19, 2019
    Posts:
    49
    Thanks, I will test and fix that for our next patch release!
     
unityunity