Issues removing BD Pro from my project

bromanguy

New member
I recently installed BD Pro into my project, even though I thought I fixed all the behaviors I migrated from the old BD they still seem to throw errors and I just cannot figure out what these errors mean or what even breaks. I was planning to try to reinstall the asset to see if that fixes anything, but I can't seem to be able to.
1740150484250.png1740150505032.png
I'm not even using DOTS or ECS, just good old Monobehaviors. Let me know if there's anything else I can add to get help.
I really love the new UI and action stacks, but I keep running into issues that halt my progress.
 
What sort of errors are you getting? I believe you have to remove the asset from the Project Manager in order to remove it.
 
This is the fist one I keep getting, and I cannot figure out where it's coming from.
NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an objectThis Exception was thrown from a function compiled with Burst, which has limited exception support.0x00007ffa40fc223a (Unity) burst_abort_win0x00007ffa40fc29bb (Unity) burst_signal_handler0x00007ffaaf889b4c (ntdll) RtlDeleteAce0x00007ffaaf862376 (ntdll) RtlRaiseException0x00007ffaaf8b13ce (ntdll) KiUserExceptionDispatcher0x00007ffa01b06b9e (09e0d4a319af956ac6c3aba29ba50f8) Opsive.BehaviorDesigner.Runtime.Tasks.Composites.RandomSelectorInterruptSystem.OnUpdate (at E:/Gamedev/Unity Projects/RGLK/Library/PackageCache/com.unity.burst@616862665d8c/.Runtime/SystemGenerator/Unity.Entities.SourceGen.SystemGenerator.SystemGenerator/Temp/GeneratedCode/Opsive.BehaviorDesigner.Runtime/RandomSelector__System_15338612171.g.cs:313)0x00007ffa01b03b20 (09e0d4a319af956ac6c3aba29ba50f8) 458ae701098dda08b202dc1c13525dd10x00007ffa0247687d (e101e3576dce3b96222b6f9082cf610) Unity.Entities.WorldUnmanagedImpl.Unity.Entities.UnmanagedUpdate_00001682$BurstDirectCall.Invoke (at E:/Gamedev/Unity Projects/RGLK/Library/PackageCache/com.unity.burst@616862665d8c/.Runtime/unknown/unknown:0)0x00007ffa02474ff9 (e101e3576dce3b96222b6f9082cf610) 7bf3b3dc1c88cb657fd69b548232391d0x000002183013afaa (Mono JIT Code) (wrapper managed-to-native) Unity.Entities.WorldUnmanagedImpl/Unity.Entities.UnmanagedUpdate_00001682$BurstDirectCall:wrapper_native_indirect_000002192DFBA3A0 (intptr&,void*)0x000002183013ab0b (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl/Unity.Entities.UnmanagedUpdate_00001682$BurstDirectCall:Invoke (void*)0x000002183013a9db (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl:UnmanagedUpdate (void*) (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/WorldUnmanaged.cs:825)0x000002183013a1bb (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl:UpdateSystem (Unity.Entities.SystemHandle) (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/WorldUnmanaged.cs:891)0x00000218301305bb (Mono JIT Code) Unity.Entities.ComponentSystemGroup:UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:717)0x00000218300cfe0b (Mono JIT Code) Unity.Entities.ComponentSystemGroup:OnUpdate () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:681)0x000002183012e73f (Mono JIT Code) Unity.Entities.SystemBase:Update () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/SystemBase.cs:418)0x00000218301306d6 (Mono JIT Code) Unity.Entities.ComponentSystemGroup:UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:723)0x00000218300cfe0b (Mono JIT Code) Unity.Entities.ComponentSystemGroup:OnUpdate () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:681)0x000002183012e73f (Mono JIT Code) Unity.Entities.SystemBase:Update () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/SystemBase.cs:418)0x00000218301306d6 (Mono JIT Code) Unity.Entities.ComponentSystemGroup:UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:723)0x00000218300cfe0b (Mono JIT Code) Unity.Entities.ComponentSystemGroup:OnUpdate () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:681)0x0000021894a8fbb3 (Mono JIT Code) Opsive.BehaviorDesigner.Runtime.Groups.BehaviorTreeSystemGroup:OnUpdate () (at ./Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs:59)0x000002183012e73f (Mono JIT Code) Unity.Entities.SystemBase:Update () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/SystemBase.cs:418)0x00000218301306d6 (Mono JIT Code) Unity.Entities.ComponentSystemGroup:UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:723)0x00000218300cfe0b (Mono JIT Code) Unity.Entities.ComponentSystemGroup:OnUpdate () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:681)0x000002183012e73f (Mono JIT Code) Unity.Entities.SystemBase:Update () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/SystemBase.cs:418)0x000002183012dfe4 (Mono JIT Code) Unity.Entities.ScriptBehaviourUpdateOrder/DummyDelegateWrapper:TriggerUpdate () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ScriptBehaviourUpdateOrder.cs:523)0x00000216abed6bf8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)0x00007ffa460568de (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)0x00007ffa45f98404 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)0x00007ffa45f984f0 (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)0x0Unity.Entities.WorldUnmanagedImpl+UnmanagedUpdate_00001682$BurstDirectCall.Invoke (System.Void* pSystemState) (at <cb4671aff3dd430a8d11d4127d0fc6bb>:0)Unity.Entities.WorldUnmanagedImpl.UnmanagedUpdate (System.Void* pSystemState) (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/WorldUnmanaged.cs:825)Unity.Entities.WorldUnmanagedImpl.UpdateSystem (Unity.Entities.SystemHandle sh) (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/WorldUnmanaged.cs:910)Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:717)UnityEngine.Debug:LogException(Exception)Unity.Debug:LogException(Exception) (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/Stubs/Unity/Debug.cs:17)Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:728)Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:681)Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/SystemBase.cs:418)Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:723)Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:681)Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/SystemBase.cs:418)Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:723)Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:681)Opsive.BehaviorDesigner.Runtime.Groups.BehaviorTreeSystemGroup:OnUpdate() (at ./Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs:59)Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/SystemBase.cs:418)Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:723)Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@732b1f537003/Unity.Entities/ComponentSystemGroup.cs:681)
 
