2025-07-19 03:10 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0004568Spring engineGeneralpublic2014-10-03 00:26
ReporterJools 
Assigned TojK 
PrioritynormalSeveritymajorReproducibilitysometimes
StatusresolvedResolutionfixed 
Product Version97.0.1+git 
Target VersionFixed in Version 
Summary0004568: Lua Garbage-Collector sometimes doesn't catch up fast enough when to many allocations are made / frame
DescriptionI have done some testing with several engine versions to see which ones cause increase in lua allocated memory. All tests are done with two KAIK 0.13 AI:s playing against each other on Coyote Creek V3, and with the game XTA test-785.

They are furthermore played with /luaui disabled and with /nocost on.

Lua-allocated memory is reported after 12:00 min of game time, along with a screenshot and infolog for that engine.

In spring 96.0 xta uses 4 lua states, in engine 97+ it uses only 3. With luaui disabled there are 2 states remaining in 97+. In 96.0.1, it also uses 2 states with luaui disabled.
Additional InformationEngine: Lua-allocated memory at 12:00:
--------------------------------------

97.0.1-450: 223.5 MB
97.0.1-350: 79.7 MB
97.0.1-250:~ 100 MB (screenshot missing)
97.0.1-210: 86.1 MB
97.0.1-208: 22.7 MB
97.0.1-208: 62.2 MB (second run)
97.0: 138.5 MB
96.0.1-408: 97.8 MB
96.0: 15.9 MB (with luaui)
96.0.1: 4.3 MB

It seems that the memory starts to increase after some event, because in 250 and 350 the memory stayed at about 30 Mb until maybe 9 minutes, then it started increasing. Once this happens it increases exponentially I seems. In 208 run 2 the memory stayed at 23 Mb until 11 mins, then it increased in 1 minute to 62.2 Mb.

