Memory Leak

:arrow_forward: GAME INFORMATION

:point_down: These details are CRITICAL; DO NOT skip them or your issue may not be reviewed.

  • GAME BUILD #: ######
  • GAME PLATFORM: Steam / Microsoft Store
  • OPERATING SYSTEM: Windows 10 / Windows 8 / Windows 7 / Mac / Linux

:arrow_forward: ISSUE EXPERIENCED

:point_down: DESCRIBE THE ISSUE IN DETAIL (below). LIMIT TO ONE BUG PER THREAD.

Playing Multiplayer with 2 friends vs computers… game start to lag, then went un responsive. After the second time we all look at the Memory Ussage of AOE. I have 16 GB of RAM and AOE usage climbed over 10 before the game crashed. One friend has 32 and his AOE2 was well over 25, and my other had 64 GB and it was 43 GB.

This definitely looks like a massive Memory leak that only happened since last patch.

:arrow_forward: FREQUENCY OF ISSUE

:point_down: How often does the issue occur? CHOSE ONE; DELETE THE REST!

Well 1 game and all three computer in that game started leaking RAM… so kinda 100%. We did not feel like restarting as we did not get a autosave on the hosts computer.

:arrow_forward: REPRODUCTION STEPS

:point_down: List CLEAR and DETAILED STEPS we can take to reproduce the issue ourselves… Be descriptive!

Didn’t reproduce, this is clearly a bug… AGE of Empires should not be using 40 GB of Ram…

:arrow_forward: EXPECTED RESULT

:point_down: What was SUPPOSED to happen if the bug you encountered were not present?

Age of Empire not leaking memory

:arrow_forward: IMAGE

:point_down: ALWAYS attach a PICTURE (.jpg, .png, .gif) or VIDEO (.mp4, YouTube link) that highlights the problem.

:arrow_forward: GAME FILES (SAVE / RECORDING)

:point_down: Attach a SAVE GAME (.aoe2spgame) or GAME RECORDING (.aoe2record) of the match where you encountered the issue. Link it below if using an external file service.

2 Likes

We’ve had the same thing happen, multiple games lag, then crash when playing multiplayer with friends against some AI players.

Reached over 25GB memory usage (of my 32GB). This is much higher than the <10GB it normally uses on my machine. Only started happening about a week ago.

Frequency: 3 games in the last week.

Reproduction: Multiplayer with friends, custom game against AI players
PC, Steam.

2 Likes

Yes, This is happening to me too. Started happening in the last 2 or 3 weeks.

Hello @WarDragonFlame
The team is ivnestigating this issue, thanks for the report :slight_smile:

Hmm, maybe this is tied into the freezes and lags also happening since the May 16th update.

Here is a link to some freezes mid games: https://youtu.be/_8cf-rGEzzY

Definitely looks familiar. We usually play Co-op versus the AI 3 v 2 v 2 v 1. If the freeezing happens during an attack depending on how long it is froze for, is related to the tempoarily speed up as the game catches up. As soon as we notice a freeze we will trigger a pause so we know when the game has caught up.

We started opening task manager during the pause, and watch the Ram scale up.

Hmm, I didnt even think about pausing the game, that will help a lot if the pause actually can happens while its frozen

And yeah, this is vs AI in this scenario, 6 humans vs 2 ai

The freezes are much longer than they are shown in the recording by gefore experience, Some of the freezes were up to like 5 minutes in length, and you can see the long catch up after, and time fast forwarding for the length of the freeze in the video.

Yeah, the game with speed up while it catches to the Pause the sooner you do that, it does work atleast in our situation. Just don’t have everyone his the pause as you might pause and unpause it.

Tried to pause the game when the freeze started, but the pause didn’t happen until after the freeze “unlocked” for me

For now, I’ve resorted to removing mobs from the custom map that seem to cause the most issues, which has been admiral yi sun shin hero ship unit, and some dromon ship units

When Microsoft releases another patch, ill re-add the removed units back into the map, and test again, hope for the best

Yeah the Pause did not stop the freeze. Just the longer the freeze go on the longer the catchup time it goes in Super Speed. The AI is not hindered by the super speed and you are reduced ability to actually perform during the speed.

The pausing just allowed all players and the game to catchup shortening that super speed. Especially with three players as we would have different players hit that pause at different points helping to also prevent a desync error from crashing the game.

Ontop of the Memory leak causing crashing, the speed up, if not pauses has lasted long enough to wipe out one of us with no one able really to do much during that time period. As the AI is able to catch up on lost time, while the Human players are at a massive disavantage.