Spring almost-always crashes

Spring almost-always crashes

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

moriarty
Posts: 30
Joined: 17 Jul 2009, 18:27

Spring almost-always crashes

Post by moriarty »

Specifications:
Athlon 4200 XP dual core. 2gb ram. Nvidia 6800. NO internet connection (downloading elsewhere and transfering via USB).
Windows XP SP3 (32bit).

Per the title really, Spring pretty much always crashes for me after a short while in the game or immediately. I've tried different mods, different AIs and different maps. Same result. These are all single-player.

Mods tried (all the "latest" as of two days ago when I downloaded them):
XTA, BOTA, NOTA, maximum-anni, balanced annihilation.
Of those
- Balananced Annihilation crashes 100% of the time when the "game about to start" count down reaches 0. So probably a mod bug.
- BOTA is missing a file (another mod bug robocall.wav I believe), so crashes out (as it's a sound file, can't it just not play it?)
- Maximum annilation is missing a package with some files. Another mod bug.

However, XTA, and NOTA both work for a little while (from a few seconds to a few minutes), and then randomly crash. As noted, I've tried with various AI's that came with spring (RAI, KAIK, AAI), and various maps too. I've not set any mod preferences etc - they're all at default.

Attached is a zip containing the crash logs. (suggestion - have crash logs get named different things (time/date in ISO format? i.e. 20090717_182818_crash.txt) - writing over the old one isn't good when there are so many - hence my file-naming getting colourful the more crashes there were ;-) ).

There are no graphical glitches that I can see and the game runs just fine up until the moment it dies. It all looks nice and pretty etc.
Of the 20+ games I have tried to start, only one lasted for the 15 mins or so it took to kill the one AI (and then the game didn't present a "game-over" screen :-S ).

Anyone have any suggestions on what to do?
Attachments
Spring.zip
File with lots of crash logs in.
(28.62 KiB) Downloaded 40 times
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Spring almost-always crashes

Post by xyz »

That is a bug in the engine
http://springrts.com/mantis/view.php?id=1435

Try playing it with less then 4 AI's (it does not matter what AI's, just less then 4)

Oh and welcome to TASpring.
moriarty
Posts: 30
Joined: 17 Jul 2009, 18:27

Re: Spring almost-always crashes

Post by moriarty »

I did try 3 AI games, though looking at the logs, I'm guessing they crashed for other reasons (like a broken mod).
Ok, thanks.

Edit: Thinking about it - I can recall at least one game (my first) where there were three AI's (lava highground, I don't put AI's in the middle because that would be silly), yet the game still crashed out. One of each AI as I recall (AAI which didn't initialise because of no config, KAIK and RAIK). So..... :-S

And thanks for the welcome.
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Spring almost-always crashes

Post by xyz »

Well I've looked throw your infolog's and all of them except the one with the missing file crashed with the same problem:
skirmishAiCallback_Unit_CurrentCommand

I have the same problem but only if I have a game with more then 4 players (me + 3 AI's is fine)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring almost-always crashes

Post by hoijui »

i think i fixed it (is in latest master now).
it was a "using address of temporary" like thing (no compiler warning though).
i would be glad if someone could test it (my machine freezes X when testing usually). if will consider it solved if there are no complaints about this anymore, some weeks after the next release.
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Spring almost-always crashes

Post by xyz »

I would try to test it, unfortunately the latest build from the build server (spring_0.79.0-556-ged3c6a7) is freezing at startup, and I'm still unable to make my build system work, I keep getting a lot of errors about boost.
At first the boost include path was wrong, and now I'm getting this:

error C2079: 'creg::Class::Member::type' uses undefined class 'boost::shared_ptr<<unnamed-symbol>>'

I'm using VS2005.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring almost-always crashes

Post by hoijui »

i cant help you wiht visual studio (i suggest using mingw instead).

i just found an error in the build-script and fixed it 5 mins ago. latest buildbot build is 3 days old, i am rebuilding now.. should be finnished in 10 minutes or so, stay tuned ;-).
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Spring almost-always crashes

Post by xyz »

I've downloaded the last build (spring_0.79.0-592-gb3832e9) but for me is still only a black screen with a difference that now I have the mouse cursor also.

Code: Select all

LogOutput initialized.
Spring 0.79+.0.0 (0.79.0-592-gb3832e9-cmake-mingw32)
Available log subsystems: mapinfo, CollisionVolume, unit, VFS-detail, VFS, ArchiveScanner, Sound
Enabled log subsystems: Sound
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
[CMyMath::Init] CPU SSE mask: 120, flags:
	SSE 1.0:  1,  SSE 2.0:  1
	SSE 3.0:  1, SSSE 3.0:  0
	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
using configuration source "E:\games\TA Spring\test\testbuild\/springsettings.cfg"
OS: Microsoft Windows
OS: 32bit native mode
Using read-write data directory: E:\games\TA Spring\test\testbuild\
Using read-only  data directory: C:\Documents and Settings\xyz32\My Documents\My Games\Spring\
Using read-only  data directory: C:\Documents and Settings\xyz32\My Documents\Spring\
Using read-only  data directory: C:\Documents and Settings\All Users\Application Data\Spring\
Scanning: C:\Documents and Settings\All Users\Application Data\Spring\maps
Scanning: C:\Documents and Settings\All Users\Application Data\Spring\base
Scanning: C:\Documents and Settings\All Users\Application Data\Spring\mods
Scanning: C:\Documents and Settings\All Users\Application Data\Spring\packages
Scanning: C:\Documents and Settings\xyz32\My Documents\Spring\maps
Scanning: C:\Documents and Settings\xyz32\My Documents\Spring\base
Scanning: C:\Documents and Settings\xyz32\My Documents\Spring\mods
Scanning: C:\Documents and Settings\xyz32\My Documents\Spring\packages
Scanning: C:\Documents and Settings\xyz32\My Documents\My Games\Spring\maps
Scanning: C:\Documents and Settings\xyz32\My Documents\My Games\Spring\base
Scanning: C:\Documents and Settings\xyz32\My Documents\My Games\Spring\mods
Scanning: C:\Documents and Settings\xyz32\My Documents\My Games\Spring\packages
Scanning: E:\games\TA Spring\test\testbuild\maps
Scanning: E:\games\TA Spring\test\testbuild\base
Scanning: E:\games\TA Spring\test\testbuild\mods
Scanning: E:\games\TA Spring\test\testbuild\packages
Video mode set to  1680 x 1050 / 32 bit
[      0] SDL:  1.2.10
[      0] GL:   3.0.0
[      0] GL:   NVIDIA Corporation
[      0] GL:   GeForce 9800 GT/PCI/SSE2/3DNOW!
[      0] GLEW: 1.4.0
[      0] Connecting to local server
[      0] Sound: OpenAL info:
[      0] Sound:   Vendor:     Creative Labs Inc.
[      0] Sound:   Version:    1.1
[      0] Sound:   Renderer:   Software
[      0] Sound:   AL Extensions: EAX EAX2.0 EAX3.0 EAX4.0 EAX5.0 EAX3.0EMULATED EAX4.0EMULATED AL_EXT_OFFSET AL_EXT_LINEAR_DISTANCE AL_EXT_EXPONENT_DISTANCE
[      0] Sound:   ALC Extensions: ALC_ENUMERATE_ALL_EXT ALC_ENUMERATION_EXT ALC_EXT_CAPTURE ALC_EXT_EFX
[      0] Sound:   Device:     Generic Hardware
[      0] Sound:   Available Devices:  
[      0] Sound:                       Generic Hardware
[      0] Sound:                       Generic Software
[      0] Sound: SoundSource::SoundSource: Invalid Value
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring almost-always crashes

Post by hoijui »

I have the same issue (black screen) when using TASClients 3D map preview before starting the game. if you did that, please restart the lobby and do not open the 3D view in the lobby.
If this is not the problem, please try makign a screenshot (F12) when ingame, and see if it is black too, or as it should look like.

It does not seem to be a sound or AI problem.
To make sure sound is not the problem, try setting MaxSounds=0 in your settings.

(includes tips from Auswaschbar and BrainDamage)
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Spring almost-always crashes

Post by xyz »