At 12 minutes, the AI:s operating under no-cost have about 700 - 1000 units and are fighting a lot, although they may differ from game to game. They usually get about 700 units at the 8 minute mark or so.
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files
  • zip file icon memorytest_infologs.zip (134,210 bytes) 2014-09-30 20:04
  • zip file icon demos.zip (2,692,662 bytes) 2014-09-30 20:14
  • zip file icon demos2.zip (3,269,671 bytes) 2014-09-30 20:15
  • png file icon screen00397_96.0.png (2,627,461 bytes) 2014-09-30 20:18
  • png file icon screen00402_208.png (2,816,633 bytes) 2014-09-30 20:19
  • png file icon screen00405_450.png (2,561,821 bytes) 2014-09-30 20:22
  • png file icon screen00406_350.png (2,619,065 bytes) 2014-09-30 20:22
  • png file icon screen00407_210.png (2,595,305 bytes) 2014-09-30 20:23
  • png file icon screen00408_97.0.png (2,523,379 bytes) 2014-09-30 20:24
  • png file icon screen00409_96-408.png (2,508,732 bytes) 2014-09-30 20:27
  • png file icon screen00410_208_2.png (2,452,341 bytes) 2014-09-30 20:28
  • png file icon screen00411_96.0.1.png (2,646,040 bytes) 2014-09-30 20:29
  • ? file icon springsettings.cfg (2,284 bytes) 2014-09-30 20:29
  • txt file icon infolog_ba_test3296.txt (50,148 bytes) 2014-10-01 19:18 -
    [ParseCmdLine] command-line args: "U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe"
    Using configuration source: "U:\bin\Spring\Data\springsettings.cfg"
    Using additional configuration source: "U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\springsettings.cfg"
    Available log sections: KeyBindings, AutohostInterface, GameServer, Net, CSMFGroundTextures, RoamMeshDrawer, BumpWater, DynWater, SkyBox, DecalsDrawerGL4, FarTextureHandler, Model, Piece, ModelDrawer, OBJParser, WorldObjectModelRenderer, Shader, Texture, Font, CregSerializer, ArchiveScanner, VFS, Sound, LuaSocket, GroundMoveType, Path, UnitScript
    Enabled log sections: Sound(Notice)
    Enable or disable log sections using the LogSections configuration key
      or the SPRING_LOG_SECTIONS environment variable (both comma separated).
      Use "none" to disable the default log sections.
    LogOutput initialized.
    Spring 97.0.1-450-g502a946 develop
    Build Date & Time: Sep 30 2014 01:11:27
    Build Environment: boost-105500, GNU libstdc++ version 20130531
    Compiler Version:  gcc-4.8.1
    Operating System:  Microsoft Windows
    Microsoft Windows 7 Ultimate Edition, 64-bit Service Pack 1 (build 7601)
    Intel(R) Core(TM)2 CPU          6600  @ 2.40GHz; 4095MB RAM, 9577MB pagefile
    Word Size:         32-bit (emulated)
             CPU Clock: win32::TimeGetTime
    Physical CPU Cores: 2
     Logical CPU Cores: 2
    [CMyMath::Init] CPU SSE mask: 124, flags:
    	SSE 1.0:  1,  SSE 2.0:  1
    	SSE 3.0:  1, SSSE 3.0:  1
    	SSE 4.1:  0,  SSE 4.2:  0
    	SSE 4.0A: 0,  SSE 5.0A: 0
    	using streflop SSE FP-math mode, CPU supports SSE instructions
    Supported Video modes on Display 1 x:0 y:0 1280x1024:
    	640x480, 720x480, 720x576, 800x600, 1024x768, 1152x864, 1280x720, 1280x768, 1280x800, 1280x960, 1280x1024
    Supported Video modes on Display 2 x:1280 y:0 1024x768:
    	640x480, 720x480, 720x576, 800x600, 1024x768, 1280x720, 1280x768
    SDL version:  linked 2.0.2; compiled 2.0.2
    GL version:   4.4.0
    GL vendor:    NVIDIA Corporation
    GL renderer:  GeForce GTX 460/PCIe/SSE2
    GLSL version: 4.40 NVIDIA via Cg compiler
    GLEW version: 1.5.8
    Video RAM:    total 1024MB, available 820MB
    FBO::maxSamples: 32
    GL info:
    	haveARB: 1, haveGLSL: 1, ATI hacks: 0
    	FBO support: 1, NPOT-texture support: 1, 24bit Z-buffer support: 1
    	maximum texture size: 16384, compress MIP-map textures: 0
    	maximum SmoothPointSize: 190, maximum vec4 varying/attributes: 31/16
    	maximum drawbuffers: 8, maximum recommended indices/vertices: 1048576/1048576
    	number of UniformBufferBindings: 84 (64kB)
    Using VSync
    [InitOpenGL] video mode set to 1280x1024:24bit @60Hz 
    [WatchDogInstall] Installed (HangTimeout: 10sec)
    [ThreadPool::SetThreadCount][1] #wanted=2 #current=1 #max=2
    [ThreadPool::SetThreadCount][2] #threads=1
    [DataDirs] Portable Mode!
    Using read-write data directory: U:\bin\Spring\Data\
    Using read-only data directory: U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\
    Using read-only data directory: U:\bin\Spring\Data\weblobby\
    Using read-only data directory: U:\bin\github\Ecostats\
    Scanning: U:\bin\Spring\Data\weblobby\maps
    Scanning: U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\base
    Scanning: U:\bin\Spring\Data\maps
    Scanning: U:\bin\Spring\Data\games
    Scanning: U:\bin\Spring\Data\packages
    Warning: Found a "quicksilver_1.1.sd7" already in "U:\bin\Spring\Data\maps\", ignoring one in "U:\bin\Spring\Data\weblobby\maps\"
    [f=0000000] Joysticks found: 0
    [f=0000000] [ThreadPool::SetThreadCount][1] #wanted=2 #current=2 #max=2
    [f=0000000] [ThreadPool::SetThreadCount][2] #threads=1
    [f=0000000] [Threading] Main thread CPU affinity mask set: 2
    [f=0000000] [Sound] OpenAL info:
    [f=0000000] [Sound]   Available Devices:
    [f=0000000] [Sound]               Speakers (Realtek High Definition Audio)
    [f=0000000] [Sound]   Device:     OpenAL Soft
    [f=0000000] [Sound]   Vendor:         OpenAL Community
    [f=0000000] [Sound]   Version:        1.1 ALSOFT 1.15.1
    [f=0000000] [Sound]   Renderer:       OpenAL Soft
    [f=0000000] [Sound]   AL Extensions:  AL_EXT_ALAW AL_EXT_DOUBLE AL_EXT_EXPONENT_DISTANCE AL_EXT_FLOAT32 AL_EXT_IMA4 AL_EXT_LINEAR_DISTANCE AL_EXT_MCFORMATS AL_EXT_MULAW AL_EXT_MULAW_MCFORMATS AL_EXT_OFFSET AL_EXT_source_distance_model AL_LOKI_quadriphonic AL_SOFT_buffer_samples AL_SOFT_buffer_sub_data AL_SOFTX_deferred_updates AL_SOFT_direct_channels AL_SOFT_loop_points AL_SOFT_source_latency
    [f=0000000] [Sound]   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_DEDICATED ALC_EXT_disconnect ALC_EXT_EFX ALC_EXT_thread_local_context ALC_SOFT_loopback
    [f=0000000] [Sound]   EFX Enabled: yes
    [f=0000000] [Sound]   Max Sounds: 128
    [f=0000000] [InitOpenGL] video mode set to 1280x1024:24bit @60Hz 
    [f=0000000] Hosting on: localhost:8452
    [f=0000000] Connecting to local server
    [f=0000000] Warning: Opening socket on loopback address. Other users will not be able to connect!
    [f=0000000] Binding UDP socket to IP (v6) ::1 port 8452
    [f=0000000] [UDPListener] successfully bound socket on port 8452
    [f=0000000] PreGame::StartServer: 21 ms
    [f=0000000] Using map: Coyote_CreekV4
    [f=0000000] Using game: Balanced Annihilation test-3296
    [f=0000000] Using game archive: 53bb86a3027b60123dcac6dd32cf64b2.sdp
    [f=0000000] Recording demo to: U:\bin\Spring\Data\demos\20141001_200615_Coyote_CreekV4_97.0.1-450-g502a946 develop.sdf
    [f=0000000] PreGame::GameDataReceived: 64 ms
    [f=0000000] [PreGame::UpdateClientNet] user number 0 (team 0, allyteam 0)
    [f=0000000] [LuaIntro] Searching for new Widgets
    [f=0000000] [LuaIntro] Scanning: LuaIntro/Addons/
    [f=0000000] [LuaIntro] Scanning: LuaIntro/Widgets/
    [f=0000000] [LuaIntro] Scanning: LuaIntro/SystemAddons/
    [f=0000000] [LuaIntro] Scanning: LuaIntro/SystemWidgets/
    [f=0000000] [LuaIntro] Scanning: LuaIntro/chili/
    [f=0000000] [LuaIntro] Found new widget "SpringLogo"
    [f=0000000] [LuaIntro] Found new widget "LoadTexture"
    [f=0000000] [LuaIntro] Found new widget "LoadProgress"
    [f=0000000] [LuaIntro] Found new widget "Main"
    [f=0000000] [LuaIntro] Found new widget "Music"
    [f=0000000] [LuaIntro] Loading widgets   <>=vfs  **=raw  ()=unknown
    [f=0000000] [LuaIntro] Loading widget:      Engine Taskbar Stuff   <engine_taskbar_control.lua>
    [f=0000000] [LuaIntro] Loading widget:      LoadProgress           <loadprogress.lua>
    [f=0000000] [LuaIntro] Loading widget:      Main                   <main.lua>
    [f=0000000] [LuaIntro] Loading widget:      Music                  <music.lua>
    [f=0000000] [LuaIntro] Loading widget:      LoadTexture            <bg_texture.lua>
    [f=0000000] [LuaIntro] LuaIntro v1.0 (Lua 5.1)
    [f=0000000] Parsing Map Information
    [f=0000000] Loading SMF
    [f=0000000] Loading Map (56 MB)
    [f=0000000] Loading Radar Icons
    [f=0000000] Loading GameData Definitions
    [f=0000000] Loading all definitions:  5.472000
    [f=0000000] Game::LoadDefs (GameData): 5546 ms
    [f=0000000] Loading Sound Definitions
    [f=0000000] [Sound]  parsed 28 sounds from gamedata/sounds.lua
    [f=0000000] Game::LoadDefs (Sound): 23 ms
    [f=0000000] Creating Smooth Height Mesh
    [f=0000000] SmoothHeightMesh::MakeSmoothMesh: 65 ms
    [f=0000000] Creating QuadField & CEGs
    [f=0000000] [CDamageArrayHandler] number of ArmorDefs: 11
    [f=0000000] [RegisterAssimpModelFormats] supported Assimp model formats: *.3ds;*.blend;*.dae;*.lwo;
    [f=0000000] Creating Unit Textures
    [f=0000000] Warning: [Watchdog] Hang detection triggered for Spring 97.0.1-450-g502a946 develop.
    [f=0000000] Warning:   (in thread: load)
    [f=0000000] Warning: DLL information:
    [f=0000000] Error: 0x00400000	spring
    [f=0000000] Error: 0x77b00000	ntdll
    [f=0000000] Error: 0x757c0000	kernel32
    [f=0000000] Error: 0x759d0000	KERNELBASE
    [f=0000000] Error: 0x75aa0000	ADVAPI32
    [f=0000000] Error: 0x77560000	msvcrt
    [f=0000000] Error: 0x77510000	sechost
    [f=0000000] Error: 0x75f30000	RPCRT4
    [f=0000000] Error: 0x754f0000	SspiCli
    [f=0000000] Error: 0x754e0000	CRYPTBASE
    [f=0000000] Error: 0x61ef0000	GLU32
    [f=0000000] Error: 0x58c90000	OPENGL32
    [f=0000000] Error: 0x772b0000	GDI32
    [f=0000000] Error: 0x758d0000	USER32
    [f=0000000] Error: 0x76280000	LPK
    [f=0000000] Error: 0x761d0000	USP10
    [f=0000000] Error: 0x58ba0000	DDRAW
    [f=0000000] Error: 0x65170000	DCIMAN32
    [f=0000000] Error: 0x75d60000	SETUPAPI
    [f=0000000] Error: 0x76020000	CFGMGR32
    [f=0000000] Error: 0x75720000	OLEAUT32
    [f=0000000] Error: 0x77340000	ole32
    [f=0000000] Error: 0x762b0000	DEVOBJ
    [f=0000000] Error: 0x70940000	dwmapi
    [f=0000000] Error: 0x75f00000	IMAGEHLP
    [f=0000000] Error: 0x763f0000	SHELL32
    [f=0000000] Error: 0x774b0000	SHLWAPI
    [f=0000000] Error: 0x73720000	WINMM
    [f=0000000] Error: 0x76050000	WS2_32
    [f=0000000] Error: 0x774a0000	NSI
    [f=0000000] Error: 0x10000000	DevIL
    [f=0000000] Error: 0x6fb10000	MSVCP80
    [f=0000000] Error: 0x6fa70000	MSVCR80
    [f=0000000] Error: 0x6b600000	OpenAL32
    [f=0000000] Error: 0x6cec0000	libgcc_s_sjlj-1
    [f=0000000] Error: 0x70780000	vorbisfile
    [f=0000000] Error: 0x68140000	ogg
    [f=0000000] Error: 0x64cc0000	vorbis
    [f=0000000] Error: 0x62e80000	zlib1
    [f=0000000] Error: 0x70e40000	libfreetype-6
    [f=0000000] Error: 0x64f80000	libfontconfig-1
    [f=0000000] Error: 0x68f40000	libexpat-1
    [f=0000000] Error: 0x62aa0000	glew32
    [f=0000000] Error: 0x6c740000	SDL2
    [f=0000000] Error: 0x75a20000	IMM32
    [f=0000000] Error: 0x76320000	MSCTF
    [f=0000000] Error: 0x73cb0000	VERSION
    [f=0000000] Error: 0x66b70000	nvapi
    [f=0000000] Error: 0x76290000	profapi
    [f=0000000] Error: 0x71dc0000	uxtheme
    [f=0000000] Error: 0x01390000	RTSSHooks
    [f=0000000] Error: 0x013b0000	PowerMenuHook
    [f=0000000] Error: 0x04a50000	nvoglv32
    [f=0000000] Error: 0x71d80000	ntmarta
    [f=0000000] Error: 0x762d0000	WLDAP32
    [f=0000000] Error: 0x75690000	CLBCatQ
    [f=0000000] Error: 0x70930000	shfolder
    [f=0000000] Error: 0x617c0000	dinput8
    [f=0000000] Error: 0x6aef0000	MMDevApi
    [f=0000000] Error: 0x6c100000	PROPSYS
    [f=0000000] Error: 0x653f0000	HID
    [f=0000000] Error: 0x646f0000	dsound
    [f=0000000] Error: 0x73b90000	POWRPROF
    [f=0000000] Error: 0x6bde0000	AUDIOSES
    [f=0000000] Error: 0x77530000	WINTRUST
    [f=0000000] Error: 0x760a0000	CRYPT32
    [f=0000000] Error: 0x76270000	MSASN1
    [f=0000000] Error: 0x03c30000	XInput1_3
    [f=0000000] Error: 0x71bc0000	mswsock
    [f=0000000] Error: 0x74270000	wship6
    [f=0000000] Error: 0x71bb0000	wshtcpip
    [f=0000000] Error: 0x75410000	WLIDNSP
    [f=0000000] Error: 0x770d0000	PSAPI
    [f=0000000] Error: 0x70c30000	DNSAPI
    [f=0000000] Error: 0x753c0000	mdnsNSP
    [f=0000000] Error: 0x73ab0000	Iphlpapi
    [f=0000000] Error: 0x73900000	WINNSI
    [f=0000000] Error: 0x70b90000	rasadhlp
    [f=0000000] Error: 0x75380000	fwpuclnt
    [f=0000000] Error: 0x71c90000	dbghelp
    [f=0000000] Warning: Stacktrace (main) for Spring 97.0.1-450-g502a946 develop:
    [f=0000000] Warning: This stack trace indicates a problem with your graphic card driver. Please try upgrading or downgrading it. Specifically recommended is the latest driver, and one that is as old as your graphic card. Make sure to use a driver removal utility, before installing other drivers.
    [f=0000000] Warning: (0) C:\Windows\SysWOW64\ntdll.dll(ZwYieldExecution+0x15) [0x77B1FF51]
    [f=0000000] Warning: (1) C:\Windows\system32\nvoglv32.DLL(DrvPresentBuffers+0xa9e2b) [0x0544DDBB]
    [f=0000000] Warning: (2) C:\Windows\system32\nvoglv32.DLL [0x000FA51D]
    [f=0000000] Warning: (3) C:\Windows\system32\nvoglv32.DLL(DllMain+0x1c77a) [0x053A040A]
    [f=0000000] Warning: (4) C:\Windows\system32\nvoglv32.DLL(DllMain+0x4f62) [0x05388BF2]
    [f=0000000] Warning: (5) C:\Windows\system32\nvoglv32.DLL(DllMain+0x50dd) [0x05388D6D]
    [f=0000000] Warning: (6) C:\Windows\system32\nvoglv32.DLL(DllMain+0x4f11) [0x05388BA1]
    [f=0000000] Warning: (7) C:\Windows\system32\nvoglv32.DLL(DllMain+0x4b69) [0x053887F9]
    [f=0000000] Warning: (8) C:\Windows\system32\nvoglv32.DLL(DrvSwapLayerBuffers+0x23d) [0x0537868D]
    [f=0000000] Warning: (9) C:\Windows\system32\nvoglv32.DLL(DrvSwapBuffers+0xd) [0x0537843D]
    [f=0000000] Warning: (10) C:\Windows\system32\OPENGL32.dll(wglGetProcAddress+0x55a) [0x58CCC79F]
    [f=0000000] Warning: (11) C:\Windows\system32\OPENGL32.dll(wglSwapBuffers+0x6f) [0x58CD5E90]
    [f=0000000] Warning: (12) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\SDL2.dll(SDL_LogCritical+0x8c958) [0x6C803988]
    [f=0000000] Warning: (13) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\SDL2.dll(SDL_LogCritical+0x82454) [0x6C7F9484]
    [f=0000000] Warning: (14) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe [0x00789404]
    [f=0000000] Warning: (15) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe [0x00765BC6]
    [f=0000000] Warning: (16) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x7486a4) [0x00F41364]
    [f=0000000] Warning: (17) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe [0x00401402]
    [f=0000000] Warning: (18) C:\Windows\syswow64\kernel32.dll(BaseThreadInitThunk+0x12) [0x757D338A]
    [f=0000000] Warning: (19) C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x63) [0x77B39F72]
    [f=0000000] Warning: (20) C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x36) [0x77B39F45]
    [f=0000000] Warning: Stacktrace (load) for Spring 97.0.1-450-g502a946 develop:
    [f=0000000] Warning: (0) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe [0x00700D6B]
    [f=0000000] Warning: (1) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe [0x004283F6]
    [f=0000000] Warning: (2) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe [0x00431C2F]
    [f=0000000] Warning: (3) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x4fc7d5) [0x00CF5495]
    [f=0000000] Warning: (4) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe [0x0076D041]
    [f=0000000] Warning: (5) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x4ef451) [0x00CE8111]
    [f=0000000] Warning: (6) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x29283c) [0x00A8B4FC]
    [f=0000000] Warning: (7) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x291c66) [0x00A8A926]
    [f=0000000] Warning: (8) C:\Windows\syswow64\kernel32.dll(BaseThreadInitThunk+0x12) [0x757D338A]
    [f=0000000] Warning: (9) C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x63) [0x77B39F72]
    [f=0000000] Warning: (10) C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x36) [0x77B39F45]
    [f=0000000] Warning: Stacktrace (audio) for Spring 97.0.1-450-g502a946 develop:
    [f=0000000] Warning: (0) C:\Windows\SysWOW64\ntdll.dll(ZwWaitForMultipleObjects+0x15) [0x77B2015D]
    [f=0000000] Warning: (1) C:\Windows\syswow64\kernel32.dll(WaitForMultipleObjectsEx+0x8e) [0x757D19F8]
    [f=0000000] Warning: (2) C:\Windows\syswow64\kernel32.dll(WaitForMultipleObjects+0x18) [0x757D4200]
    [f=0000000] Warning: (3) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x294fa2) [0x00A8DC62]
    [f=0000000] Warning: (4) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x18f3f) [0x00811BFF]
    [f=0000000] Warning: (5) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x4ef694) [0x00CE8354]
    [f=0000000] Warning: (6) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x29283c) [0x00A8B4FC]
    [f=0000000] Warning: (7) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x291c66) [0x00A8A926]
    [f=0000000] Warning: (8) C:\Windows\syswow64\kernel32.dll(BaseThreadInitThunk+0x12) [0x757D338A]
    [f=0000000] Warning: (9) C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x63) [0x77B39F72]
    [f=0000000] Warning: (10) C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x36) [0x77B39F45]
    [f=0000000] Creating Sky
    [f=0000000] Loading Weapon Definitions
    [f=0000000] Loading Unit Definitions
    [f=0000000] Loading Feature Definitions
    [f=0000000] [IPathManager::GetInstance] using DEFAULT path-manager
    [f=0000000] Initializing Map Features
    [f=0000000] Creating ShadowHandler & DecalHandler
    [f=0000000] Creating GroundDrawer
    [f=0000000] Loading Map Tiles
    [f=0000000] Loading Square Textures
    [f=0000000] CSMFGroundTextures::ConvolveHeightMap: 4 ms
    [f=0000000] Switching to ROAM Mesh Rendering
    [f=0000000] Creating TreeDrawer
    [f=0000000] Creating ProjectileDrawer & UnitDrawer
    [f=0000000] Creating Projectile Textures
    [f=0000000] Creating Water
    [f=0000000] Game::LoadInterface (Camera&Mouse): 993 ms
    [f=0000000] Game::LoadInterface (Console): 1 ms
    [f=0000000] Loading LuaRules
    [f=0000000] Loaded synced gadget:  Metalspot Finder Gadget  <mex_spot_finder.lua>
    [f=0000000] Loaded synced gadget:  Rez Exp             <unit_rez_exp.lua>
    [f=0000000] Loaded synced gadget:  ranks api           <api_ranks.lua>
    [f=0000000] Loaded synced gadget:  CameraBroadcast     <camera_lockcamera.lua>
    [f=0000000] Loaded synced gadget:  Awards              <gui_awards.lua>
    [f=0000000] Loaded synced gadget:  Air Release         <unit_air_release_manager.lua>
    [f=0000000] Loaded synced gadget:  AirPlantParents     <unit_air_plants.lua>
    [f=0000000] Loaded synced gadget:  Bomber Control      <unit_bomber_control.lua>
    [f=0000000] Loaded synced gadget:  Commander Blast     <unit_commander_blast.lua>
    [f=0000000] Loaded synced gadget:  Commando Watch      <unit_commando_watch.lua>
    [f=0000000] Loaded synced gadget:  Cursor Broadcast    <cmd_mouse_pos_broadcast.lua>
    [f=0000000] Loaded synced gadget:  DGun CmdType Fix    <unit_dgun_cmdtype_fix.lua>
    [f=0000000] Loaded synced gadget:  Death Messages      <game_death_messages.lua>
    [f=0000000] Loaded synced gadget:  Debris Damage       <unit_debris_damage.lua>
    [f=0000000] Loaded synced gadget:  Depthcharge splash  <fx_depthcharge_splash.lua>
    [f=0000000] Loaded synced gadget:  DirectControl       <unit_direct_control.lua>
    [f=0000000] Loaded synced gadget:  DragonsDisguise     <unit_set_neutral.lua>
    [f=0000000] Loaded synced gadget:  Dynamic collision volume & Hitsphere Scaledown  <unit_dynamic_collision_volume.lua>
    [f=0000000] Loaded synced gadget:  Energy Conversion   <game_energy_conversion.lua>
    [f=0000000] Loaded synced gadget:  FinishedBuilding    <unit_finished_building.lua>
    [f=0000000] Loaded synced gadget:  Game End            <game_end.lua>
    [f=0000000] Loaded synced gadget:  Initial Spawn       <game_initial_spawn.lua>
    [f=0000000] Loaded synced gadget:  Juno Damage         <unit_juno_damage.lua>
    [f=0000000] Loaded synced gadget:  Lightning Spash Damage  <unit_lightning_splash_dmg.lua>
    [f=0000000] Loaded synced gadget:  Load Missiles       <cmd_loadmissiles.lua>
    [f=0000000] Loaded synced gadget:  Lua unit script framework  <unit_script.lua>
    [f=0000000] Loaded synced gadget:  Maverick Exp        <unit_maverick_exp.lua>
    [f=0000000] Loaded synced gadget:  Merc/Scr stockpile control  <unit_mercscr_stockpile_limit.lua>
    [f=0000000] Loaded synced gadget:  Napalm              <lups_napalm.lua>
    [f=0000000] Loaded synced gadget:  No Land Damage      <unit_no_land_damage.lua>
    [f=0000000] Loaded synced gadget:  No Self Pwn         <unit_noselfpwn.lua>
    [f=0000000] Loaded synced gadget:  No Self-D           <unit_prevent_share_selfd.lua>
    [f=0000000] Loaded synced gadget:  Nonblocking mines   <unit_nonblocking_mines.lua>
    [f=0000000] Loaded synced gadget:  Paralyse Multiplier  <unit_paralyze_multiplier.lua>
    [f=0000000] Loaded synced gadget:  Passive Builders II  <unit_passive_builders_ii.lua>
    [f=0000000] Loaded synced gadget:  PopUpWaterStructures  <unit_pop_up_water_structures.lua>
    [f=0000000] Loaded synced gadget:  Prevent Excessive Share  <game_prevent_excessive_share.lua>
    [f=0000000] Loaded synced gadget:  Prevent Lab Hax     <unit_prevent_lab_hax.lua>
    [f=0000000] Loaded synced gadget:  Prevent Load Hax    <unit_prevent_load_hax.lua>
    [f=0000000] Loaded synced gadget:  Prevent Range Hax   <unit_prevent_range_hax.lua>
    [f=0000000] Loaded synced gadget:  Prevent Strange Orders  <unit_prevent_strange_orders.lua>
    [f=0000000] Loaded synced gadget:  Prevent Unload Hax  <unit_prevent_unload_hax.lua>
    [f=0000000] Loaded synced gadget:  Prevent outside-of-map hax  <unit_prevent_aircraft_hax.lua>
    [f=0000000] Loaded synced gadget:  Reclaim Fix         <unit_reclaim_fix.lua>
    [f=0000000] Loaded synced gadget:  Reclaim flash       <gfx_reclaim_flash.lua>
    [f=0000000] Loaded synced gadget:  Shockwaves          <lups_shockwaves.lua>
    [f=0000000] Loaded synced gadget:  Stealthy Passengers  <unit_stealthy_passengers.lua>
    [f=0000000] Loaded synced gadget:  Stun Control        <unit_stun_control.lua>
    [f=0000000] Loaded synced gadget:  Target on the move  <unit_target_on_the_move.lua>
    [f=0000000] Loaded synced gadget:  Team Resourcing     <game_team_resources.lua>
    [f=0000000] Loaded synced gadget:  Transportee Hider   <unit_transportee_hider.lua>
    [f=0000000] Loaded synced gadget:  Unit transportable nanos  <unit_transportable_nanos.lua>
    [f=0000000] Loaded synced gadget:  Watereffects        <fx_watersplash.lua>
    [f=0000000] Loaded synced gadget:  fx_reclaim_shards   <fx_reclaim_shards.lua>
    [f=0000000] Loaded synced gadget:  fx_wreck_shards     <fx_wreck_shards.lua>
    [f=0000000] Loaded synced gadget:  game_no_share_to_enemy  <game_no_share_to_enemy.lua>
    [f=0000000] Loaded synced gadget:  gfx_dynamic_lighting.lua  <gfx_dynamic_lighting.lua>
    [f=0000000] Loaded synced gadget:  lib_startpoint_guesser.lua  <lib_startpoint_guesser.lua>
    [f=0000000] Loaded synced gadget:  lups_wrapper.lua    <lups_wrapper.lua>
    [f=0000000] Loaded synced gadget:  mo_preventcombomb   <mo_preventcombomb.lua>
    [f=0000000] Loaded synced gadget:  subMissile splash   <fx_submissile_splash.lua>
    [f=0000000] Loaded synced gadget:  transportfix        <unit_transportfix.lua>
    [f=0000000] Loaded synced gadget:  unit_combomb_full_damage  <unit_combomb_full_damage.lua>
    [f=0000000] Loaded synced gadget:  Area Attack         <unit_areaattack.lua>
    [f=0000000] Loaded synced gadget:  CustomUnitShaders   <gfx_customunitshaders.lua>
    [f=0000000] Loaded synced gadget:  Limit Dgun Use      <unit_limit_dgun.lua>
    [f=0000000] Loaded synced gadget:  Substitution        <game_replace_afk_players.lua>
    [f=0000000] Loaded synced gadget:  Take Manager        <cmd_idle_players.lua>
    [f=0000000] Loaded synced gadget:  Team Com Ends       <game_team_com_ends.lua>
    [f=0000000] Loaded synced gadget:  LupsSyncedManager   <lups_manager.lua>
    [f=0000000] Loaded synced gadget:  Mex Upgrader Gadget  <unit_mex_upgrader.lua>
    [f=0000000] Loaded synced gadget:  Crashing Aircraft   <unit_crashing_aircraft.lua>
    [f=0000000] <LockCamera>: Sorry for the camera switch spam, but this is the only reliable way to list camera states other than hardcoding them
    [f=0000000] Switching to Overview style camera
    [f=0000000] Switching to Smooth style camera
    [f=0000000] Switching to Overhead (TA) style camera
    [f=0000000] Switching to Free style camera
    [f=0000000] Switching to Total War style camera
    [f=0000000] Switching to Rotatable overhead camera
    [f=0000000] Switching to Orbit style camera
    [f=0000000] Switching to FPS style camera
    [f=0000000] Switching to Smooth style camera
    [f=0000000] Loaded unsynced gadget:  Metalspot Finder Gadget  <mex_spot_finder.lua>
    [f=0000000] Loaded unsynced gadget:  ranks api           <api_ranks.lua>
    [f=0000000] Loaded unsynced gadget:  CustomIcons         <unit_customicons.lua>
    [f=0000000] Loaded unsynced gadget:  CameraBroadcast     <camera_lockcamera.lua>
    [f=0000000] Loaded unsynced gadget:  Awards              <gui_awards.lua>
    [f=0000000] Loaded unsynced gadget:  Newbie Info         <gui_newbie_info.lua>
    [f=0000000] Loaded unsynced gadget:  Air Release         <unit_air_release_manager.lua>
    [f=0000000] Loaded unsynced gadget:  AirPlantParents     <unit_air_plants.lua>
    [f=0000000] Loaded unsynced gadget:  Cursor Broadcast    <cmd_mouse_pos_broadcast.lua>
    [f=0000000] Loaded unsynced gadget:  Debris Damage       <unit_debris_damage.lua>
    [f=0000000] Loaded unsynced gadget:  DragonsDisguise     <unit_set_neutral.lua>
    [f=0000000] Loaded unsynced gadget:  Dynamic collision volume & Hitsphere Scaledown  <unit_dynamic_collision_volume.lua>
    [f=0000000] Loaded unsynced gadget:  FinishedBuilding    <unit_finished_building.lua>
    [f=0000000] Loaded unsynced gadget:  Initial Spawn       <game_initial_spawn.lua>
    [f=0000000] Loaded unsynced gadget:  Juno Damage         <unit_juno_damage.lua>
    [f=0000000] Loaded unsynced gadget:  Lightning Spash Damage  <unit_lightning_splash_dmg.lua>
    [f=0000000] Loaded unsynced gadget:  Load Missiles       <cmd_loadmissiles.lua>
    [f=0000000] Loaded unsynced gadget:  Merc/Scr stockpile control  <unit_mercscr_stockpile_limit.lua>
    [f=0000000] Loaded unsynced gadget:  Napalm              <lups_napalm.lua>
    [f=0000000] Loaded unsynced gadget:  No Self-D           <unit_prevent_share_selfd.lua>
    [f=0000000] Loaded unsynced gadget:  Opacity control     <api_opacity.lua>
    [f=0000000] Loaded unsynced gadget:  PopUpWaterStructures  <unit_pop_up_water_structures.lua>
    [f=0000000] Loaded unsynced gadget:  Prevent Unload Hax  <unit_prevent_unload_hax.lua>
    [f=0000000] Loaded unsynced gadget:  Reclaim Fix         <unit_reclaim_fix.lua>
    [f=0000000] Loaded unsynced gadget:  Reclaim flash       <gfx_reclaim_flash.lua>
    [f=0000000] Loaded unsynced gadget:  Shockwaves          <lups_shockwaves.lua>
    [f=0000000] Loaded unsynced gadget:  Target on the move  <unit_target_on_the_move.lua>
    [f=0000000] Loaded unsynced gadget:  Transportee Hider   <unit_transportee_hider.lua>
    [f=0000000] Loaded unsynced gadget:  fx_reclaim_shards   <fx_reclaim_shards.lua>
    [f=0000000] Loaded unsynced gadget:  fx_wreck_shards     <fx_wreck_shards.lua>
    [f=0000000] Loaded unsynced gadget:  game_no_share_to_enemy  <game_no_share_to_enemy.lua>
    [f=0000000] Loaded unsynced gadget:  gfx_dynamic_lighting.lua  <gfx_dynamic_lighting.lua>
    [f=0000000] Loaded unsynced gadget:  lib_startpoint_guesser.lua  <lib_startpoint_guesser.lua>
    [f=0000000] Loaded unsynced gadget:  mo_enemywrecks      <mo_enemywrecks.lua>
    [f=0000000] Loaded unsynced gadget:  mo_noowner          <mo_noowner.lua>
    [f=0000000] Loaded unsynced gadget:  mo_nowrecks         <mo_nowrecks.lua>
    [f=0000000] Loaded unsynced gadget:  transportfix        <unit_transportfix.lua>
    [f=0000000] Loaded unsynced gadget:  Area Attack         <unit_areaattack.lua>
    [f=0000000] Loaded unsynced gadget:  CustomUnitShaders   <gfx_customunitshaders.lua>
    [f=0000000] Loaded unsynced gadget:  Limit Dgun Use      <unit_limit_dgun.lua>
    [f=0000000] Loaded unsynced gadget:  Substitution        <game_replace_afk_players.lua>
    [f=0000000] Loaded unsynced gadget:  Take Manager        <cmd_idle_players.lua>
    [f=0000000] Loaded unsynced gadget:  LupsSyncedManager   <lups_manager.lua>
    [f=0000000] Loaded unsynced gadget:  Mex Upgrader Gadget  <unit_mex_upgrader.lua>
    [f=0000000] Loaded unsynced gadget:  Crashing Aircraft   <unit_crashing_aircraft.lua>
    [f=0000000] Loaded unsynced gadget:  Lups                <lups_wrapper.lua>
    [f=0000000] Loading LuaGaia
    [f=0000000] Loading LuaUI
    [f=0000000] LuaSocketEnabled: yes
    [f=0000000] This game has locked LuaUI access
    [f=0000000] This game has locked LuaUI access
    [f=0000000] Using LUAUI_DIRNAME = LuaUI/
    [f=0000000] Reloaded ctrlpanel from file: LuaUI/ctrlpanel.txt
    [f=0000000] LuaUI: bound F11 to the widget selector
    [f=0000000] LuaUI: bound CTRL+F11 to tweak mode
    [f=0000000] Switching to Overhead (TA) style camera
    [f=0000000] Failed to load: gui_energyuse.lua  ([string "LuaUI\Widgets\gui_energyuse.lua"]:42: attempt to index field 'arm_moho_mine' (a nil value))
    [f=0000000] Failed to load: camera_smooth_move.lua  (duplicate name)
    [f=0000000] Failed to load: cmd_persistent_build_spacing.lua  (duplicate name)
    [f=0000000] Failed to load: gui_xp.lua  (duplicate name)
    [f=0000000] Failed to load: unit_bomber_control.lua  (duplicate name)
    [f=0000000] Loading widget from mod:   Spy move/reclaim defaults  <unit_default_spy_move_cloaked.lua> ...
    [f=0000000] Loading widget from mod:   Red_UI_Framework    <red_ui_framework.lua> ...
    [f=0000000] Loading widget from mod:   MexUpg Helper       <cmd_mex_upgrade_helper.lua> ...
    [f=0000000] Loading widget from mod:   Red Tooltip         <gui_red_tooltip.lua> ...
    [f=0000000] Loading widget from mod:   Faction Change      <gui_faction_change.lua> ...
    [f=0000000] Loading widget from mod:   Commander Name Tags  <gui_comm_nametags.lua> ...
    [f=0000000] Loading widget from mod:   HealthBars          <gui_healthbars.lua> ...
    [f=0000000] Loading widget from user:  CtrlPanel Improved  <gui_ctrlpanel_improved.lua> ...
    [f=0000000] Reloaded ctrlpanel from file: ctrlpanelImp.txt
    [f=0000000] Loading widget from mod:   Open Host List      <gui_open_hosts.lua> ...
    [f=0000000] Loading widget from mod:   AdvPlayersList      <gui_advplayerslist.lua> ...
    [f=0000000] Loading widget from mod:   BuildETA            <gui_build_eta.lua> ...
    [f=0000000] Loading widget from mod:   Projectile lights   <gfx_projectile_lights.lua> ...
    [f=0000000] Loading widget from mod:   Initial Queue       <unit_initial_queue.lua> ...
    [f=0000000] Loading widget from mod:   Anti Range          <gui_anti_range.lua> ...
    [f=0000000] Loading widget from mod:   Auto First Build Facing  <unit_autofirstbuildfacing.lua> ...
    [f=0000000] Loading widget from mod:   CameraShake         <camera_shake.lua> ...
    [f=0000000] Loading widget from mod:   Com Counter         <gui_comcounter.lua> ...
    [f=0000000] Loading widget from mod:   DontMove            <unit_dontmove.lua> ...
    [f=0000000] Loading widget from mod:   Com DontBreakCloak  <unit_com_dontbreakcloak.lua> ...
    [f=0000000] Loading widget from mod:   FactoryGuard        <unit_factory_guard.lua> ...
    [f=0000000] Loading widget from mod:   Holdfire Fix        <cmd_holdfire_fix.lua> ...
    [f=0000000] Loading widget from mod:   Pause Screen        <gui_pausescreen.lua> ...
    [f=0000000] Loading widget from mod:   Point Tracker       <gui_point_tracker.lua> ...
    [f=0000000] Loading widget from mod:   ReclaimInfo         <gui_reclaiminfo.lua> ...
    [f=0000000] Loading widget from mod:   Red_Drawing         <red_ui_framework_drawing.lua> ...
    [f=0000000] Loading widget from mod:   Red Resource Bars   <gui_red_resourcebars.lua> ...
    [f=0000000] Loading widget from mod:   RelativeMinimap     <minimap_relative.lua> ...
    [f=0000000] Loading widget from mod:   Share Tracker       <unit_share_tracker.lua> ...
    [f=0000000] Loading widget from mod:   DGun Stall Assist   <unit_dgun_stall_assist.lua> ...
    [f=0000000] Loading widget from mod:   SmartAreaReclaim    <unit_smart_area_reclaim.lua> ...
    [f=0000000] Loading widget from mod:   Spectate Selected   <gui_spectate_selected.lua> ...
    [f=0000000] Loading widget from mod:   State Reverse Toggle  <cmd_state_reverse_toggle.lua> ...
    [f=0000000] Loading widget from mod:   Take Proxy          <cmd_take_proxy.lua> ...
    [f=0000000] Loading widget from mod:   Volume OSD          <snd_volume_osd.lua> ...
    [f=0000000] Loading widget from user:  DCIcon              <dbg_dcicon.lua> ...
    [f=0000000] Loading widget from user:  Emotes              <cmd_emotes.lua> ...
    [f=0000000] Loading widget from user:  Persistent Build Spacing  <gui_persistent_build_spacing.lua> ...
    [f=0000000] Loading widget from user:  Clock               <gui_clock.lua> ...
    [f=0000000] Loading widget from mod:   Red Build/Order Menu  <gui_red_buildordermenu.lua> ...
    [f=0000000] Loading widget from mod:   Adv. Unit Marker    <gui_adv_unit_marker.lua> ...
    [f=0000000] Loading widget from mod:   Red Console         <gui_red_console.lua> ...
    [f=0000000] Loading widget from user:  Mod stats into html  <stat_mod_to_html.lua> ...
    [f=0000000] Loading widget from mod:   Energy Conversion Info  <gui_energy_conversion.lua> ...
    [f=0000000] Loading widget from mod:   Unit Finished Sounds  <snd_unit_finished.lua> ...
    [f=0000000] Loading widget from mod:   Ally Selected Units  <gui_allyselectedunits.lua> ...
    [f=0000000] Loading widget from mod:   Transport AI        <unit_transport_ai.lua> ...
    [f=0000000] Loading widget from mod:   Stockpiler (dynamic)  <unit_stockpile_dynamic.lua> ...
    [f=0000000] Loading widget from mod:   ImmobileBuilder     <unit_immobile_builder.lua> ...
    [f=0000000] Loading widget from mod:   Unit Mover          <cmd_unit_mover.lua> ...
    [f=0000000] Loading widget from user:  Winampgui           <gui_winamp.lua> ...
    [f=0000000] Loading widget from mod:   ignorelist          <api_ignore.lua> ...
    [f=0000000] Loading widget from mod:   Attack AoE          <gui_attack_aoe.lua> ...
    [f=0000000] Loading widget from mod:   Context Build       <cmd_context_build.lua> ...
    [f=0000000] Loading widget from mod:   Set Target Hotkeys  <cmd_target_on_the_move_hotkeys.lua> ...
    [f=0000000] Loading widget from user:  Quick peek          <gui_quickpeek.lua> ...
    [f=0000000] Loading widget from mod:   Red Minimap         <gui_red_minimap.lua> ...
    [f=0000000] Loading widget from user:  Commander anti-reclaim  <unit_comantireclaim.lua> ...
    [f=0000000] Loading widget from user:  Votewindow          <gui_votewindow.lua> ...
    [f=0000000] Loading widget from user:  SmoothScroll        <camera_smooth_move.lua> ...
    [f=0000000] Loading widget from user:  Visual lag meter    <gui_lagbehind.lua> ...
    [f=0000000] Loading widget from user:  No Water Shadows    <gui_nowatershadows.lua> ...
    [f=0000000] Loading widget from mod:   CommandInsert       <cmd_commandinsert.lua> ...
    [f=0000000] Loading widget from user:  Bomber control      <unit_bomber_control.lua> ...
    [f=0000000] Loading widget from user:  Rank Icons          <gui_xp.lua> ...
    [f=0000000] Loading widget from mod:   EnemySpotter        <gui_enemy_spotter.lua> ...
    [f=0000000] Loading widget from mod:   Select n Center!    <gui_center_n_select.lua> ...
    [f=0000000] Loading widget from user:  Atlastaxi           <gui_luakeys.lua> ...
    [f=0000000] Loading widget from user:  Ecostats            <gui_ecostats.lua> ...
    [f=0000000] Loading widget from mod:   CustomFormations2   <cmd_customformations2.lua> ...
    [f=0000000] LuaUI v0.3
    [f=0000000] [LoadFinalize] finalizing PFS
    [f=0000000] [Path] [PathEstimator::ReadFile] hash=108265262
    [f=0000000] PathCosts: creating PE8 cache with 2 PF threads (16 MB)
    [f=0000000] PathCosts: precached 1 of 8960 blocks
    [f=0000000] PathCosts: precached 562 of 8960 blocks
    [f=0000000] PathCosts: precached 1124 of 8960 blocks
    [f=0000000] PathCosts: precached 1685 of 8960 blocks
    [f=0000000] PathCosts: precached 2246 of 8960 blocks
    [f=0000000] PathCosts: precached 2807 of 8960 blocks
    [f=0000000] PathCosts: precached 3368 of 8960 blocks
    [f=0000000] PathCosts: precached 3928 of 8960 blocks
    [f=0000000] PathCosts: precached 4489 of 8960 blocks
    [f=0000000] PathCosts: precached 5050 of 8960 blocks
    [f=0000000] PathCosts: precached 5610 of 8960 blocks
    [f=0000000] PathCosts: precached 6171 of 8960 blocks
    [f=0000000] PathCosts: precached 6731 of 8960 blocks
    [f=0000000] PathCosts: precached 7291 of 8960 blocks
    [f=0000000] PathCosts: precached 7851 of 8960 blocks
    [f=0000000] PathCosts: precached 8411 of 8960 blocks
    [f=0000000] PathCosts: writing
    [f=0000000] [Path] [PathEstimator::WriteFile] hash=108265262
    [f=0000000] PathCosts: written
    [f=0000000] [Path] [PathEstimator::ReadFile] hash=108265286
    [f=0000000] PathCosts: creating PE32 cache with 2 PF threads (6 MB)
    [f=0000000] PathCosts: precached 0 of 560 blocks
    [f=0000000] PathCosts: precached 37 of 560 blocks
    [f=0000000] PathCosts: precached 72 of 560 blocks
    [f=0000000] PathCosts: precached 107 of 560 blocks
    [f=0000000] PathCosts: precached 144 of 560 blocks
    [f=0000000] PathCosts: precached 180 of 560 blocks
    [f=0000000] PathCosts: precached 216 of 560 blocks
    [f=0000000] PathCosts: precached 254 of 560 blocks
    [f=0000000] PathCosts: precached 290 of 560 blocks
    [f=0000000] PathCosts: precached 325 of 560 blocks
    [f=0000000] PathCosts: precached 360 of 560 blocks
    [f=0000000] PathCosts: precached 397 of 560 blocks
    [f=0000000] PathCosts: precached 433 of 560 blocks
    [f=0000000] PathCosts: precached 470 of 560 blocks
    [f=0000000] PathCosts: precached 506 of 560 blocks
    [f=0000000] PathCosts: precached 541 of 560 blocks
    [f=0000000] PathCosts: writing
    [f=0000000] [Path] [PathEstimator::WriteFile] hash=108265286
    [f=0000000] PathCosts: written
    [f=0000000] [LoadFinalize] finalized PFS (16046ms, checksum b3fe2773)
    [f=0000000] Loading Skirmish AIs
    [f=0000000] Loaded DecalsDrawer: Legacy
    [f=0000000] false
    [f=0000000] Error in DrawScreen(): [string "LuaUI/Widgets/gui_red_minimap.lua"]:323: gl.DrawMiniMap() can only be used if the minimap is in slave mode
    [f=0000000] Removed widget: Red Minimap
    [f=0000000] GameID: 87342c541cb1217ac946413a7e3936eb
    [f=0000000] Connection attempt from Jools
    [f=0000000]  -> Version: 97.0.1-450-g502a946 develop
    [f=0000000]  -> Connection established (given id 0)
    [f=0000000] Skirmish AI "Enemy" (ID:0, Short-Name:"NullAI", Version:"0.1") took over control of team 1
    [f=0000000] Player Jools finished loading and is now ingame
    [f=0000084] Cheating is enabled!
    [f=0000154] Red_UI_Framework>> last processed widget was "Red Tooltip"
    [f=0000154] Reloaded ctrlpanel from file: LuaUI/ctrlpanel.txt
    [f=0000154] Red_Drawing>> last processed widget was "Red Tooltip"
    [f=0000154] Disabled LuaUI
    [f=0000588]   armst   armst_dead   armst_heap   armstump   armstump_dead   armstump_heap 
    [f=0000728] [InitOpenGL] video mode set to 1280x1022:24bit @60Hz 
    [f=0000886] [InitOpenGL] video mode set to 1280x1024:24bit @60Hz 
    [f=0000978] [GiveUnits] spawned 500 armst unit(s) for team 0
    [f=0001067] [GiveUnits] spawned 500 armst unit(s) for team 1
    [f=0001102] debug-info rendering mode is enabled!
    [f=0001613] Warning: [Watchdog] Hang detection triggered for Spring 97.0.1-450-g502a946 develop.
    [f=0001613] Warning:   (in thread: main)
    [f=0001613] Warning: DLL information:
    [f=0001613] Error: 0x00400000	spring
    [f=0001613] Error: 0x77b00000	ntdll
    [f=0001613] Error: 0x757c0000	kernel32
    [f=0001613] Error: 0x759d0000	KERNELBASE
    [f=0001613] Error: 0x75aa0000	ADVAPI32
    [f=0001613] Error: 0x77560000	msvcrt
    [f=0001613] Error: 0x77510000	sechost
    [f=0001613] Error: 0x75f30000	RPCRT4
    [f=0001613] Error: 0x754f0000	SspiCli
    [f=0001613] Error: 0x754e0000	CRYPTBASE
    [f=0001613] Error: 0x61ef0000	GLU32
    [f=0001613] Error: 0x58c90000	OPENGL32
    [f=0001613] Error: 0x772b0000	GDI32
    [f=0001613] Error: 0x758d0000	USER32
    [f=0001613] Error: 0x76280000	LPK
    [f=0001613] Error: 0x761d0000	USP10
    [f=0001613] Error: 0x58ba0000	DDRAW
    [f=0001613] Error: 0x65170000	DCIMAN32
    [f=0001613] Error: 0x75d60000	SETUPAPI
    [f=0001613] Error: 0x76020000	CFGMGR32
    [f=0001613] Error: 0x75720000	OLEAUT32
    [f=0001613] Error: 0x77340000	ole32
    [f=0001613] Error: 0x762b0000	DEVOBJ
    [f=0001613] Error: 0x70940000	dwmapi
    [f=0001613] Error: 0x75f00000	IMAGEHLP
    [f=0001613] Error: 0x763f0000	SHELL32
    [f=0001613] Error: 0x774b0000	SHLWAPI
    [f=0001613] Error: 0x73720000	WINMM
    [f=0001613] Error: 0x76050000	WS2_32
    [f=0001613] Error: 0x774a0000	NSI
    [f=0001613] Error: 0x10000000	DevIL
    [f=0001613] Error: 0x6fb10000	MSVCP80
    [f=0001613] Error: 0x6fa70000	MSVCR80
    [f=0001613] Error: 0x6b600000	OpenAL32
    [f=0001613] Error: 0x6cec0000	libgcc_s_sjlj-1
    [f=0001613] Error: 0x70780000	vorbisfile
    [f=0001613] Error: 0x68140000	ogg
    [f=0001613] Error: 0x64cc0000	vorbis
    [f=0001613] Error: 0x62e80000	zlib1
    [f=0001613] Error: 0x70e40000	libfreetype-6
    [f=0001613] Error: 0x64f80000	libfontconfig-1
    [f=0001613] Error: 0x68f40000	libexpat-1
    [f=0001613] Error: 0x62aa0000	glew32
    [f=0001613] Error: 0x6c740000	SDL2
    [f=0001613] Error: 0x75a20000	IMM32
    [f=0001613] Error: 0x76320000	MSCTF
    [f=0001613] Error: 0x73cb0000	VERSION
    [f=0001613] Error: 0x66b70000	nvapi
    [f=0001613] Error: 0x76290000	profapi
    [f=0001613] Error: 0x71dc0000	uxtheme
    [f=0001613] Error: 0x01390000	RTSSHooks
    [f=0001613] Error: 0x013b0000	PowerMenuHook
    [f=0001613] Error: 0x04a50000	nvoglv32
    [f=0001613] Error: 0x71d80000	ntmarta
    [f=0001613] Error: 0x762d0000	WLDAP32
    [f=0001613] Error: 0x75690000	CLBCatQ
    [f=0001613] Error: 0x70930000	shfolder
    [f=0001613] Error: 0x617c0000	dinput8
    [f=0001613] Error: 0x6aef0000	MMDevApi
    [f=0001613] Error: 0x6c100000	PROPSYS
    [f=0001613] Error: 0x653f0000	HID
    [f=0001613] Error: 0x646f0000	dsound
    [f=0001613] Error: 0x73b90000	POWRPROF
    [f=0001613] Error: 0x6bde0000	AUDIOSES
    [f=0001613] Error: 0x77530000	WINTRUST
    [f=0001613] Error: 0x760a0000	CRYPT32
    [f=0001613] Error: 0x76270000	MSASN1
    [f=0001613] Error: 0x03c30000	XInput1_3
    [f=0001613] Error: 0x71bc0000	mswsock
    [f=0001613] Error: 0x74270000	wship6
    [f=0001613] Error: 0x71bb0000	wshtcpip
    [f=0001613] Error: 0x75410000	WLIDNSP
    [f=0001613] Error: 0x770d0000	PSAPI
    [f=0001613] Error: 0x70c30000	DNSAPI
    [f=0001613] Error: 0x753c0000	mdnsNSP
    [f=0001613] Error: 0x73ab0000	Iphlpapi
    [f=0001613] Error: 0x73900000	WINNSI
    [f=0001613] Error: 0x70b90000	rasadhlp
    [f=0001613] Error: 0x75380000	fwpuclnt
    [f=0001613] Error: 0x71c90000	dbghelp
    [f=0001613] Error: 0x75470000	NLAapi
    [f=0001613] Error: 0x75460000	napinsp
    [f=0001613] Error: 0x75440000	pnrpnsp
    [f=0001613] Error: 0x75400000	winrnr
    [f=0001613] Error: 0x753f0000	wshbth
    [f=0001613] Error: 0x62b40000	AIInterface
    [f=0001613] Error: 0x6e340000	SkirmishAI
    [f=0001613] Warning: Stacktrace (main) for Spring 97.0.1-450-g502a946 develop:
    [f=0001613] Warning: (0) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x2e7a01) [0x00AE06C1]
    [f=0001613] Warning: Stacktrace (audio) for Spring 97.0.1-450-g502a946 develop:
    [f=0001613] Warning: (0) C:\Windows\SysWOW64\ntdll.dll(ZwWaitForMultipleObjects+0x15) [0x77B2015D]
    [f=0001613] Warning: (1) C:\Windows\syswow64\kernel32.dll(WaitForMultipleObjectsEx+0x8e) [0x757D19F8]
    [f=0001613] Warning: (2) C:\Windows\syswow64\kernel32.dll(WaitForMultipleObjects+0x18) [0x757D4200]
    [f=0001613] Warning: (3) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x294fa2) [0x00A8DC62]
    [f=0001613] Warning: (4) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x18f3f) [0x00811BFF]
    [f=0001613] Warning: (5) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x4ef694) [0x00CE8354]
    [f=0001613] Warning: (6) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x29283c) [0x00A8B4FC]
    [f=0001613] Warning: (7) U:\bin\Spring\Lab\test\spring_{develop}97.0.1-450-g502a946_minimal-portable\spring.exe(skirmishAiCallback_Cheats_setEnabled+0x291c66) [0x00A8A926]
    [f=0001613] Warning: (8) C:\Windows\syswow64\kernel32.dll(BaseThreadInitThunk+0x12) [0x757D338A]
    [f=0001613] Warning: (9) C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x63) [0x77B39F72]
    [f=0001613] Warning: (10) C:\Windows\SysWOW64\ntdll.dll(RtlInitializeExceptionChain+0x36) [0x77B39F45]
    [f=0001613] Press Shift+esc to access the quit menu
    [f=0001854] debug-info rendering mode is disabled!
    [f=0001884] Press Shift+esc to access the quit menu
    [f=0001920] debug-info rendering mode is enabled!
    [f=0002654] Player Jools went AFK
    [f=0002718] Player Jools came back
    [f=0003151] debug-info rendering mode is disabled!
    [f=0003256] Press Shift+esc to access the quit menu
    [f=0003314] debug-info rendering mode is enabled!
    [f=0003459] debug-info rendering mode is disabled!
    [f=0003486] debug-info rendering mode is enabled!
    [f=0004166] Speed set to 1.1 [Jools]
    [f=0004181] Speed set to 1.2 [Jools]
    [f=0004182] Speed set to 1.3 [Jools]
    [f=0004183] Speed set to 1.4 [Jools]
    [f=0004184] Speed set to 1.5 [Jools]
    [f=0004185] Speed set to 1.6 [Jools]
    [f=0004186] Speed set to 1.7 [Jools]
    [f=0004187] Speed set to 1.8 [Jools]
    [f=0004188] Speed set to 1.9 [Jools]
    [f=0004189] Speed set to 2.0 [Jools]
    [f=0004191] Speed set to 2.2 [Jools]
    [f=0004192] Speed set to 2.4 [Jools]
    [f=0004194] Speed set to 2.6 [Jools]
    [f=0004195] Speed set to 2.8 [Jools]
    [f=0004197] Speed set to 3.0 [Jools]
    [f=0004198] Speed set to 3.2 [Jools]
    [f=0004199] Speed set to 3.4 [Jools]
    [f=0004201] Speed set to 3.6 [Jools]
    [f=0004203] Speed set to 3.8 [Jools]
    [f=0004204] Speed set to 4.0 [Jools]
    [f=0004205] Speed set to 4.2 [Jools]
    [f=0004207] Speed set to 4.4 [Jools]
    [f=0004208] Speed set to 4.6 [Jools]
    [f=0004210] Speed set to 4.8 [Jools]
    [f=0004211] Speed set to 5.0 [Jools]
    [f=0004213] Speed set to 5.5 [Jools]
    [f=0004214] Speed set to 6.0 [Jools]
    [f=0004216] Speed set to 6.5 [Jools]
    [f=0004217] Speed set to 7.0 [Jools]
    [f=0004218] Speed set to 7.5 [Jools]
    [f=0004220] Speed set to 8.0 [Jools]
    [f=0004221] Speed set to 8.5 [Jools]
    [f=0004222] Speed set to 9.0 [Jools]
    [f=0004224] Speed set to 9.5 [Jools]
    [f=0004226] Speed set to 10.0 [Jools]
    [f=0004228] Speed set to 11.0 [Jools]
    [f=0004229] Speed set to 12.0 [Jools]
    [f=0004231] Speed set to 13.0 [Jools]
    [f=0004247] Speed set to 12.0 [Jools]
    [f=0004255] Speed set to 11.0 [Jools]
    [f=0004262] Speed set to 10.0 [Jools]
    [f=0004270] Speed set to 9.5 [Jools]
    [f=0004325] Speed set to 10.0 [Jools]
    [f=0008104] debug-info rendering mode is disabled!
    [f=0008310] debug-info rendering mode is enabled!
    [f=0010872] debug-info rendering mode is disabled!
    [f=0011250] debug-info rendering mode is enabled!
    [f=0013375] Error: assert(CTO <= 1.3f) failed (SF=13375 : DF=9858 : CTO=2.700889 : WSF=0.300099 : DT=9.000000ms : DLNPPT=0.000000ms | DLRPT=9.000000ms | DSFPT=9.000000ms : NP=1)
    [f=0014585] Error: assert(CTO <= 1.3f) failed (SF=14585 : DF=10100 : CTO=3.900000 : WSF=0.300000 : DT=13.000000ms : DLNPPT=0.000000ms | DLRPT=14.000000ms | DSFPT=14.000000ms : NP=1)
    [f=0014889] Error: assert(CTO <= 1.3f) failed (SF=14889 : DF=10161 : CTO=3.598820 : WSF=0.299902 : DT=12.000000ms : DLNPPT=0.000000ms | DLRPT=13.000000ms | DSFPT=13.000000ms : NP=1)
    [f=0016732] debug-info rendering mode is disabled!
    [f=0017148] Speed set to 9.5 [Jools]
    [f=0017289] Speed set to 9.0 [Jools]
    [f=0017299] Speed set to 8.5 [Jools]
    [f=0017307] Speed set to 8.0 [Jools]
    [f=0017315] Speed set to 7.5 [Jools]
    [f=0017323] Speed set to 7.0 [Jools]
    [f=0017331] Speed set to 6.5 [Jools]
    [f=0017336] Speed set to 6.0 [Jools]
    [f=0017343] Speed set to 5.5 [Jools]
    [f=0017348] Speed set to 5.0 [Jools]
    [f=0017353] Speed set to 4.8 [Jools]
    [f=0017358] Speed set to 4.6 [Jools]
    [f=0017362] Speed set to 4.4 [Jools]
    [f=0017367] Speed set to 4.2 [Jools]
    [f=0017371] Speed set to 4.0 [Jools]
    [f=0017375] Speed set to 3.8 [Jools]
    [f=0017379] Speed set to 3.6 [Jools]
    [f=0017384] Speed set to 3.4 [Jools]
    [f=0017388] Speed set to 3.2 [Jools]
    [f=0017391] Speed set to 3.0 [Jools]
    [f=0017394] Speed set to 2.8 [Jools]
    [f=0017397] Speed set to 2.6 [Jools]
    [f=0017399] Speed set to 2.4 [Jools]
    [f=0017511] Speed set to 2.6 [Jools]
    [f=0017550] Speed set to 2.8 [Jools]
    [f=0017553] Speed set to 3.0 [Jools]
    [f=0017555] Speed set to 3.2 [Jools]
    [f=0017559] Speed set to 3.4 [Jools]
    [f=0017562] Speed set to 3.6 [Jools]
    [f=0017565] Speed set to 3.8 [Jools]
    [f=0017569] Speed set to 4.0 [Jools]
    [f=0017574] Speed set to 4.2 [Jools]
    [f=0017654] Speed set to 4.0 [Jools]
    [f=0018202] debug-info rendering mode is enabled!
    [f=0018364] debug-info rendering mode is disabled!
    [f=0018569] User exited
    [f=0018571] [SpringApp::ShutDown][1]
    [f=0018571] [ThreadPool::SetThreadCount][1] #wanted=0 #current=2 #max=2
    [f=0018571] [ThreadPool::SetThreadCount][2] #threads=0
    [f=0018571] [SpringApp::ShutDown][2]
    [f=0018571] [~CGame][1]
    [f=0018571] [~CGame][2]
    [f=0018571] [~CGame][3]
    [f=0018571] [~CGame][4]
    [f=0018571] [~CGame][5]
    [f=0018571] [~CGame][6]
    [f=0018571] [~CGame][7]
    [f=0018571] [~CGame][8]
    [f=0018571] [CCollisionHandler] dis-/continuous tests: 0/2226532
    [f=0018571] [~CGame][9]
    [f=0018571] [~CGame][10]
    [f=0018571] [~CPathCache(28x20)] cacheHits=0 hitPercentage=0% numHashColls=0 maxCacheSize=0
    [f=0018571] [~CPathCache(28x20)] cacheHits=6752 hitPercentage=78% numHashColls=0 maxCacheSize=20
    [f=0018571] [~CPathCache(112x80)] cacheHits=0 hitPercentage=0% numHashColls=0 maxCacheSize=0
    [f=0018571] [~CPathCache(112x80)] cacheHits=16104 hitPercentage=25% numHashColls=0 maxCacheSize=201
    [f=0018571] Statistics for RectangleOptimizer: 0%
    [f=0018571] Statistics for RectangleOptimizer: 0%
    [f=0018571] [~CGame][11]
    [f=0018571] [~CGame][12]
    [f=0018571] [~CGame][13]
    [f=0018571] [~CGame][14]
    [f=0018571] [~CGame][15]
    [f=0018571] [~CGame][16]
    [f=0018571] [~CGame][17]
    [f=0018571] [SpringApp::ShutDown][3]
    [f=0018571] Statistics for local connection:
    Received: 41047 bytes
    Sent: 204624 bytes
    
    [f=0018571] Writing demo: U:\bin\Spring\Data\demos\20141001_200615_Coyote_CreekV4_97.0.1-450-g502a946 develop.sdf
    [f=0018571] [SpringApp::ShutDown][4]
    [f=0018571] [SpringApp::ShutDown][5]
    [f=0018571] [SpringApp::ShutDown][6]
    [f=0018571] [SpringApp::ShutDown][7]
    [LuaSocket] Dumping luasocket rules:
    [LuaSocket] TCP_CONNECT ALLOW * -1
    [LuaSocket] TCP_LISTEN  ALLOW * -1
    [LuaSocket] UDP_LISTEN  ALLOW * -1
    [SpringApp::ShutDown][8]
    [WatchDog::Uninstall][1] hangDetectorThread=033CB388
    [WatchDog::Uninstall][2]
    [WatchDog::Uninstall][3]
    [SpringApp::ShutDown][9]
    [SpringApp::Run] exitCode=0
    
    txt file icon infolog_ba_test3296.txt (50,148 bytes) 2014-10-01 19:18 +
  • ? file icon 20141001_200615_Coyote_CreekV4_97.0.1-450-g502a946 develop_ba_test_3296.sdf (199,492 bytes) 2014-10-01 19:20
  • ? file icon 20141001_200130_Coyote_CreekV4_97.0.1-450-g502a946 develop_bota_1.7.11.sdf (187,614 bytes) 2014-10-01 19:22
  • ? file icon 20141001_203230_Coyote_CreekV4_97.0.1-450-g502a946 develop_xta_barebone.sdf (222,495 bytes) 2014-10-01 19:33
  • ? file icon 20141003_004121_Four_Lakes_V2_97.0.1-452-g6150c70 develop.sdf (104,007 bytes) 2014-10-02 23:46

