Page 1 of 1

Extreme memory usage. why?

Posted: 26 Aug 2007, 16:41
by Patch
I get an other problem. :cry:

My PC has 1,5Gb ram, 2200MHz A64 3000+, Integrated X300, XP SP2


When i start a single player game, i get good ~40FPS, but some minutes later its starts slowly dropping. My last game was the missiontest, when i started, i got ~35FPS, and when i eliminated the enemy, i only had 3FPS. I let ran the system monitor, when i started the game, the free ram was ~1100Mb, and the paging file is ~500MB. The game's last minute i chacked the monitor, my free ram was only!!! 78Mb, and my paging file was 2,5Gb!!! After that, i closed the game, and my free ram jumpd up 900Mb, and paging file down to 500Mb.
I get this problem on all singleplayer gametyps like skirmish. I tryd out the game an other version of Win XP, but i get the same problem. Spring 0.75b2

Sorry for my bad english... :|

Posted: 26 Aug 2007, 18:44
by imbaczek
This may be an AI problem - which AIs did you use?

Posted: 26 Aug 2007, 18:51
by Patch
imbaczek wrote:This may be an AI problem - which AIs did you use?
I try both of them, without any difference...



Now i will try the game on Vista x64...

Posted: 26 Aug 2007, 18:57
by url_00
I think this is aslo my problem...
See here.

Posted: 26 Aug 2007, 21:15
by YokoZar
If the page file is growing at all, you should expect all your memory to be "used." Memory not used is wasted memory.

Posted: 26 Aug 2007, 22:06
by Patch
I installed the Vista Ultimate x64, and the program works well, the FPS is constans, and the game is fully playable!!!
(my XP was not original, it's a DVD sized XP, i think the authotor made some mistakes on it...)

I just get some coloroful lines somtimes (not necessary)

But loading stil have some problem:

Using script Load QuickSave.ssf
Map: SmallDivide.smf
Mod: "XTAPE.sdz" from XTAPE.sdz
Created server on port 8452
Created local client with number 0
Listening to local client on connection 0
You are missing an OpenGL extension needed to use shadowmaps (fragment_program_shadow)
Content error:
Opening map file
Loading Map
Loading detail textures
Creating overhead texture
Creating ground shading
Loading tile file
Reading tiles
Reading tile map
Creating projectile texture
Number of damage types: 9
Loading units and weapons
Warning to many unit categories 33 missed all
Warning to many unit categories 33 missed all
Initializing map features
Generating trees
Parsing unit icons
Creating unit textures
Reading estimate path costs
Creating sky
Spring 0.75b2
Reloaded ctrlpanel with: LuaUI/ctrlpanel.txt
LuaUI: bound F11 to the widget selector
LuaUI: bound CTRL+F11 to tweak mode
LuaUI v0.2
Player Player joined as 0
Loading game
No response from Player for frame 29
AI\Bot-libs\AAI.dll has C++ interface
GlobalAI1: land map detected
GlobalAI1: AAI loaded
Spring 0.75b2 has crashed.
Exception: Access violation (0xc0000005)
Exception Address: 0x005867d2
DLL information:
0x00400000 spring
0x77660000 ntdll
0x75be0000 kernel32
0x75e30000 ADVAPI32
0x75af0000 RPCRT4
0x75860000 Secur32
0x745a0000 dsound
0x77040000 msvcrt
0x762b0000 USER32
0x771c0000 GDI32
0x76040000 ole32
0x748b0000 WINMM
0x76220000 OLEAUT32
0x74870000 OLEACC
0x74a90000 POWRPROF
0x75730000 GLU32
0x74ee0000 OPENGL32
0x74df0000 DDRAW
0x74de0000 DCIMAN32
0x758c0000 SETUPAPI
0x74dd0000 dwmapi
0x76f20000 IMAGEHLP
0x74dc0000 WSOCK32
0x75ac0000 WS2_32
0x77630000 NSI
0x10000000 SDL
0x7c340000 MSVCR71
0x011a0000 DevIL
0x66fc0000 freetype6
0x61b80000 zlib1
0x00290000 glew32
0x00020000 ILU
0x76f50000 IMM32
0x75ef0000 MSCTF
0x75a50000 LPK
0x75fc0000 USP10
0x75430000 uxtheme
0x003a0000 ctagent
0x69000000 atioglxx
0x73680000 mswsock
0x744f0000 wshtcpip
0x76190000 CLBCatQ
0x74840000 MMDevApi
0x75a60000 SHLWAPI
0x754b0000 comctl32
0x753e0000 WINTRUST
0x74740000 CRYPT32
0x74a50000 MSASN1
0x75410000 USERENV
0x74d30000 audioses
0x74cc0000 audioeng
0x74da0000 AVRT
0x77640000 PSAPI
0x0bf30000 AAI
0x70be0000 dbghelp
Stacktrace:
(0) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe [0x005867D2]
(1) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x2d1e5a) [0x008658BA]
(2) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x2b2ace) [0x0084652E]
(3) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x8807c) [0x0061BADC]
(4) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x27cbd) [0x005BB71D]
(5) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x47aac) [0x005DB50C]
(6) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x4ab8e) [0x005DE5EE]
(7) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x286049) [0x00819AA9]
(8) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x28e208) [0x00821C68]
(9) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x28e5d8) [0x00822038]
(10) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x28e809) [0x00822269]
(11) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe(UnitDef_GetBuildOption+0x37b6e7) [0x0090F147]
(12) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe [0x00401292]
(13) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe [0x004012DD]
(14) C:\Windows\syswow64\kernel32.dll(BaseThreadInitThunk+0xe) [0x75C619F1]
(15) C:\Windows\SysWOW64\ntdll.dll(RtlCreateUserProcess+0x8c) [0x776DD109]

Posted: 26 Aug 2007, 22:08
by Neddie
I'm not sure you can load from the Quick Save. Your best bet is to go online and play with people, some of the scripts are not functional.

Posted: 26 Aug 2007, 22:34
by Patch
neddiedrow wrote:I'm not sure you can load from the Quick Save. Your best bet is to go online and play with people, some of the scripts are not functional.
"Load quick save" is new function, (from 0.75b2) but to make visible, you have to press F8 on a skirmish game, and next time you will have a new option on spring.exe...

It's working but sometimes good, sometimes crash...


I will try online, under vista.

Posted: 26 Aug 2007, 23:31
by AF
There is no official 64bit windows binary of spring.

Thus we must assume your compiling it in 64bit yourself.

Are you mixing 32bit AIs with 64bit spring?

Please revert to 32bit official spring and retest.

Posted: 27 Aug 2007, 02:38
by lurker
When did he say it was a 64 bit binary? o_O


GlobalAI1: AAI loaded
Spring 0.75b2 has crashed.

I don't think the included AAI has save/load support.
and the fact that it was talking about analyzing the type of map makes that seem more likely that it failed to load from the save.

Posted: 27 Aug 2007, 03:56
by AF
(12) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe [0x00401292]

Posted: 27 Aug 2007, 07:04
by Patch
AF wrote:(12) F:\games\Total Annihilation 3d\Spring x64\Spring\spring.exe [0x00401292]
Oh. It's just the map name, because i have 3 installed spring in the "Total annihilation 3d" map like spring, spring old and spring x64. The spring x64 is a normal 0.75b2, i just called "x64" to knew it's installed under Vista x64.

So the spring in "spring x64" map, is a normal completly 32 bit spring.