Search Issue Tracker
Not Reproducible
Votes
0
Found in [Package]
1.4.10
Issue ID
UVSB-11
Regression
No
Nested for loop overshoots last index
Pending Review - 4 months ago. You can work around this but it's odd behaviour that should be investigated.
[Original issue link|https://support.ludiq.io/communities/5/topics/4648-nested-for-loop-overshoots-last-index]
----
Looks like it overshoots, and after item 3 it does one extra iteration on item 0 the second time.
!https://support.ludiq.io/s/attachments/21929/5/1072/a80aceb8777807e28fcd5a0d8bc34c8c.png!
The dictionary is completely empty before running the logic:
!https://support.ludiq.io/s/attachments/21929/5/1072/a9faaa7cc9f74e42c466353d7d003355.png!
The dictionaries are generated correctly even with the error present:
!https://support.ludiq.io/s/attachments/21929/5/1072/880b4c77f6e2571a17f3dda4bdbe1579.png!
!https://support.ludiq.io/s/attachments/21929/5/1072/8ed6629a228c11642e66e1f64d61470d.png!
[Exception] ArgumentException: Item has already been added. Key in dictionary: 'fanPoints' Key being added: 'fanPoints'
Hashtable.Insert() <567df3e0919241ba98db88bec4c6696f>:0
Hashtable.Add() <567df3e0919241ba98db88bec4c6696f>:0
OrderedDictionary.Add() :0
AddDictionaryItem.Add() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Framework/Collections/Dictionaries/AddDictionaryItem.cs:82
Flow.InvokeDelegate() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Flow.cs:447
Flow.Invoke() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Flow.cs:341
For.Loop() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Framework/Control/For.cs:92
Flow.InvokeDelegate() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Flow.cs:447
Flow.Invoke() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Flow.cs:341
Flow.Invoke() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Flow.cs:345
Sequence.Enter() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Framework/Control/Sequence.cs:61
Flow.InvokeDelegate() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Flow.cs:447
Flow.Invoke() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Flow.cs:341
Flow.Run() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Flow.cs:244
Bolt.EventUnit`1[TArgs].Run() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Framework/Events/EventUnit.cs:179
Bolt.EventUnit`1[TArgs].Trigger() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Framework/Events/EventUnit.cs:150
Bolt.EventUnit`1+<>c__DisplayClass14_0[TArgs].b__0() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Flow/Runtime/Framework/Events/EventUnit.cs:69
EventBus.Trigger[TArgs]() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Core/Runtime/Events/EventBus.cs:72
Bolt.EventMachine`2[TGraph,TMacro].TriggerRegisteredEvent[TArgs]() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Core/Runtime/Events/EventMachine.cs:36
Bolt.EventMachine`2[TGraph,TMacro].TriggerEvent() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Core/Runtime/Events/EventMachine.cs:14
Bolt.EventMachine`2[TGraph,TMacro].Start() C:/Users/lazlo/Projects/Bolt1/Package/Bolt.Core/Runtime/Events/EventMachine.cs:63
Here's the scriptable object var code that's in the list:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu]
public class IntVariable : ScriptableObject
{ public int intValue; }
Bolt Version:
1.4.10
Unity Version:
2019.2.14
Platform(s):
PC
Scripting Backend:
Mono
.NET Version (API Compatibility Level):
.NET 4.x
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Foldout arrow indent is misaligned in the Inspector when used in Custom Type
- [Android] The Player screen turns black when playing a video under certain conditions
- Search window icons at the bottom are cut off when Search window is resized vertically
- "Try something else?" text label is cut off when searching for a long text in the Search window
- Rendering Debugger window sections do not have a minimum width set when resizing with the slider in the middle of the window
Resolution Note:
Unable to Reproduce on Bolt 1.4.12