Possible bug in the MAP.Remove or Map.Add function (blueprint)?

Hello,
I got a strange bug, ending with editor complete freeze on play, that I track to be related to the MAP type usage in blueprint.

My scenario : I used a map to handle an inventory. My map associate an “name”, which is the key, to a struct describing an inventory slot.

While stress testing the drag and drop mecanism of my inventory (frequent item displacement beetwen “slots”), I remove and re-add map entry at a quite high frequency. On a irregular basis, after 2 to 8 tries, the game (PIE) freeze. I must kill the UE process to recover.

I change my code to use the MAP only to store Name-Index (which mean I dont remove/add in the MAP frequently), using a standard array to do the real storage, and no bug any more.

I suspect some catch in the remove or the Add function of the MAP type, with some sort of memory leak…

This bug may be reproduced by performing many remove on a MAP with a loop, but I didn’t took time to test.

Best regards, and thank you for such a beautiful engine,