BA Freezing problem.

BA Freezing problem.

Classic game design, maintained to please you...

Moderator: Content Developer

Post Reply
Ares
Balanced Annihilation Developer
Posts: 412
Joined: 19 Mar 2011, 13:43

BA Freezing problem.

Post by Ares »

Within the last 6 months started getting freezes that last 1 second every 5-10minutes in ba games, especially noticable when zooming. It really ruins my BA experience.

Does anyone else notice freezing that wasn't there before. Do you know the solution?

Code: Select all

[f=0074694] Warning: [Watchdog] Hang detection triggered for Spring 103.0.
[f=0074694] Warning:   (in thread: main)
[f=0074694] Warning: DLL information:
[f=0074694] Error: 0x00400000	spring
[f=0074694] Error: 0x777d0000	ntdll
[f=0074694] Error: 0x768d0000	KERNEL32
[f=0074694] Error: 0x75230000	KERNELBASE
[f=0074694] Error: 0x76ca0000	ADVAPI32
[f=0074694] Error: 0x5ac80000	GLU32
[f=0074694] Error: 0x76a10000	IMAGEHLP
[f=0074694] Error: 0x76bd0000	msvcrt
[f=0074694] Error: 0x5afa0000	OPENGL32
[f=0074694] Error: 0x75490000	SHELL32
[f=0074694] Error: 0x76d20000	USER32
[f=0074694] Error: 0x747b0000	WINMM
[f=0074694] Error: 0x76fd0000	WS2_32
[f=0074694] Error: 0x10000000	DevIL
[f=0074694] Error: 0x6b800000	OpenAL32
[f=0074694] Error: 0x70780000	vorbisfile
[f=0074694] Error: 0x62e80000	zlib1
[f=0074694] Error: 0x70e40000	libfreetype-6
[f=0074694] Error: 0x65180000	libfontconfig-1
[f=0074694] Error: 0x62aa0000	glew32
[f=0074694] Error: 0x6c740000	SDL2
[f=0074694] Error: 0x772c0000	sechost
[f=0074694] Error: 0x75130000	RPCRT4
[f=0074694] Error: 0x76a30000	GDI32
[f=0074694] Error: 0x5ab90000	DDRAW
[f=0074694] Error: 0x76750000	combase
[f=0074694] Error: 0x776b0000	SHLWAPI
[f=0074694] Error: 0x74400000	WINMMBASE
[f=0074694] Error: 0x76fc0000	NSI
[f=0074694] Error: 0x5f330000	MSVCP80
[f=0074694] Error: 0x64980000	MSVCR80
[f=0074694] Error: 0x774e0000	ole32
[f=0074694] Error: 0x68140000	ogg
[f=0074694] Error: 0x64cc0000	vorbis
[f=0074694] Error: 0x68f40000	libexpat-1
[f=0074694] Error: 0x76e80000	IMM32
[f=0074694] Error: 0x76ec0000	OLEAUT32
[f=0074694] Error: 0x74f40000	VERSION
[f=0074694] Error: 0x751f0000	SspiCli
[f=0074694] Error: 0x5ab80000	DCIMAN32
[f=0074694] Error: 0x770c0000	cfgmgr32
[f=0074694] Error: 0x743a0000	DEVOBJ
[f=0074694] Error: 0x75370000	MSCTF
[f=0074694] Error: 0x74fb0000	CRYPTBASE
[f=0074694] Error: 0x74f50000	bcryptPrimitives
[f=0074694] Error: 0x6a520000	nvapi
[f=0074694] Error: 0x77100000	SETUPAPI
[f=0074694] Error: 0x74310000	SHCORE
[f=0074694] Error: 0x74a60000	profapi
[f=0074694] Error: 0x6bac0000	uxtheme
[f=0074694] Error: 0x6ab90000	dwmapi
[f=0074694] Error: 0x51a20000	nvoglv32
[f=0074694] Error: 0x74a90000	WTSAPI32
[f=0074694] Error: 0x77310000	WINTRUST
[f=0074694] Error: 0x77350000	CRYPT32
[f=0074694] Error: 0x75210000	MSASN1
[f=0074694] Error: 0x73790000	ntmarta
[f=0074694] Error: 0x74d10000	kernel.appcore
[f=0074694] Error: 0x6f490000	powrprof
[f=0074694] Error: 0x74230000	WINSTA
[f=0074694] Error: 0x76b40000	clbcatq
[f=0074694] Error: 0x64690000	shfolder
[f=0074694] Error: 0x737e0000	MMDevApi
[f=0074694] Error: 0x56450000	dsound
[f=0074694] Error: 0x6f4d0000	AUDIOSES
[f=0074694] Error: 0x56500000	dinput8
[f=0074694] Error: 0x73980000	HID
[f=0074694] Error: 0x564f0000	XInput1_4
[f=0074694] Error: 0x6f6e0000	mswsock
[f=0074694] Error: 0x6edc0000	dbghelp
[f=0074694] Warning: Stacktrace (main) for Spring 103.0:
[f=0074694] Warning: (0) C:\Windows\SYSTEM32\msvcrt.dll [0x0000B332]
[f=0074694] Warning: (1) C:\Windows\SYSTEM32\msvcrt.dll [0x0000B2E4]
[f=0074694] Warning: (2) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x0069AEAF]
[f=0074694] Warning: (3) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x0069B26F]
[f=0074694] Warning: (4) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x0069BC1E]
[f=0074694] Warning: (5) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x0071297A]
[f=0074694] Warning: (6) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x00718379]
[f=0074694] Warning: (7) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x00718F92]
[f=0074694] Warning: (8) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x0042E3CB]
[f=0074694] Warning: (9) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x00779A7E]
[f=0074694] Warning: (10) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x00780D89]
[f=0074694] Warning: (11) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x007572C6]
[f=0074694] Warning: (12) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x00D31834]
[f=0074694] Warning: (13) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x00401402]
[f=0074694] Warning: (14) C:\Windows\SYSTEM32\KERNEL32.DLL [0x00017C04]
[f=0074694] Warning: (15) C:\Windows\SYSTEM32\ntdll.dll [0x0005AB8F]
[f=0074694] Warning: (16) C:\Windows\SYSTEM32\ntdll.dll [0x0005AB5A]
[f=0074694] Warning: Stacktrace (audio) for Spring 103.0:
[f=0074694] Warning: (0) C:\Windows\SYSTEM32\ntdll.dll [0x0003C7EC]
[f=0074694] Warning: (1) C:\Windows\SYSTEM32\KERNEL32.DLL [0x00017B89]
[f=0074694] Warning: (2) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x00922912]
[f=0074694] Warning: (3) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x0080760C]
[f=0074694] Warning: (4) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x00B65297]
[f=0074694] Warning: (5) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x00B5947D]
[f=0074694] Warning: (6) C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe [0x0091F5D6]
[f=0074694] Warning: (7) C:\Windows\SYSTEM32\KERNEL32.DLL [0x00017C04]
[f=0074694] Warning: (8) C:\Windows\SYSTEM32\ntdll.dll [0x0005AB8F]
[f=0074694] Warning: (9) C:\Windows\SYSTEM32\ntdll.dll [0x0005AB5A]
[f=0074825] [Noitcelfer] afus field*
[f=0075099] <Trinity> no friend
[f=0075330] Spectator vscout left the game:  normal quit
[f=0075337] <Trinity> my 8 afus
[f=0075386] <Trinity> sad
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14650
Joined: 17 Nov 2005, 02:43