-Relationships
related to 0004564resolvedjK Crash due to memory allocation 
+Relationships

-Notes

~0013683

Jools (reporter)

Correction: 97.0.1-250: about 100 MB (screenshot missing)

~0013684

Jools (reporter)

Last edited: 2014-09-30 20:31

View 2 revisions

Possibly related to http://springrts.com/mantis/view.php?id=4564

~0013685

abma (administrator)

the test was to run KAIK vs KAIK games to compare memory usage?

also please give the full version string, for example 97.0.1-250 is missing the hash, correct would be 97.0.1-447-ga9ae331 for example.

~0013686

abma (administrator)

correct map name is "Coyote_Creekv3"

~0013687

abma (administrator)

Last edited: 2014-09-30 21:36

View 3 revisions

/luarules disable seems to free most lua memory used. so memleak very likely its synced lua code.

very likely the gadget that uses most cpu time is also the gadget memleaking.

for me "Cloak lose target" & "game_zombiemode" uses most cpu.

please try to disable these gadgets and see if still memleaks!

~0013688

Jools (reporter)

Yes, it was run KAIK vs KAIK (v 0.13). Would it be better to test with replays? And with human people with give all?

I noticed the same with cloak and lose target. Zombies were just enabled to get more battle, will try again. However, there was still a difference between 96.0 and dev versions, but maybe they work differently.

Was trying to bisect where changes happened, but could not find any versions between 96.0.1 and 96.0.1-406

~0013689

abma (administrator)

imo comparing versions doesn't make much sense as behaviour of the engine changed / features are added, etcetc. either you bisect or its mostly useless.

it would be great if some simple example would lead to the memleak, so testing as human makes more sense, you mostly know what you are doing and you can only do one thing at once. :)


so sth. like /give all or /give 100 someunit & /give 100 someunit 1

~0013690

abma (administrator)

Last edited: 2014-10-01 00:48

View 5 revisions

in 96.0.1-234-gae8db54 the garbage-collector was changed:
https://github.com/spring/spring/commit/ae8db547c93bba13e5fe2475ad648f1c93df283f

not sure if related.

it can be reproduced when:

1. game heavily lags (1fps or so)
2. lua memory increase is pretty fast.

just do some /cheat + /give all /give all 1

for me it looks atm as the garbage collector doesn't catch up fast enough, the other posibility is that XTA just uses to many memory. with BA i can't trigger this bug this way, but BA doesn't use less memory!


atm i'm not sure if this is a game or engine bug. no matter of that the memory usage of xta imo should be decreased!

~0013691

abma (administrator)

Last edited: 2014-10-01 02:00

View 2 revisions

increasing MaxLuaGarbageCollectionTime seems to fix it for me.

