Page MenuHomeFeedback Tracker

createHashmapObject - using a hashmap as a definition for "#base" causes memory leak and CTD
Closed, ResolvedPublic

Description

as per wiki on createhashmapobject:

"#base": Array or HashMap - declaration of base class for inheritance

Array works fine. Hashmap causes out of memory error and CTD. Tested on current stable, profile, and dev branch just in case. No beuno on all of em.

Tested all combinations hashmap in hashmap, hashmap in array, etc.. to see if there was any nuances to it but it would seem any time and any situation a hashmap is set in #base it crashes

Details

Severity
Crash
Resolution
Open
Reproducibility
Always
Operating System
Windows 11 x64
Category
Scripting
Steps To Reproduce
_test = createhashmapfromarray [["A",1],["B",2"]];
_testChild = createhashmapfromarray [["#base",_test],["C",3]];

_testObject = createhashmapobject [_test]; // works fine
_testChildObject = createhashmapobject [_testChild]; // french fry'd when ya shoulda pizza'd (gonna have a bad time)
Additional Information

Can send rpt and frozen mdmp if needed.

Also, if fixing requires #base to be an array, I am fine with it. But hashmaps as base could be handy.

Event Timeline

crashdome edited Additional Information. (Show Details)Oct 18 2023, 1:41 AM
dedmen closed this task as Resolved.Oct 26 2023, 11:11 AM
dedmen claimed this task.
dedmen added a subscriber: dedmen.

Fixed on dev-branch yesterday, and profiling branch