Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak #11

Open
nedzadarek opened this issue Mar 15, 2019 · 9 comments · May be fixed by #58
Open

Memory leak #11

nedzadarek opened this issue Mar 15, 2019 · 9 comments · May be fixed by #58

Comments

@nedzadarek
Copy link

I am using pre-built exe.
The more I use it the more it takes ram. The ram usage is increasing rapidly. First level it's just takes ~50 mb per thing, The next levels starts to take hundreds (100+) ram. After few changes I got ~1GB. Last ram usage was ~1.8 GB and my laptop was frozen. I had to "hard shutdown" it (hold power button for some time).
My laptop:
64x bit Win 8.1 4gb ram.

@Chaosminecraft
Copy link

How can I run this program?

@Fran314
Copy link

Fran314 commented May 10, 2019

I've also found some pretty serious memory leak issues. I'm using the VisualStudio version of the software and I'm building it myself, I just added the glew-2.1.0. I've found that each time a level is loaded, it increases the amount of RAM used, so I think the issue might be somewhere around the loading level system.

Here's the RAM usage as shown from the VisualStudio Diagnostic Tool
First level: 388 MB
2nd: 565 MB
3rd: 794 MB
4th: 1 GB
5th: 1,2 GB
6th: 1,5 GB
7th: 2 GB

This is what happens if you load the levels one after the other. During the level the RAM usage stays perfectly constant, and only spikes on the new level. If you load a level once again after having already played it, it still increases the RAM usage

@Enovale
Copy link

Enovale commented Jun 8, 2019

Yeah, I noticed that too. He (or someone) needs to make the game unload the previous level when loading a new one.

@ehx-v1
Copy link

ehx-v1 commented Jun 22, 2019

If you load a level once again after having already played it, it still increases the RAM usage

That sounds like it's a straight up case of not freeing resources that should be freed. Maybe take a look with Valgrind?

@Chaosminecraft
Copy link

Chaosminecraft commented Jun 29, 2019 via email

@Chaosminecraft
Copy link

Chaosminecraft commented Nov 8, 2019 via email

@angebrajuka
Copy link

Hey, I think I narrowed down the memory leak to the mesh class, don't know if this helps anyone or if anyone else is trying to fix this

@ehx-v1
Copy link

ehx-v1 commented Sep 12, 2020

@Chaosminecraft When you download the repository, there's some files directly in the ZIP, and most of the stuff is in the folder NonEuclidean. Among that bunch, there's also a NonEuclidean.exe, simply launch that.
Assuming you're on Windows. On Linux you'll have to launch it with Wine, and I think there was something similar to Wine for MacOS as well.

@Chaosminecraft
Copy link

@ehx-v1 thanks, I did not explore the folders yet, I'll look if I still have that or I download it again.
Cheers
Chaosminecraft

hatrd added a commit to hatrd/NonEuclidean that referenced this issue May 18, 2023
hatrd added a commit to hatrd/NonEuclidean that referenced this issue May 18, 2023
hatrd added a commit to hatrd/NonEuclidean that referenced this issue Sep 8, 2023
@hatrd hatrd linked a pull request Sep 8, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants