0
Cannot Reproduce

False positive Get Name (after ForEachLoop) using Item output two times

Necka 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 3
Hello,


I'm using a Macro Flow to determine what colour and size a weapon slash particle should be and then instantiate the game object.

In Start I create a List from all Children in my "slash particles pool" then I iterate through that list as shown in below screen.

The flow works; the error is a false positive probably because everything happens too fast.

The error is apparently thrown because I'm using two times the output "Item" from the ForEachLoop. If I remove the second one, it doesn't throw an error but I'm then missing the variable and I don't see how to set it differently in this case.

Again, to me it's a false positive as I get the proper item set in my variable but the error throwing at each attack isn't ok to me.




InvalidOperationException: Missing target object for 'UnityEngine.GameObject.name'.
Ludiq.Member.EnsureReady () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Member.cs:717)
Ludiq.Member.Get () (at C:/Users/lazlo/Projects/Ludiq/Ludiq.Core/Runtime/Reflection/Member.cs:727)
Bolt.GetMember.Value (Bolt.Flow flow) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Framework/Codebase/GetMember.cs:58)
Bolt.Flow.GetValueDelegate (Bolt.ValueOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:469)
Bolt.Flow.GetValue (Bolt.ValueOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:413)
Bolt.Flow.GetValue (Bolt.ValueInput input) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:369)
Bolt.Flow.GetValue (Bolt.ValueInput input, System.Type type) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:422)
Bolt.MemberUnit.UpdateTarget (Bolt.Flow flow) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Framework/Codebase/MemberUnit.cs:124)
Bolt.InvokeMember.UpdateTarget (Bolt.Flow flow) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Framework/Codebase/InvokeMember.cs:225)
Bolt.InvokeMember.Enter (Bolt.Flow flow) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Framework/Codebase/InvokeMember.cs:242)
Bolt.Flow.InvokeDelegate (Bolt.ControlInput input) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:303)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:209)
Bolt.ForEach.Loop (Bolt.Flow flow) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Framework/Control/ForEach.cs:130)
Bolt.Flow.InvokeDelegate (Bolt.ControlInput input) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:303)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:209)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Invoke (Bolt.ControlOutput output) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:213)
Bolt.Flow.Run (Bolt.ControlOutput port, System.Boolean coroutine) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Flow.cs:178)
Bolt.EventUnit`1[TArgs].Run (Bolt.Flow flow) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Framework/Events/EventUnit.cs:133)
Bolt.EventUnit`1[TArgs].Trigger (Ludiq.GraphReference reference, TArgs args) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Framework/Events/EventUnit.cs:110)
Bolt.EventUnit`1+<>c__DisplayClass14_0[TArgs].<StartListening>b__0 (TArgs args) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Flow/Runtime/Framework/Events/EventUnit.cs:65)
Bolt.EventBus.Trigger[TArgs] (Bolt.EventHook hook, TArgs args) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Core/Runtime/Events/EventBus.cs:60)
Bolt.EventMachine`2[TGraph,TMacro].TriggerRegisteredEvent[TArgs] (Bolt.EventHook hook, TArgs args) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Core/Runtime/Events/EventMachine.cs:36)
Bolt.EventMachine`2[TGraph,TMacro].TriggerEvent[TArgs] (System.String name, TArgs args) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Core/Runtime/Events/EventMachine.cs:22)
Bolt.EventMachine`2[TGraph,TMacro].TriggerAnimationEvent (UnityEngine.AnimationEvent animationEvent) (at C:/Users/lazlo/Projects/Ludiq/Bolt.Core/Runtime/Events/EventMachine.cs:118)


Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Info: I reduced my initial list size from 28 to 18 and that error is gone. Might be useful information for you

Pending Review

Hi Necka, thanks for the report & sorry you're having this issue.

Can you try creating a minimal graph in which the issue occurs?

Also, are you using v.1.3 or v.1.4 (beta)?