Your comments

It seems like the HomeRealm is beyond repair. One potential fix would be to reset it ^^"
I'd love to know what corrupted the HR save file. Can the Home Realm be loaded on its own ?
[~nano]
The algorithm itself is based on simple for-loops, thus it can not produce an infinite loop.
However I figured there was a failure with the enlargement of the counts buffer which does cause an integer overflow in case a new matrix is needed which has more than double amount of elements than all rooms parsed before.
It was just a little mistyped statement: newCap <<= newCap, instead of newCap <<= 1
Good find!
This might have caused freezes on some other maps as well. Especially if they contain very large/long rooms.
[~stefan.furcht] have a look in the prop parser, room matrix, find biggest square. The L shape of those room produce an infinite loop there :^/