Re: BA Freezing problem.

Post by Forboding Angel »

[f=0074694] Warning: [Watchdog] Hang detection triggered for Spring 103.0.

Stop using a potato.

In springsettings:
hangtimeout = -10
User avatar
Floris
Balanced Annihilation Developer
Posts: 609
Joined: 04 Jan 2011, 20:00

Re: BA Freezing problem.

Post by Floris »

he has a 6700k kind of potato though

...oh and stop using an admin account as user
User avatar
Silentwings
Moderator
Posts: 3686
Joined: 25 Oct 2008, 00:23

Re: BA Freezing problem.

Post by Silentwings »

I also get these short freezes when zooming in/out late on in a big game, on both my (i7 + reasonably high end mobile gfx) laptops - worse on the AMD one than the nVidia one. It seems unrelated to the level of stress from non-Spring stuff on the machine at the time.

I think it may be related to when the view changes from showing unit icons versus models versus sprites. One obvious thing to do is /give 1000 armflash on an empty map and see if just zooming in/out in that situation causes a hang. I'm afraid I haven't been playing enough to care about investigating it.

My theory appears to be supported by translating the stacktrace above:

Code: Select all

module	address	file	line
C:\Windows\SYSTEM32\msvcrt.dll	0x0000B332	??	0
C:\Windows\SYSTEM32\msvcrt.dll	0x0000B2E4	??	0
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x0069AEAF	rts/Rendering/FarTextureHandler.cpp	318
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x0069B26F	rts/Rendering/FarTextureHandler.cpp	133
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x0069BC1E	rts/Rendering/FarTextureHandler.cpp	260
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x0071297A	rts/Rendering/UnitDrawer.cpp	378
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x00718379	rts/Rendering/WorldDrawer.cpp	304
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x00718F92	rts/Rendering/WorldDrawer.cpp	239
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x0042E3CB	rts/Game/Game.cpp	1213
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x00779A7E	rts/System/SpringApp.cpp	984
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x00780D89	rts/System/SpringApp.cpp	1016
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x007572C6	rts/System/Main.cpp	48
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x00D31834	rts/System/Main.cpp	107
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x00401402	/opt/mxe/tmp-gcc/gcc-4.8.1/mirror-mingw-w64-c28722c/trunk/mingw-w64-crt/crt/crtexe.c	317
C:\Windows\SYSTEM32\ntdll.dll	0x0005AB8F	??	0
C:\Windows\SYSTEM32\ntdll.dll	0x0005AB5A	??	0
C:\Windows\SYSTEM32\ntdll.dll	0x0003C7EC	??	0
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x00922912	thread.cpp	?
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x0080760C	rts/System/Sound/OpenAL/Sound.cpp	379
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x00B65297	/slave/mingwlibs/include/boost/function/function_template.hpp	154
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x00B5947D	/slave/mingwlibs/include/boost/function/function_template.hpp	767
C:\Users\Admin\Documents\My Games\Spring\engine\103.0\spring.exe	0x0091F5D6	thread.cpp	?
C:\Windows\SYSTEM32\ntdll.dll	0x0005AB8F	??	0
C:\Windows\SYSTEM32\ntdll.dll	0x0005AB5A	??
-> UnitDrawer.cpp/FarTextureHandler.cpp

