Referencing a hashmap inside a hashmap twice and calling str command on it triggers "Circular reference found in HashMap" warning.
Description
Description
Details
Details
- Severity
- Minor
- Resolution
- Fixed
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Scripting
Steps To Reproduce
Execute script:
_hm1 = createHashMap; _hm2 = createHashMapFromArray [[1,_hm1],[2,_hm1]]; copyToClipboard str _hm2;
Observe the warning in RPT.
Additional Information
RPT output:
12:47:20 Warning Message: Circular reference found in HashMap, this will cause a memory leak! 12:47:20 ➥ Context: Hash Key: 2
str output:
[[1,[]],[2,!!HashMap circular reference!!]]
Event Timeline
Comment Actions
Whoops, the recursion check didn't clean up after itself.
This happens everytime the same hashmap is referenced more than once in a hashmap.
Fixed next week dev branch