hoijui wrote:I have the same issue (black screen) when using TASClients 3D map preview before starting the game. if you did that, please restart the lobby and do not open the 3D view in the lobby.
If this is not the problem, please try makign a screenshot (F12) when ingame, and see if it is black too, or as it should look like.
I do not use TASClient, I am using SpringLobby, as for F12 nothing happens when i press it.
hoijui wrote:It does not seem to be a sound or AI problem.
To make sure sound is not the problem, try setting MaxSounds=0 in your settings.
This solves the problem, but now Spring will frees if I press ALT+TAB :)
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Spring almost-always crashes

Post by xyz »

Thanks for the quick replay.
hoijui wrote:I have the same issue (black screen) when using TASClients 3D map preview before starting the game. if you did that, please restart the lobby and do not open the 3D view in the lobby.
If this is not the problem, please try makign a screenshot (F12) when ingame, and see if it is black too, or as it should look like.
I do not use TASClient, I am using SpringLobby, as for F12 nothing happens when i press it.
hoijui wrote:It does not seem to be a sound or AI problem.
To make sure sound is not the problem, try setting MaxSounds=0 in your settings.
This solves the problem, but now Spring will frees if I press ALT+TAB :)
moriarty
Posts: 30
Joined: 17 Jul 2009, 18:27

Re: Spring almost-always crashes

Post by moriarty »

xyz wrote:Well I've looked throw your infolog's and all of them except the one with the missing file crashed with the same problem:
skirmishAiCallback_Unit_CurrentCommand

I have the same problem but only if I have a game with more then 4 players (me + 3 AI's is fine)
I know they dont - that was going off the top of my head. On the up-side, none of my three-AI games have been crashing since. Well not in un-mod related ways anyway. :-S
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Spring almost-always crashes

Post by xyz »

Bad news, the crash is still there, and it seams that it happens more often with teams made up of separate sides (1 team 4 players ARM, the other 4 players CORE).
The latest build also gives a lot of lua warnings/errors in function UnitFinished. See the attachement.

BTW is there an IRC channel where you could just ask me to test something and I could give you the results immediately? Or do you prefer the forum?
Attachments
infolog.txt
(21.3 KiB) Downloaded 142 times
moriarty
Posts: 30
Joined: 17 Jul 2009, 18:27

Re: Spring almost-always crashes

Post by moriarty »

Possibly relatedly, but I've discovered that the AAI packed with the spring also always causes crashes if it is inialised. I say possibly related, because the error looks to be the same:
[ 92] (7) G:\Spring\spring.exe(skirmishAiCallback_Unit_CurrentCommand_0ARRAY1VALS0getParams+0x13786) [0x0094CAB6]
Attachments
aai is crashing the games.log
(15.1 KiB) Downloaded 131 times
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring almost-always crashes

Post by hoijui »

the third time we think we fixed this bug...
hope now its for real :D
please test latest spring master!

corresponding mantis bug:
http://springrts.com/mantis/view.php?id=1396
moriarty
Posts: 30
Joined: 17 Jul 2009, 18:27

Re: Spring almost-always crashes

Post by moriarty »

Don't suppose there's a windows binary of it lying around? I'm happy to test, but I'm unable to compile.
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Spring almost-always crashes

Post by xyz »

It is still crashing but now the infolog looks different. See attachment.
Attachments
infolog.txt
(29.65 KiB) Downloaded 145 times
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring almost-always crashes

Post by hoijui »

woo huuh!!! :D
cool! finally, AI stack trace translation works again on the buildbot! :D
guess it was the cmake fix i did some weeks ago...
also, it now seems to crash in RAI, not in the engine anymore. so.. i may really have fixed the error now, and we just found an other one.

translated stack trace:
http://planetspring.free.fr/spring/stac ... 37435.html
xyz
Posts: 152
Joined: 29 Nov 2008, 16:06

Re: Spring almost-always crashes

Post by xyz »

Indeed it was RAI that was crashing, therefore I do confirm the bug being closed, thanks for the hard work.

Just as a note, the latest build now crashes when i press ALT+TAB, but I'm guessing this is jk trying to fix that alt+tab bug on NVidia cards.
Attachments
infolog.txt
(23.22 KiB) Downloaded 112 times
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: Spring almost-always crashes

Post by hoijui »

omg.. youre one of those always-trouble-makers, right?
never free of problems...
;-)

cool!
i was not able to find/fix the bug in RAI btw, i will forward it to reth.
Post Reply

Return to “Help & Bugs”