Page 1 of 1

Persistent crash on entering game

Posted: 04 Nov 2007, 02:05
by Warre
Hello folks, I'm new to this forum...

I managed to play Spring just once after installing it, using SpringSP. The second time I tried to start the game, it crashed (see infolog below). This happens after the load screen, and after a countdown from 3. It crashes every time I start it up.

I tried reinstalling Spring, and the same thing happened: I managed to play once; Spring keeps crashing from the second time I start it.

My computer:
CPU - Pentium 3 667 MHz
RAM - 384 MB (128+256)
Graphics - NVidia GeForce4 Ti 4200
OS - Windows XP pro

Thanks in advance for any help.

Code: Select all

Using script Commanders
Map: Islands_In_War_1.0.smf
Mod: "XTA v9" from XTAPE.sdz
Created server on port 8452
Created local client with number 0
Listening to local client on connection 0
You are missing an OpenGL extension needed to use shadowmaps (fragment_program_shadow)
Content error:
Opening map file
Loading Map
Loading detail textures
Creating overhead texture
Creating ground shading
Loading tile file
Reading tiles
Reading tile map
Creating projectile texture
Number of damage types: 9
Loading units and weapons
Warning to many unit categories 33 missed all
Warning to many unit categories 33 missed all
Initializing map features
Parsing unit icons
Creating unit textures
Unknown feature type 
Reading estimate path costs
Spring 0.75b2
Player Player joined as 0
AI\Bot-libs\AAI.dll has C++ interface
GlobalAI1: water map detected
GlobalAI1: AAI loaded
Spring 0.75b2 has crashed.
Exception: Access violation (0xc0000005)
Exception Address: 0x0058a4a9
DLL information:
0x00400000	spring
0x7c900000	ntdll
0x7c800000	kernel32
0x77f40000	ADVAPI32
0x77da0000	RPCRT4
0x77f10000	Secur32
0x73e80000	dsound
0x77be0000	msvcrt
0x7e390000	USER32
0x77e40000	GDI32
0x774a0000	ole32
0x76af0000	WINMM
0x77bd0000	VERSION
0x5f400000	GLU32
0x5f160000	OPENGL32
0x736d0000	DDRAW
0x73b30000	DCIMAN32
0x76c50000	IMAGEHLP
0x71a50000	WSOCK32
0x71a30000	WS2_32
0x71a20000	WS2HELP
0x10000000	SDL
0x7c340000	MSVCR71
0x00d00000	DevIL
0x66fc0000	freetype6
0x61b80000	zlib1
0x003d0000	glew32
0x00e90000	ILU
0x5b190000	uxtheme
0x09640000	LgWndHk
0x746a0000	MSCTF
0x098a0000	ctagent
0x098d0000	LgMsgHk
0x76020000	MSVCP60
0x69500000	nvoglnt
0x719d0000	mswsock
0x61200000	hnetcfg
0x71a10000	wshtcpip
0x76bf0000	WINTRUST
0x77a40000	CRYPT32
0x77ae0000	MSASN1
0x72c90000	wdmaud
0x72c80000	msacm32
0x77bb0000	MSACM32
0x77ba0000	midimap
0x73e50000	KsUser
0x0b140000	AAI
0x59e70000	DBGHELP
Stacktrace:
(0) D:\Spring\spring.exe [0x0058A4A9]
(1) D:\Spring\spring.exe [0x006E764D]
(2) D:\Spring\spring.exe [0x006F21C3]
(3) D:\Spring\spring.exe [0x00618D99]
(4) D:\Spring\spring.exe [0x005BB71D]
(5) D:\Spring\spring.exe [0x005DB50C]
(6) D:\Spring\spring.exe [0x005DE5EE]
(7) D:\Spring\spring.exe [0x00819AA9]
(8) D:\Spring\spring.exe [0x00821C68]
(9) D:\Spring\spring.exe [0x00822038]
(10) D:\Spring\spring.exe [0x00822269]
(11) D:\Spring\spring.exe [0x0090F147]
(12) D:\Spring\spring.exe [0x00401292]
(13) D:\Spring\spring.exe [0x004012DD]
(14) C:\WINDOWS\system32\kernel32.dll(RegisterWaitForInputIdle+0x49) [0x7C816FD7]

Posted: 04 Nov 2007, 13:43
by AF
Start with the first error and work your way down.

The first error is:
You are missing an OpenGL extension needed to use shadowmaps (fragment_program_shadow)
Turn off shadows etc, then try again. You need at least a Geforce 5 class gpu for shadows to even work.

I would seriously consider an cheap upgrade, you could buy off the shelf components that're cheaper than DVDs and get double the performance. A Geforce 6 can sometimes be found around the £20 mark in the UK nowadays and if you walk a few metres away you can find brand new DVDs for £29.99 and new PC games at a similair price. ebay may even yield cheaper prices.

Posted: 04 Nov 2007, 13:50
by Kloot
This crash is indirectly caused by AAI:

http://spring.clan-sy.com/phpbb/viewtopic.php?t=12188
http://spring.clan-sy.com/phpbb/viewtopic.php?t=12297

(something about fscanf and type-safety ;))

Posted: 04 Nov 2007, 15:45
by Warre
AF wrote:Start with the first error and work your way down.

The first error is:
You are missing an OpenGL extension needed to use shadowmaps (fragment_program_shadow)
Turn off shadows etc, then try again. You need at least a Geforce 5 class gpu for shadows to even work.
I think it was high res clouds that did this; the settings dialog says it needs "fragment_program", so "_shadow" probably got truncated off.
AF wrote:I would seriously consider an cheap upgrade, you could buy off the shelf components that're cheaper than DVDs and get double the performance. A Geforce 6 can sometimes be found around the £20 mark in the UK nowadays and if you walk a few metres away you can find brand new DVDs for £29.99 and new PC games at a similair price. ebay may even yield cheaper prices.
I'm going to buy a new computer soon anyway; this one is over 7 years old. The graphics card was originally an NVidia TNT2, this one I got for free from a friend. Still, Spring runs acceptably on this computer, so it's not really urgent.
Kloot wrote:This crash is indirectly caused by AAI:
Indeed, changing the AI solves the problem. I also noticed that choosing a different map gives me one more game, after that it crashes again.

Thanks for your help!

Posted: 04 Nov 2007, 18:14
by Peet
AF wrote:The first error is:
You are missing an OpenGL extension needed to use shadowmaps (fragment_program_shadow)
Turn off shadows etc, then try again. You need at least a Geforce 5 class gpu for shadows to even work.
This error is actually pretty much irrelevant in almost every situation...unless spring crashes on startup with a gl error there's no effect ingame whatsoever except for the lack of that particular feature.

Posted: 04 Nov 2007, 19:32
by AF
Thank you for stating the obvious.

Posted: 04 Nov 2007, 19:34
by Peet
No problem :)

Posted: 08 Nov 2007, 23:41
by Warre
I've managed to work around the bug by deleting the map learning file in Spring\AI\AAI\learn. Not the most elegant solution, but it's worth the effort... AAI totally mops the floor with me!