-> xta should reduce memory usage/allocations!

~0013692

Jools (reporter)

Last edited: 2014-10-01 02:01

View 2 revisions

I agree with that conclusion, I would have tested this on something light weight such as BOTA, but didn't find any AI that works for it.

~0013693

Jools (reporter)

I tested again with spring_{develop}97.0.1-450-g502a946_minimal-portable and managed to reproduce the memory increase with other mods too. Memory increase seems to be proportional to the number of callin calls in the mod, with /luaui disabled and a minimum of essential gadgets in xta, there is no memory increase, but on the other hand, nothing is really happening either in lua. I attach such a barebone xta version.

I also managed to reproduce the memory increase with BOTA and with Balanced Annihilation test-3296 (infolog attached). It is reproducible by just giving 500 stumpies to each team and let them fight each other. It is interesting to note that even after the battle has ended, memory keeps increasing. I sped up the game and at 10 minutes ba had used over 100 Mb of memory.

BOTA has many gadgets from xta so it's maybe not a good test, but OTOH it has other effects and models. But ofc also ba and xta share some gadgets.

Another possibility is that the memory leak could be somehow tied to features/wrecks, since it happened also after battle was completed.

~0013694

Jools (reporter)

Last edited: 2014-10-01 19:45

View 2 revisions

