I run spring for testing purpose and notice that spring fast eat memory. I build 5 units and even paused game. Also I often reload LuaUI, but it seems that memory leak even if game not started. It eat 3 Gb in 1 hour and crashed. Or may be something wrong in mod?
http://pastebin.com/u49FXXBP
Spring : memory leak?
Moderator: Moderators
Re: Spring : memory leak?
Ive never been able to make spring run out of ram, since its limit is 3gb.
Luaui reload can waste a lot of memory with badly written widgets. Especially widgets that load textures and dont unload them in widgethandler:removewidget.
Edit: also, if you have rapidly increasing memory usage while idling a few units, something is wrong with the mod (as BA doesnt have this issue).
Luaui reload can waste a lot of memory with badly written widgets. Especially widgets that load textures and dont unload them in widgethandler:removewidget.
Edit: also, if you have rapidly increasing memory usage while idling a few units, something is wrong with the mod (as BA doesnt have this issue).
Re: Spring : memory leak?
im one of those moddev who has this issue..
Most of the time its something wrong with a gadget..
Most of the time its something wrong with a gadget..
Re: Spring : memory leak?
I'll try turn off all widgets and run spring again.
If I use gl.Texture, should I unload texture, and what function should be used?
Also, how I can check widget and gadget memory usage?
If I use gl.Texture, should I unload texture, and what function should be used?
Also, how I can check widget and gadget memory usage?
Re: Spring : memory leak?
There's a widget called "Profiler" that measures widget performance. I think it may have something with memory as well.
Re: Spring : memory leak?
It seems, that widget profiler can work only in unsynced code, and there is absent memory information.
There is gcinfo() func in Lua, but it won't work in synced mode
There is gcinfo() func in Lua, but it won't work in synced mode
Re: Spring : memory leak?
I disable lauui and luarules but it seems that engine itself eat memory, even in paused state. It seems its depend on version ( st or mt ).
Last test was 1 Mb / 10 second on mt version.
Last test was 1 Mb / 10 second on mt version.
Re: Spring : memory leak?
Please submit your report to mantis then. Thanks!
Re: Spring : memory leak?
Its still young and in its growth- it needs the food! When i was that age i ate 3 pizzas a meal and still felt hungry!
Re: Spring : memory leak?
Spring leaks when it is minimized, and MT leaks more than ST in this case. It will be fixed in the next release.
Re: Spring : memory leak?
Like all ships we need pumps, to pump spilled memory into other processes memorys.