Empty NME app leaking memory on Windows

I've just discovered a fatal bug. Empty cpp NME (3.1.1) projects in both Release and Debug mode leaks memory constantly. Tested on Windows 7. Any way of stopping it or is it internal bug? Edit: This means that every NME application targeting Windows (I…

  • Forums
  • »
  • Bugs
  • »
  • Empty NME app leaking memory on Windows
Viewing 1 to 5 (5 Total)
Empty NME app leaking memory on Windows

Moczan

Moczan
Total Posts: 26
Joined: December 18, 2011

I've just discovered a fatal bug. Empty cpp NME (3.1.1) projects in both Release and Debug mode leaks memory constantly. Tested on Windows 7. Any way of stopping it or is it internal bug?

Edit: This means that every NME application targeting Windows (I can't test it on other platforms) is constantly leaking memory and testing your own code for mem leaks is futile.

Edit: Resizing the window to full screen and back to normal adds around 10 mb that doesn't go away no matter what.

Tags:
Posted on December 27, 2011 at 6:13 PM

lubos

lubos
Total Posts: 27
Joined: September 03, 2011

Re: Empty NME app leaking memory on Windows

Hi,
Memory use seems pretty stable here. I'm also using Windows 7 and NME 3.1.1. Could you perhaps try on another machine? Or try to upload the source code and I will give it a go.

Posted on December 28, 2011 at 6:04 PM

Moczan

Moczan
Total Posts: 26
Joined: December 18, 2011

Re: Empty NME app leaking memory on Windows

I just create a new NME project in FlashDevelop, hit build & run and watch memory consumption in task manager. I can observe this behavior on both Win7 64-bit and WinXP 32-bit.

Posted on December 28, 2011 at 6:12 PM

singmajesty

singmajesty
Total Posts: 2139
Joined: August 25, 2011

Re: Empty NME app leaking memory on Windows

Strange... I haven't seen that before.

Could you try the Actuate example (linked from the Get Started page) and see if it does the same thing?

Posted on December 29, 2011 at 2:05 PM

Moczan

Moczan
Total Posts: 26
Joined: December 18, 2011

Re: Empty NME app leaking memory on Windows

I've compiled the Actuate example, it quickly went from 46 mb to 52mb and then the memory consumption was drifting around 53-54, but steadily rising. Also even bigger problem exist when you resize the window (switch to fullscreen and back to normal). It increases memory consumption by around 10 mb each time and doesn't go down.
I suspect there is something wrong with garbage collection on cpp target. Is there a way to force garbage collection in code? How do you guys usually go around profiling your haxeNME applications targeting desktop?

Posted on December 29, 2011 at 7:31 PM