And this is the second one I'm getting, and the same thing... I think it happens when it's trying to execute Random Selector.
IndexOutOfRangeException: System.IndexOutOfRangeException: Index 2 is out of range of '2' Length.This Exception was thrown from a function compiled with Burst, which has limited exception support.0x00007ffa40fc163e (Unity) burst_abort0x00007ffa251ed12e (b1cf9429cb15b26a0d1f6e241f070bb) burst_Abort_Trampoline0x00007ffa250f61a9 (b1cf9429cb15b26a0d1f6e241f070bb) Unity.Collections.NativeArray1&lt;ushort&gt;.FailOutOfRangeError (at E:/Gamedev/Unity Projects/RGLK/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime/unknown/unknown:0)0x00007ffa250f5d4b (b1cf9429cb15b26a0d1f6e241f070bb) Opsive.BehaviorDesigner.Runtime.Tasks.Composites.RandomSelectorInterruptSystem.OnUpdate (at E:/Gamedev/Unity Projects/RGLK/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime/SystemGenerator/Unity.Entities.SourceGen.SystemGenerator.SystemGenerator/Temp/GeneratedCode/Opsive.BehaviorDesigner.Runtime/RandomSelector__System_15338612171.g.cs:316)0x00007ffa250f2cc0 (b1cf9429cb15b26a0d1f6e241f070bb) 458ae701098dda08b202dc1c13525dd10x00007ffa255b5dfe (1ae2fc728ccd3afda803737f8c3ef8c) Unity.Entities.WorldUnmanagedImpl.Unity.Entities.UnmanagedUpdate_0000164F$BurstDirectCall.Invoke (at E:/Gamedev/Unity Projects/RGLK/Library/PackageCache/com.unity.burst@7a907cf5a459/.Runtime/unknown/unknown:0)0x00007ffa255b4619 (1ae2fc728ccd3afda803737f8c3ef8c) 7bf3b3dc1c88cb657fd69b548232391d0x00000183c73c273a (Mono JIT Code) (wrapper managed-to-native) Unity.Entities.WorldUnmanagedImpl/Unity.Entities.UnmanagedUpdate_0000164F$BurstDirectCall:wrapper_native_indirect_000001834C88ED38 (intptr&,void*)0x00000183c73c229b (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl/Unity.Entities.UnmanagedUpdate_0000164F$BurstDirectCall:Invoke (void*)0x00000183c73c2173 (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl:UnmanagedUpdate (void*)0x00000183c73c198b (Mono JIT Code) Unity.Entities.WorldUnmanagedImpl:UpdateSystem (Unity.Entities.SystemHandle) (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/WorldUnmanaged.cs:891)0x00000183c73ba2cb (Mono JIT Code) Unity.Entities.ComponentSystemGroup:UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:717)0x00000183c73b9a4b (Mono JIT Code) Unity.Entities.ComponentSystemGroup:OnUpdate () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:681)0x00000183c73b7a0f (Mono JIT Code) Unity.Entities.SystemBase:Update () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/SystemBase.cs:418)0x00000183c73ba3e6 (Mono JIT Code) Unity.Entities.ComponentSystemGroup:UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:723)0x00000183c73b9a4b (Mono JIT Code) Unity.Entities.ComponentSystemGroup:OnUpdate () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:681)0x00000183c73b7a0f (Mono JIT Code) Unity.Entities.SystemBase:Update () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/SystemBase.cs:418)0x00000183c73ba3e6 (Mono JIT Code) Unity.Entities.ComponentSystemGroup:UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:723)0x00000183c73b9a4b (Mono JIT Code) Unity.Entities.ComponentSystemGroup:OnUpdate () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:681)0x000001846383d7e3 (Mono JIT Code) Opsive.BehaviorDesigner.Runtime.Groups.BehaviorTreeSystemGroup:OnUpdate () (at ./Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs:59)0x00000183c73b7a0f (Mono JIT Code) Unity.Entities.SystemBase:Update () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/SystemBase.cs:418)0x00000183c73ba3e6 (Mono JIT Code) Unity.Entities.ComponentSystemGroup:UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:723)0x00000183c73b9a4b (Mono JIT Code) Unity.Entities.ComponentSystemGroup:OnUpdate () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:681)0x00000183c73b7a0f (Mono JIT Code) Unity.Entities.SystemBase:Update () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/SystemBase.cs:418)0x00000183c73b72b4 (Mono JIT Code) Unity.Entities.ScriptBehaviourUpdateOrder/DummyDelegateWrapper:TriggerUpdate () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ScriptBehaviourUpdateOrder.cs:523)0x000001851f6a6bf8 (Mono JIT Code) (wrapper runtime-invoke) object:runtime_invoke_void__this__ (object,intptr,intptr,intptr)0x00007ffa3f8168de (mono-2.0-bdwgc) mono_jit_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/mini/mini-runtime.c:3445)0x00007ffa3f758404 (mono-2.0-bdwgc) do_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3068)0x00007ffa3f7584f0 (mono-2.0-bdwgc) mono_runtime_invoke (at C:/build/output/Unity-Technologies/mono/mono/metadata/object.c:3115)Unity.Entities.WorldUnmanagedImpl+UnmanagedUpdate_0000164F$BurstDirectCall.Invoke (System.Void* pSystemState) (at <356ec612c11f496ea4a6737089483e43>:0)Unity.Entities.WorldUnmanagedImpl.UnmanagedUpdate (System.Void* pSystemState) <0x183c73c2120 + 0x00052> in <356ec612c11f496ea4a6737089483e43>:0Unity.Entities.WorldUnmanagedImpl.UpdateSystem (Unity.Entities.SystemHandle sh) (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/WorldUnmanaged.cs:910)Unity.Entities.ComponentSystemGroup.UpdateAllSystems () (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:717)UnityEngine.Debug:LogException(Exception)Unity.Debug:LogException(Exception) (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/Stubs/Unity/Debug.cs:17)Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:728)Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:681)Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/SystemBase.cs:418)Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:723)Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:681)Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/SystemBase.cs:418)Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:723)Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:681)Opsive.BehaviorDesigner.Runtime.Groups.BehaviorTreeSystemGroup:OnUpdate() (at ./Packages/com.opsive.behaviordesigner/Runtime/Groups/BehaviorTreeSystemGroup.cs:59)Unity.Entities.SystemBase:Update() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/SystemBase.cs:418)Unity.Entities.ComponentSystemGroup:UpdateAllSystems() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:723)Unity.Entities.ComponentSystemGroup:OnUpdate() (at ./Library/PackageCache/com.unity.entities@6a355619334f/Unity.Entities/ComponentSystemGroup.cs:681)
 
It looks like it breaks when a lower-priority task interrupts a random selector. However, in a fresh project, I could not reproduce the error. I guess something is happening with my project setup or something. :cry: I will send my project stripped down to just this error with a simple behavior tree.
 
Last edited:
Thank you. It looks like the cause was related to one of the random selectors not being initialized yet and an abort occurring. You can fix this by changing the following within RandomSelectorInterruptSystem.OnUpdate:

Code:
                    if (taskComponents[randomSelectorComponent.TaskOrder[randomSelectorComponent.ActiveRelativeChildIndex]].Status != TaskStatus.Running) {
to:
Code:
                    var taskComponent = taskComponents[randomSelectorComponent.Index];
                    if (taskComponent.Status == TaskStatus.Running &&
                        taskComponents[randomSelectorComponent.TaskOrder[randomSelectorComponent.ActiveRelativeChildIndex]].Status != TaskStatus.Running) {

You'll need to make a similar code change to random sequence:
Code:
                    var taskComponent = taskComponents[randomSequenceComponent.Index];
                    if (taskComponent.Status == TaskStatus.Running && taskComponents[randomSequenceComponent.TaskOrder[randomSequenceComponent.ActiveRelativeChildIndex]].Status != TaskStatus.Running) {
 
Back
Top