Not sure when it started, maybe I always had them in 103, maybe a recent (~3-9 months ago maybe) BA related change that starting straining the engine to hard. Bandwidth into the gfx card would be my first (uneducated) guess, although maybe msvcrt.dll suggests something different. Happy hunting ;)
hangtimeout = -10
Mostly pointless - it will do nothing to change the hangs, only suppress the stacktraces (which you might be glad of, but once every few mins was not worth the trouble for me) and that might make the problem harder for devs to diagnose.

@Ares: Please pastebin infologs, and better to provide full infologs, they are usually more useful. I guess there is nothing you (personally) can change to solve the issue.
sprunk
Posts: 86
Joined: 29 Jun 2015, 07:36

Re: BA Freezing problem.

Post by sprunk »

Ares
Balanced Annihilation Developer
Posts: 412
Joined: 19 Mar 2011, 13:43

Re: BA Freezing problem.

Post by Ares »

Silentwings wrote:I think it may be related to when the view changes from showing unit icons versus models versus sprites
Good observation Bluestone, I use 188 for Unit LOD distance and 184 for unit icon distance. I have always played this way so my units become icons without much zoom out - like Supreme Commander strategic icons. Within the last 8 months I was able to play massive 8v8 DSD games with none of this freezing effect.

Other players have also complained about it, so maybe something changed.

Any suggestions as to how I could change Unit LOD distance and Unit icon distance values to improve the situation?
User avatar
Silentwings
Moderator
Posts: 3686
Joined: 25 Oct 2008, 00:23

Re: BA Freezing problem.

Post by Silentwings »

You could set both values so high that you never see icons, that probably works - but then ofc you won't see icons (which I dislike more than the odd hang). Other than that, wait for an engine update.

Thanks to Kloot for fixing it :)
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14650
Joined: 17 Nov 2005, 02:43

Re: BA Freezing problem.

Post by Forboding Angel »

Silentwings wrote:
hangtimeout = -10
Mostly pointless - it will do nothing to change the hangs, only suppress the stacktraces (which you might be glad of, but once every few mins was not worth the trouble for me) and that might make the problem harder for devs to diagnose.
Writing the stack traces in many cases can be far worse than the hiccups they report.

A hiccup can be .5 seconds, writing the stack trace can take up to 30 seconds, all of which is time that the game remains frozen.
Ares
Balanced Annihilation Developer
Posts: 412
Joined: 19 Mar 2011, 13:43

Re: BA Freezing problem.

Post by Ares »

Until recently stacktraces were never an issue.

Changing unit LOD distance to maximum alleviated the problem (thx stacktrace), icon distance can be set to anything.

Now my units are rendered all the time, but at least it doesn't seem to freeze anymore.
User avatar
Silentwings
Moderator
Posts: 3686
Joined: 25 Oct 2008, 00:23

Re: BA Freezing problem.

Post by Silentwings »

icon distance can be set to anything.
It's just because with unit LOD set on max, the value of unit icon dist won't do anything - they normally function as a pair. Glad the semi-workaround works.
Post Reply

Return to “Balanced Annihilation”

cron