It doesn't happen in xta with minimal gadgets (even with luaui), ie no callins done during gametime, so maybe it's related to gadgethandler?

~0013695

Jools (reporter)

Last edited: 2014-10-01 20:07

View 2 revisions

Link to xta-barebone: https://drive.google.com/uc?id=0B4WyZ8625I2LUzk4X0xvU0p3Rms&export=download

Link to bota 1.7.11: https://drive.google.com/uc?id=0B4WyZ8625I2LYlAyT3dxeklHMzQ&export=download

~0013698

Jools (reporter)

I managed to run into the memory limit of about 750 Mb in 4 minutes or so of gametime, here's a link to the replay and the infolog.

Most memory was probaly caused by luaui, I didn't have profiler enabled but the fps was fine most of the time so the profiler is not really relevant anyway.

This time I tried with 97.0.1-452-g6150c70 develop and the game was XTA test-793 (rapid tag is xta:test)

Alt-b shows that the garbage collectors total time is about 1.7 seconds.
+Notes

-Issue History
Date Modified Username Field Change
2014-09-30 20:04 Jools New Issue
2014-09-30 20:04 Jools File Added: memorytest_infologs.zip
2014-09-30 20:10 Jools Note Added: 0013683
2014-09-30 20:14 Jools File Added: demos.zip
2014-09-30 20:15 Jools File Added: demos2.zip
2014-09-30 20:18 Jools File Added: screen00397_96.0.png
2014-09-30 20:19 Jools File Added: screen00402_208.png
2014-09-30 20:22 Jools File Added: screen00405_450.png
2014-09-30 20:22 Jools File Added: screen00406_350.png
2014-09-30 20:23 Jools File Added: screen00407_210.png
2014-09-30 20:24 Jools File Added: screen00408_97.0.png
2014-09-30 20:27 Jools File Added: screen00409_96-408.png
2014-09-30 20:28 Jools File Added: screen00410_208_2.png
2014-09-30 20:29 Jools File Added: screen00411_96.0.1.png
2014-09-30 20:29 Jools File Added: springsettings.cfg
2014-09-30 20:30 Jools Note Added: 0013684
2014-09-30 20:31 Jools Note Edited: 0013684 View Revisions
2014-09-30 21:16 abma Additional Information Updated View Revisions
2014-09-30 21:19 abma Note Added: 0013685
2014-09-30 21:19 abma Status new => feedback
2014-09-30 21:22 abma Note Added: 0013686
2014-09-30 21:29 abma Note Added: 0013687
2014-09-30 21:32 abma Note Edited: 0013687 View Revisions
2014-09-30 21:36 abma Note Edited: 0013687 View Revisions
2014-09-30 21:37 abma Relationship added related to 0004564
2014-09-30 22:06 Jools Note Added: 0013688
2014-09-30 22:06 Jools Status feedback => new
2014-09-30 22:33 abma Note Added: 0013689
2014-10-01 00:45 abma Note Added: 0013690
2014-10-01 00:46 abma Note Edited: 0013690 View Revisions
2014-10-01 00:47 abma Note Edited: 0013690 View Revisions
2014-10-01 00:48 abma Note Edited: 0013690 View Revisions
2014-10-01 00:48 abma Note Edited: 0013690 View Revisions
2014-10-01 01:57 abma Note Added: 0013691
2014-10-01 01:59 Jools Note Added: 0013692
2014-10-01 02:00 abma Note Edited: 0013691 View Revisions
2014-10-01 02:01 Jools Note Edited: 0013692 View Revisions
2014-10-01 02:05 abma Summary Increase in Lua-allocated memory => Lua Garbage-Collector sometimes doesn't catch up fast enough when to many allocations are made / frame
2014-10-01 19:18 Jools Note Added: 0013693
2014-10-01 19:18 Jools File Added: infolog_ba_test3296.txt
2014-10-01 19:20 Jools File Added: 20141001_200615_Coyote_CreekV4_97.0.1-450-g502a946 develop_ba_test_3296.sdf
2014-10-01 19:22 Jools File Added: 20141001_200130_Coyote_CreekV4_97.0.1-450-g502a946 develop_bota_1.7.11.sdf
2014-10-01 19:33 Jools Note Added: 0013694
2014-10-01 19:33 Jools File Added: 20141001_203230_Coyote_CreekV4_97.0.1-450-g502a946 develop_xta_barebone.sdf
2014-10-01 19:45 Jools Note Edited: 0013694 View Revisions
2014-10-01 20:02 Jools Note Added: 0013695
2014-10-01 20:07 Jools Note Edited: 0013695 View Revisions
2014-10-02 23:45 Jools Note Added: 0013698
2014-10-02 23:46 Jools File Added: 20141003_004121_Four_Lakes_V2_97.0.1-452-g6150c70 develop.sdf
2014-10-03 00:26 jK Changeset attached => spring develop 3d2568f6
2014-10-03 00:26 jK Assigned To => jK
2014-10-03 00:26 jK Status new => resolved
2014-10-03 00:26 jK Resolution open => fixed
+Issue History