Skip to content

[Bug] Memory Leak For Each Sim Iterations #856

@TheGroxEmpire

Description

@TheGroxEmpire

Describe the bug
Pressing the sim button either through the DPS or SIM 1 ITERATION consecutively would spike memory usage infinitely. Waiting for a min after the sim finish would reduce the spike. However the base memory usage of the sim would increase more and more as you press the sim button.

This could be reproduced in any fight time but the problem gets more pronounced as you increase the fight time. Simming one iteration of 5000s duration of sim for 5 times would result in memory usage of up to 3GB before normalizing to 1.7GB compared to 300MB initial memory usage (observed through task manager).

To Reproduce
Steps to reproduce the behavior:

  1. Open task manager or similar tool to observe memory usage and observe the initial memory usage
  2. Load the linked sim
  3. Click on DPS (1 iteration) or SIM 1 ITERATION button 5 times
  4. Observe memory usage during simming
  5. Observe memory usage few minutes after simming

Expected behavior
Previous iterations of sim's memory should not be carried to next iterations of sim i.e., the memory usage should stay the same on each sim iterations.

Sim Links and Screenshots

Sim Link

https://wowsims.github.io/tbc/warrior/#eJzjYtJgEhLiYJzByKTBWMHUwMi8g5H1ACOT1B3WJka2gJzEytQiDiYBTqmbjFwCAncfMUp0PGFUYpv5l/HDbkYuFoGjT0Hi94HiNx4CxYGCzXsYuXgFDu9llLjSyaTE/AuoTFjgNlDB4d2MSpxABRAE1PX7AaPE75tAXUAtv8AiMx4ySpwG6gKJgNTwCLx+AJT/BTFVWOAoUMf9Z2jGHLjPKPH9DkQZxFFXH4DITx9A5PGnIHLeQ0YuDoFp9xgl5m8AsXY+gLCA8m8Ylfg2MLE0MDF2MDGeYGKpYNa6wMQwCqgKqjg4GB0YJZgsGItiuAIEgClNEyLh52AIYag4WILpA0EOjhAREQdPiEiSw0xGiFClw0IIy2G+QwBjBmMCYwTjBEZGIQYpNgFGCUYFxi5GJWNTAwNTA0NDYwMjA0NdIBPINzAFUYZGYAnTWYwMStOYOcEGdWx2UIRZJzlrJgictBf6waTgKcE03NMByz4HelspJC/A2MDIGMAUAYy7CqbMNDB4Z18Ilj0wyQEAvqWERA==

Screenshot

Memory usage at the beginning:
image

Memory usage spike after 5 times single iteration simming using the link above:
image

Memory usage after waiting a minute after the consecutive simming:
image

Desktop (please complete the following information):

  • OS: Windows 10
  • Browser Google Chrome
  • Version 100.0.4896.127

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions