# Major - new weak\_map crashes game

**URL:** <https://forums.unrealengine.com/t/major-new-weak-map-crashes-game/1241585>\
**Category:** Issues and Bug Reporting\
**Tags:** unreal-engine, unreal-editor-for-fortnite, fortnite-creative, bug-report, fortnite\
**Created:** [July 27, 2023, 10:46am UTC](https://forums.unrealengine.com/t/major-new-weak-map-crashes-game/1241585 "2023-07-27T10:46:43Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![spentak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/spentak/32/642372_2.png) [@spentak](https://forums.unrealengine.com/u/spentak)\
**Post date:** [August 16, 2023, 4:53pm UTC](https://forums.unrealengine.com/t/major-new-weak-map-crashes-game/1241585/8 "2023-08-16T16:53:00Z")

</div>

Confirmed broken for round based games. GetSession and weak\_map work fine in game modes that don’t have rounds.

> [@weak\_map with GetSession Is broken and does not persist between rounds and crashes](https://forums.unrealengine.com/t/weak-map-with-getsession-is-broken-and-does-not-persist-between-rounds-and-crashes/1263028):
>
> GetSession() works with ANY type in a session so long as you don’t have a game with “rounds” With rounds, GetSession() + weak\_map will crash your game 99% of the time. In the code below you will see my test cases for GetSession in a round-based game. Can’t persist maps (critical for save data in multiplayer games) Persisting data at all crashes most of the time Again, in a non-round game, you can store any type of data in the weak\_map and GetSession works perfectly. using { /Fortnite.com/…

---

_[View the full topic](https://forums.unrealengine.com/t/major-new-weak-map-crashes-game/1241585)._
