2024-05-16 19:22 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0001718Spring engineGeneralpublic2009-12-16 16:59
ReporterGoogle_Frog 
Assigned Tozerver 
PrioritynormalSeveritycrashReproducibilityrandom
StatusresolvedResolutionfixed 
Product Version0.80.4.0 
Target VersionFixed in Version0.81.0.0 
Summary0001718: Spring Freezes
DescriptionOccasionally Spring freezes. There is no information in the infolog about the freeze and Spring does not display an error message, it just stops.

It still freezes with 0.80.5.1 and I think it is to do with something in CA that has been added between r5763 and r5833. Noone else freezes when I do and I haven't frozen as a spectator. No freeze occurs while watching replays of games which have caused a freeze. I have watched a few replays and nothing out of the ordinary seems to be happening at end of the replay.

Is there any kind of deeper debugger that could catch exactly where the freeze occurs?
TagsNo tags attached.
Checked infolog.txt for Errors
Attached Files

-Relationships
+Relationships

-Notes

~0004323

zerver (reporter)

Last edited: 2009-11-13 15:07

Try setting HangTimeout=10 in springsettings.cfg. After it hangs, check the infolog.txt which hopefully will contain a stack trace. FYI this trick currently does not work on linux.

~0004364

Google_Frog (reporter)

Thanks. I will try that.

~0004368

Google_Frog (reporter)

[ 10461] Hang detection triggered for Spring 0.80.5.2 (0.80.5.2-0-g67e2f5b{@}-cmake-mingw32).
[ 10461] DLL information:
[ 10461] 0x00400000 spring
[ 10461] 0x7c900000 ntdll
[ 10461] 0x7c800000 kernel32
[ 10461] 0x10000000 DevIL
[ 10461] 0x77c10000 MSVCRT
[ 10461] 0x003e0000 ILU
[ 10461] 0x77dd0000 ADVAPI32
[ 10461] 0x77e70000 RPCRT4
[ 10461] 0x77fe0000 Secur32
[ 10461] 0x68b20000 GLU32
[ 10461] 0x5ed00000 OPENGL32
[ 10461] 0x77f10000 GDI32
[ 10461] 0x77d40000 USER32
[ 10461] 0x73760000 DDRAW
[ 10461] 0x73bc0000 DCIMAN32
[ 10461] 0x76c90000 IMAGEHLP
[ 10461] 0x6fbc0000 mingwm10
[ 10461] 0x7c9c0000 SHELL32
[ 10461] 0x77f60000 SHLWAPI
[ 10461] 0x71ab0000 WS2_32
[ 10461] 0x71aa0000 WS2HELP
[ 10461] 0x6e940000 libgcc_s_dw2-1
[ 10461] 0x00fe0000 SDL
[ 10461] 0x76b40000 WINMM
[ 10461] 0x7c340000 MSVCR71
[ 10461] 0x66fc0000 freetype6
[ 10461] 0x61b80000 zlib1
[ 10461] 0x6ed80000 glew32
[ 10461] 0x6b180000 vorbisfile
[ 10461] 0x63e00000 vorbis
[ 10461] 0x01030000 ogg
[ 10461] 0x01050000 OpenAL32
[ 10461] 0x76390000 IMM32
[ 10461] 0x773d0000 comctl32
[ 10461] 0x5d090000 comctl32
[ 10461] 0x5ad70000 uxtheme
[ 10461] 0x74720000 MSCTF
[ 10461] 0x755c0000 msctfime
[ 10461] 0x774e0000 ole32
[ 10461] 0x026f0000 ATKOGL32
[ 10461] 0x69500000 nvoglnt
[ 10461] 0x04600000 atkosdx32
[ 10461] 0x77920000 SETUPAPI
[ 10461] 0x72280000 DINPUT
[ 10461] 0x688f0000 HID
[ 10461] 0x76c30000 WINTRUST
[ 10461] 0x77a80000 CRYPT32
[ 10461] 0x77b20000 MSASN1
[ 10461] 0x71a50000 mswsock
[ 10461] 0x662b0000 hnetcfg
[ 10461] 0x71a90000 wshtcpip
[ 10461] 0x72d20000 wdmaud
[ 10461] 0x72d10000 msacm32
[ 10461] 0x77be0000 MSACM32
[ 10461] 0x77bd0000 midimap
[ 10461] 0x73f10000 dsound
[ 10461] 0x77c00000 VERSION
[ 10461] 0x76fd0000 CLBCATQ
[ 10461] 0x77120000 OLEAUT32
[ 10461] 0x77050000 COMRes
[ 10461] 0x73ee0000 KsUser
[ 10461] 0x05cb0000 wrap_oal
[ 10461] 0x605d0000 mslbui
[ 10461] 0x59a60000 DBGHELP
[ 10461] Stacktrace:
[ 10461] (0) C:\Program Files\Spring 80.5\spring.exe [0x008A7748]
[ 10461] (1) C:\Program Files\Spring 80.5\spring.exe [0x008A896A]
[ 10461] (2) C:\Program Files\Spring 80.5\spring.exe [0x008AC780]
[ 10461] (3) C:\Program Files\Spring 80.5\spring.exe [0x0089AB61]
[ 10461] (4) C:\Program Files\Spring 80.5\spring.exe [0x008ABF7B]
[ 10461] (5) C:\Program Files\Spring 80.5\spring.exe [0x008ABFD9]
[ 10461] (6) C:\Program Files\Spring 80.5\spring.exe [0x0089A9AA]
[ 10461] (7) C:\Program Files\Spring 80.5\spring.exe [0x0053E34F]
[ 10461] (8) C:\Program Files\Spring 80.5\spring.exe [0x0053E48D]
[ 10461] (9) C:\Program Files\Spring 80.5\spring.exe [0x0053E51E]
[ 10461] (10) C:\Program Files\Spring 80.5\spring.exe [0x00549462]
[ 10461] (11) C:\Program Files\Spring 80.5\spring.exe [0x007AB565]
[ 10461] (12) C:\Program Files\Spring 80.5\spring.exe [0x004B80A3]
[ 10461] (13) C:\Program Files\Spring 80.5\spring.exe [0x007FF758]
[ 10461] (14) C:\Program Files\Spring 80.5\spring.exe [0x00991CC8]
[ 10461] (15) C:\Program Files\Spring 80.5\spring.exe [0x00970A85]
[ 10461] (16) C:\Program Files\Spring 80.5\spring.exe [0x007F98B0]
[ 10461] (17) C:\Program Files\Spring 80.5\spring.exe [0x007EF16B]
[ 10461] (18) C:\Program Files\Spring 80.5\spring.exe [0x007EF611]
[ 10461] (19) C:\Program Files\Spring 80.5\spring.exe [0x00887BE8]
[ 10461] (20) C:\Program Files\Spring 80.5\spring.exe [0x0040124B]
[ 10461] (21) C:\Program Files\Spring 80.5\spring.exe [0x004012B8]
[ 10461] (22) C:\WINDOWS\system32\kernel32.dll(RegisterWaitForInputIdle+0x49) [0x7C816FE7]

~0004369

Google_Frog (reporter)

Happened in SWIW by the way. I have had the bug in every game I have played often and recently except CA r5763 (stable).

~0004372

zerver (reporter)

It appears it is one of your widgets that hangs:

http://buildbot.eat-peet.net/spring/stacktrace/0.80.5.2-spring_stktrc_0.80.5.2-0-g67e2f5b_1259155474.html

~0004374

Google_Frog (reporter)

Any more specific?

~0004375

zerver (reporter)

No, only that it is a widget than handles the "MouseRelease" event.

If that does not give you a clue, I suggest doing a binary search for the guilty widget. If you have some custom rare widgets installed try to disable those first.

~0004392

Google_Frog (reporter)

Narrowed the crash down to 3 widgets. I think they are all widely used and I've had them for a while so something in the engine may have changed.

~0004401

tvo (reporter)

which widgets?

~0004413

Google_Frog (reporter)

Currently it looks like customformations2 causes it.

~0004422

Google_Frog (reporter)

Another similar crash in s44.

[ 35075] Hang detection triggered for Spring 0.80.5.2 (0.80.5.2-5-gcb5d5b5{0.80.5-branch}-cmake-mingw32).
[ 35075] DLL information:
[ 35075] 0x00400000 spring
[ 35075] 0x7c900000 ntdll
[ 35075] 0x7c800000 kernel32
[ 35075] 0x10000000 DevIL
[ 35075] 0x77c10000 MSVCRT
[ 35075] 0x003e0000 ILU
[ 35075] 0x77dd0000 ADVAPI32
[ 35075] 0x77e70000 RPCRT4
[ 35075] 0x77fe0000 Secur32
[ 35075] 0x68b20000 GLU32
[ 35075] 0x5ed00000 OPENGL32
[ 35075] 0x77f10000 GDI32
[ 35075] 0x77d40000 USER32
[ 35075] 0x73760000 DDRAW
[ 35075] 0x73bc0000 DCIMAN32
[ 35075] 0x76c90000 IMAGEHLP
[ 35075] 0x6fbc0000 mingwm10
[ 35075] 0x7c9c0000 SHELL32
[ 35075] 0x77f60000 SHLWAPI
[ 35075] 0x71ab0000 WS2_32
[ 35075] 0x71aa0000 WS2HELP
[ 35075] 0x6e940000 libgcc_s_dw2-1
[ 35075] 0x00fe0000 SDL
[ 35075] 0x76b40000 WINMM
[ 35075] 0x7c340000 MSVCR71
[ 35075] 0x66fc0000 freetype6
[ 35075] 0x61b80000 zlib1
[ 35075] 0x6ed80000 glew32
[ 35075] 0x6b180000 vorbisfile
[ 35075] 0x63e00000 vorbis
[ 35075] 0x01030000 ogg
[ 35075] 0x01050000 OpenAL32
[ 35075] 0x76390000 IMM32
[ 35075] 0x773d0000 comctl32
[ 35075] 0x5d090000 comctl32
[ 35075] 0x5ad70000 uxtheme
[ 35075] 0x74720000 MSCTF
[ 35075] 0x755c0000 msctfime
[ 35075] 0x774e0000 ole32
[ 35075] 0x026f0000 ATKOGL32
[ 35075] 0x69500000 nvoglnt
[ 35075] 0x605d0000 mslbui
[ 35075] 0x04eb0000 atkosdx32
[ 35075] 0x77920000 SETUPAPI
[ 35075] 0x72280000 DINPUT
[ 35075] 0x688f0000 HID
[ 35075] 0x76c30000 WINTRUST
[ 35075] 0x77a80000 CRYPT32
[ 35075] 0x77b20000 MSASN1
[ 35075] 0x71a50000 mswsock
[ 35075] 0x662b0000 hnetcfg
[ 35075] 0x71a90000 wshtcpip
[ 35075] 0x72d20000 wdmaud
[ 35075] 0x72d10000 msacm32
[ 35075] 0x77be0000 MSACM32
[ 35075] 0x77bd0000 midimap
[ 35075] 0x73f10000 dsound
[ 35075] 0x77c00000 VERSION
[ 35075] 0x76fd0000 CLBCATQ
[ 35075] 0x77120000 OLEAUT32
[ 35075] 0x77050000 COMRes
[ 35075] 0x73ee0000 KsUser
[ 35075] 0x065d0000 wrap_oal
[ 35075] 0x59a60000 DBGHELP
[ 35075] Stacktrace:
[ 35075] (0) C:\Program Files\Spring 80.5\spring.exe [0x008A78BB]
[ 35075] (1) C:\Program Files\Spring 80.5\spring.exe [0x008A88F9]
[ 35075] (2) C:\Program Files\Spring 80.5\spring.exe [0x008AC7C0]
[ 35075] (3) C:\Program Files\Spring 80.5\spring.exe [0x0089ABA1]
[ 35075] (4) C:\Program Files\Spring 80.5\spring.exe [0x008ABFBB]
[ 35075] (5) C:\Program Files\Spring 80.5\spring.exe [0x008AC019]
[ 35075] (6) C:\Program Files\Spring 80.5\spring.exe [0x0089A9EA]
[ 35075] (7) C:\Program Files\Spring 80.5\spring.exe [0x0053E364]
[ 35075] (8) C:\Program Files\Spring 80.5\spring.exe [0x0053E4CD]
[ 35075] (9) C:\Program Files\Spring 80.5\spring.exe [0x0053E55E]
[ 35075] (10) C:\Program Files\Spring 80.5\spring.exe [0x005494A2]
[ 35075] (11) C:\Program Files\Spring 80.5\spring.exe [0x007AB5A5]
[ 35075] (12) C:\Program Files\Spring 80.5\spring.exe [0x004B80A3]
[ 35075] (13) C:\Program Files\Spring 80.5\spring.exe [0x007FF798]
[ 35075] (14) C:\Program Files\Spring 80.5\spring.exe [0x00991D08]
[ 35075] (15) C:\Program Files\Spring 80.5\spring.exe [0x00970AC5]
[ 35075] (16) C:\Program Files\Spring 80.5\spring.exe [0x007F98F0]
[ 35075] (17) C:\Program Files\Spring 80.5\spring.exe [0x007EF1AB]
[ 35075] (18) C:\Program Files\Spring 80.5\spring.exe [0x007EF651]
[ 35075] (19) C:\Program Files\Spring 80.5\spring.exe [0x00887C28]
[ 35075] (20) C:\Program Files\Spring 80.5\spring.exe [0x0040124B]
[ 35075] (21) C:\Program Files\Spring 80.5\spring.exe [0x004012B8]
[ 35075] (22) C:\WINDOWS\system32\kernel32.dll(RegisterWaitForInputIdle+0x49) [0x7C816FE7]

~0004425

zerver (reporter)

Last edited: 2009-12-11 22:32

Basically the same thing

http://buildbot.eat-peet.net/spring/stacktrace/0.80.5-branch_spring_stktrc_0.80.5.2-5-gcb5d5b5_1260566986.html

There are only two while loops in customformations and the the first one possibly looks a bit suspect, or at least it is not 100% clear to me when the loop will end. On the other hand a crash seems more likely than hang if this loop did not end.

Edit: Oops, the trace was for the wrong rev, but yes it is basically the same thing.

~0004428

Google_Frog (reporter)

I've added echos to all the suspect loops and I am waiting for it to freeze again.

~0004435

zerver (reporter)

If you read here this hang bug is known and fixed already:

http://springrts.com/phpbb/viewtopic.php?f=23&t=18523&start=80
+Notes

-Issue History
Date Modified Username Field Change
2009-11-05 07:23 Google_Frog New Issue
2009-11-13 15:05 zerver Note Added: 0004323
2009-11-13 15:07 zerver Note Edited: 0004323
2009-11-22 15:01 Google_Frog Note Added: 0004364
2009-11-24 06:08 Google_Frog Note Added: 0004368
2009-11-24 06:10 Google_Frog Note Added: 0004369
2009-11-25 14:27 zerver Note Added: 0004372
2009-11-26 01:09 Google_Frog Note Added: 0004374
2009-11-26 11:59 zerver Note Added: 0004375
2009-11-30 01:39 Google_Frog Note Added: 0004392
2009-12-01 19:59 tvo Note Added: 0004401
2009-12-08 02:45 Google_Frog Note Added: 0004413
2009-12-08 02:45 Google_Frog File Added: unit_customformations2.lua
2009-12-10 07:23 Google_Frog Note Added: 0004422
2009-12-10 23:00 zerver Note Added: 0004425
2009-12-11 22:32 zerver Note Edited: 0004425
2009-12-12 01:47 Google_Frog Note Added: 0004428
2009-12-16 16:59 zerver Note Added: 0004435
2009-12-16 16:59 zerver Status new => resolved
2009-12-16 16:59 zerver Fixed in Version => 0.81.0.0
2009-12-16 16:59 zerver Resolution open => fixed
2009-12-16 16:59 zerver Assigned To => zerver
+Issue History