Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Memory Leaks in Restarting Activity #484

Open
Causeless opened this issue Feb 2, 2023 · 3 comments
Open

Memory Leaks in Restarting Activity #484

Causeless opened this issue Feb 2, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@Causeless
Copy link

Causeless commented Feb 2, 2023

When restarting an activity continually, the used memory keeps growing, so there's a memory leak somewhere.

Steps to reproduce the behavior:

  1. Start a test activity
  2. Place a whole bunch of actors in the scene
  3. Start the activity
  4. Press Ctrl+R repeatedly and watch memory usage rise
@Causeless Causeless added the bug Something isn't working label Feb 2, 2023
@HeliumAnt
Copy link

HeliumAnt commented Mar 8, 2023

Allocate
BITMAPs

Memory leaks after reloading (Croc Maw bunker, with some Green Dummies)

@HeliumAnt
Copy link

Main Leaks are from everywhere with non-virtual destructors (GUI, and essentially everything else) and anything that uses Entity Pooling

@Causeless
Copy link
Author

Note to retest this. We won't have caught all cases (given non-virtual destructors...), but I fixed a pretty egregrious issue where MovableMan was deallocating aligned off-by-one.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants