[Fixed]Algodoo 1.7.1 memory leak

If you have problems installing or running Algodoo, have found a bug or need in-game help - this is it!

[Fixed]Algodoo 1.7.1 memory leak

Postby Kilinich » Mon Jun 07, 2010 11:45 pm

Edit: by tatt61880
Fixed at v1.7.5! :thumbup:
This bug was seen with v1.7.1 - v1.7.4. (No problem with v1.7.0).

-Tatt
----


Seems like I've find easy way to spot memory leak in 1.7.1
Run sim and wait ~ 40 sec (on my pc) for "out of memory" error.
You can also monitor memory usage in task manager.

[scene]42650[/scene]

Please reply if you replicate that. Thanks.
Last edited by tatt61880 on Mon Sep 27, 2010 3:28 pm, edited 1 time in total.
Reason: Fixed!
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Algodoo 1.7.1 memory leak

Postby RaRaMalum » Tue Jun 08, 2010 12:04 am

Thats an old problem, but it has gotten very visible in 1.7.1.
There is a memory leak somewhere when you kill objects and it can be seen in the task manager(windows).
it gets to almost 2 gigs of ram usage before it dies.
Phundamentalists, come to the dark side.
We have much cooler toys.
User avatar
RaRaMalum
[Best newcomer 2010]
 
Posts: 280
Joined: Mon Aug 31, 2009 10:47 pm

Re: Algodoo 1.7.1 memory leak

Postby savask » Tue Jun 08, 2010 6:10 am

There is this problem in Linux too, but it hadn't said me "Out of memory" or something like this, it just wasted 2 gigs of memory and a half of swap :) And it generates zombie process which is bad too.
User avatar
savask
 
Posts: 162
Joined: Mon Oct 12, 2009 2:53 pm
Location: Russia, Siberia

Re: Algodoo 1.7.1 memory leak

Postby Matten » Tue Jun 08, 2010 3:48 pm

I got this problem this week, and the warning sayd that I have to set the maxUndo lower, but I haven't changed it.
Cave Johnson wrote:Do you know who I am? I'm the man who's gonna burn your house down! With the lemons! I'm gonna get my engineers to invent a combustible lemon that burns your house down!
User avatar
Matten
 
Posts: 435
Joined: Mon Apr 05, 2010 2:03 pm
Location: The Netherlands

Re: Algodoo 1.7.1 memory leak

Postby RaRaMalum » Wed Jun 09, 2010 11:58 am

same problem is in 1.7.2
Phundamentalists, come to the dark side.
We have much cooler toys.
User avatar
RaRaMalum
[Best newcomer 2010]
 
Posts: 280
Joined: Mon Aug 31, 2009 10:47 pm

Re: Algodoo 1.7.1 memory leak

Postby tech2077 » Thu Jun 17, 2010 11:26 pm

Any idea of a cause of this, i wonder if there is a way to do a quick and dirty fix, but if it's a problem with the actual way the structure is built, then it may be impossible to fix.
tech2077
 
Posts: 17
Joined: Thu Jun 10, 2010 4:30 am

Re: Algodoo 1.7.1 memory leak

Postby emilk » Wed Aug 11, 2010 1:09 pm

Great news: this will be fixed in 1.7.5!
Emil Ernerfeldt, lead developer
emilk
 
Posts: 616
Joined: Mon Aug 31, 2009 11:01 am
Location: Umeå, Sweden

Re: Algodoo 1.7.1 memory leak

Postby Kilinich » Wed Aug 11, 2010 1:13 pm

emilk wrote:Great news: this will be fixed in 1.7.5!

:clap: indeed!

How about geval() object spawning with dynamic properties - will it work fine too ?
viewtopic.php?f=11&t=2547&start=0&hilit=geval
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia

Re: Algodoo 1.7.1 memory leak

Postby xplane80 » Wed Aug 11, 2010 2:08 pm

This error doesn't occur with Mac Os x but does with Linux. :|
Image<- Designed by PhysicsGuy
User avatar
xplane80
 
Posts: 498
Joined: Mon Aug 31, 2009 7:28 pm

Re: Algodoo 1.7.1 memory leak

Postby emilk » Wed Aug 11, 2010 5:24 pm

Kilinich wrote:How about geval() object spawning with dynamic properties - will it work fine too ?
viewtopic.php?f=11&t=2547&start=0&hilit=geval


Yes, same bug.
Emil Ernerfeldt, lead developer
emilk
 
Posts: 616
Joined: Mon Aug 31, 2009 11:01 am
Location: Umeå, Sweden

Re: Algodoo 1.7.1 memory leak

Postby Kilinich » Wed Aug 11, 2010 10:03 pm

emilk wrote:
Kilinich wrote:How about geval() object spawning with dynamic properties - will it work fine too ?
viewtopic.php?f=11&t=2547&start=0&hilit=geval


Yes, same bug.


woo-hoo!
now I can do some magic :D
Dream of Algodoo as game development engine...
User avatar
Kilinich
[Best bug reporter 2010]
 
Posts: 2098
Joined: Mon Aug 31, 2009 8:27 pm
Location: South Russia


Return to Help / Bug reports

Who is online

Users browsing this forum: No registered users and 1 guest