AAI crashing Spring on game start
Moderator: Moderators
- CliffracerX
- Posts: 14
- Joined: 09 Aug 2014, 04:37
AAI crashing Spring on game start
I've been fiddling with the various AIs in Spring to see how they do with my slightly modded version of the tutorial game (as that has a good amount of units and stuff, covering all types), and wanted to test AAI.
RAI is good and all, but it seems to fail now and then (for instance, not buying anything but builders on one game I was making) and in my modded version of the tutorial game only ever built factories, no resource-storage-boosters or anything.
I came to AAI, set up a basic config from the example, and tried launching my client, and got ingame, at which point my client simply crashed and gave me an "access violation" error. Did I do something stupid in my mod config, or is this a bug in AAI?
RAI is good and all, but it seems to fail now and then (for instance, not buying anything but builders on one game I was making) and in my modded version of the tutorial game only ever built factories, no resource-storage-boosters or anything.
I came to AAI, set up a basic config from the example, and tried launching my client, and got ingame, at which point my client simply crashed and gave me an "access violation" error. Did I do something stupid in my mod config, or is this a bug in AAI?
- Attachments
-
- CRTS.cfg
- (533 Bytes) Downloaded 8 times
-
- infolog.txt
- (20.24 KiB) Downloaded 10 times
Re: AAI crashing Spring on game start
Any logfile about the problem in C:\Games\Spring\AI\Skirmish\AAI\0.9\log\ ?
- CliffracerX
- Posts: 14
- Joined: 09 Aug 2014, 04:37
Re: AAI crashing Spring on game start
abma wrote:Any logfile about the problem in C:\Games\Spring\AI\Skirmish\AAI\0.9\log\ ?
Code: Select all
AAI 0.9 running mod CRTS 0.01
Mod config file AI\Skirmish\AAI\0.9\cfg\mod\CRTS_0.01.cfg not found
Now trying with legacy mod config file name ...
Using mod config file C:\Users\Cliffie\Documents\My Games\Spring\AI\Skirmish\AAI\0.9\cfg\mod\CRTS.cfg
Mod config file loaded
General config file loaded

Re: AAI crashing Spring on game start
does it work with spring 96.0? 95.0 is old and outdated...
- CliffracerX
- Posts: 14
- Joined: 09 Aug 2014, 04:37
Re: AAI crashing Spring on game start
Nope, still busted in spring 96.0.abma wrote:does it work with spring 96.0? 95.0 is old and outdated...
EDIT: Added infolog, maybe it'll be useful?
- Attachments
-
- infolog.txt
- (21.46 KiB) Downloaded 4 times
Re: AAI crashing Spring on game start
translated the AAI part of the first crash:
doesn't look useful to me, maybe its memory corruption. which game are you trying to test? where to download it?/home/buildbot/slave/full-windows-test/build/build/default/../../AI/Skirmish/AAI/AAIMap.cpp:821
0x6A5D0A5C
/home/buildbot/slave/full-windows-test/build/build/default/../../AI/Skirmish/AAI/AAIMap.cpp:334
0x6A5D5611
/home/buildbot/slave/full-windows-test/build/build/default/../../AI/Skirmish/AAI/AAIMap.cpp:168
0x00009B76
??:0
0x6A5F8E7B
/home/buildbot/slave/full-windows-test/build/build/default/../../AI/Wrappers/LegacyCpp/AIAI.cpp:173
0x6A5CAD9C
/home/buildbot/slave/full-windows-test/build/build/default/../../AI/Skirmish/AAI/AIExport.cpp:99
Re: AAI crashing Spring on game start
ooops:
delete C:\Users\Cliffie\Documents\My Games\Spring\AI\ and it should work
very likely this causes the crash![f=0000000] Warning: Duplicate AI Interface Info found:
[f=0000000] Warning: for interface: C 0.1
[f=0000000] Warning: in files:
[f=0000000] Warning: C:\Games\Spring\AI\Interfaces\C\0.1\InterfaceInfo.lua
[f=0000000] Warning: C:\Users\Cliffie\Documents\My Games\Spring\AI\Interfaces\C\0.1\InterfaceInfo.lua
[f=0000000] Warning: using: C:\Users\Cliffie\Documents\My Games\Spring\AI\Interfaces\C\0.1\InterfaceInfo.lua
[f=0000000] Warning: Duplicate AI Interface Info found:
[f=0000000] Warning: for interface: Java 0.1
[f=0000000] Warning: in files:
[f=0000000] Warning: C:\Games\Spring\AI\Interfaces\Java\0.1\InterfaceInfo.lua
[f=0000000] Warning: C:\Users\Cliffie\Documents\My Games\Spring\AI\Interfaces\Java\0.1\InterfaceInfo.lua
[f=0000000] Warning: using: C:\Users\Cliffie\Documents\My Games\Spring\AI\Interfaces\Java\0.1\InterfaceInfo.lua
delete C:\Users\Cliffie\Documents\My Games\Spring\AI\ and it should work
- CliffracerX
- Posts: 14
- Joined: 09 Aug 2014, 04:37
Re: AAI crashing Spring on game start
Tried deleting the AI folder, it still crashed. Infolog attached. 
EDIT: Also, the game in use is a slightly modded version of the Spring Tutorial Game.
EDIT 2: Also tried with the original Spring Tutorial Game, it's still crashing. ._.

EDIT: Also, the game in use is a slightly modded version of the Spring Tutorial Game.
EDIT 2: Also tried with the original Spring Tutorial Game, it's still crashing. ._.
- Attachments
-
- infolog.txt
- (20.51 KiB) Downloaded 8 times
Re: AAI crashing Spring on game start
translated:
still doesn't look useful. can you provide the game you use? else we are stuck here i guess...0x6A5CD41D
/home/buildbot/slave/full-windows-test/build/build/default/../../AI/Skirmish/AAI/AAIMap.cpp:821
0x6A5D0A5C
/home/buildbot/slave/full-windows-test/build/build/default/../../AI/Skirmish/AAI/AAIMap.cpp:334
0x6A5D5611
/home/buildbot/slave/full-windows-test/build/build/default/../../AI/Skirmish/AAI/AAIMap.cpp:168
0x00009B76
??:0
0x6A5F8E7B
/home/buildbot/slave/full-windows-test/build/build/default/../../AI/Wrappers/LegacyCpp/AIAI.cpp:173
0x6A5CAD9C
/home/buildbot/slave/full-windows-test/build/build/default/../../AI/Skirmish/AAI/AIExport.cpp:99
C:\\Program Files (x86)\\Spring\\spring.exe 0x009088AA SkirmishAILibrary.cpp:0
C:\\Program Files (x86)\\Spring\\spring.exe 0x0090563A rts/ExternalAI/SkirmishAI.cpp:57
C:\\Program Files (x86)\\Spring\\spring.exe 0x0090EF5D rts/ExternalAI/SkirmishAIWrapper.cpp:200
C:\\Program Files (x86)\\Spring\\spring.exe 0x008EB131 rts/ExternalAI/EngineOutHandler.cpp:595
C:\\Program Files (x86)\\Spring\\spring.exe 0x00906AF2 rts/ExternalAI/SkirmishAIHandler.cpp:179
C:\\Program Files (x86)\\Spring\\spring.exe 0x00425F38 /opt/mxe/usr/lib/gcc/i686-w64-mingw32/4.8.1/include/c++/bits/stl_iterator.h:748
C:\\Program Files (x86)\\Spring\\spring.exe 0x00510BD1 rts/Net/NetCommands.cpp:289
C:\\Program Files (x86)\\Spring\\spring.exe 0x0042F3F9 rts/Game/Game.cpp:983
C:\\Program Files (x86)\\Spring\\spring.exe 0x00887CA4 /slave/mingwlibs/include/boost/optional/optional.hpp:438
C:\\Program Files (x86)\\Spring\\spring.exe 0x008968A4 rts/System/SpringApp.cpp:1034
C:\\Program Files (x86)\\Spring\\spring.exe 0x00872956 rts/System/Main.cpp:65
C:\\Program Files (x86)\\Spring\\spring.exe 0x0087376C rts/System/Main.cpp:125
C:\\Program Files (x86)\\Spring\\spring.exe 0x0087398D rts/System/Main.cpp:134
C:\\Program Files (x86)\\Spring\\spring.exe 0x00401402 crtexe.c:0
C:\\Windows\\syswow64\\kernel32.dll 0x765D338A ??:0
C:\\Windows\\SysWOW64\\ntdll.dll 0x77E79F72 ??:0
C:\\Windows\\SysWOW64\\ntdll.dll 0x77E79F45 ??:0
Re: AAI crashing Spring on game start
you should try to fix these errors first:
[f=0000000] Error: Couldn't find WeaponDef NOWEAPON and explodeAs
- CliffracerX
- Posts: 14
- Joined: 09 Aug 2014, 04:37
Re: AAI crashing Spring on game start
I'm using http://springrts.com/wiki/SpringTutorialGame for testing.abma wrote:still doesn't look useful. can you provide the game you use? else we are stuck here i guess...
EDIT: Also fixed the explodeAs error, but the game is still crashing.

Last edited by CliffracerX on 11 Aug 2014, 17:01, edited 1 time in total.
Re: AAI crashing Spring on game start
thats not the game you use, you've modified it! 
can't help without the game you use. if you don't want to publish it, pm me and send a "private" link to it.

can't help without the game you use. if you don't want to publish it, pm me and send a "private" link to it.
- CliffracerX
- Posts: 14
- Joined: 09 Aug 2014, 04:37
Re: AAI crashing Spring on game start
I tried it with both, it crashed with both, but I'll send you the modded version in a PM or something.abma wrote:thats not the game you use, you've modified it!
can't help without the game you use. if you don't want to publish it, pm me and send a "private" link to it.
EDIT: PM sent.
Re: AAI crashing Spring on game start
IIRC AAI requires a config right?
- CliffracerX
- Posts: 14
- Joined: 09 Aug 2014, 04:37
Re: AAI crashing Spring on game start
Yeah, but it dies gracefully ingame if the mod lacks a config. WITH the config for the mod, it just kills my client.smoth wrote:IIRC AAI requires a config right?

Re: AAI crashing Spring on game start
@CliffracerX:
can you please test if the current development version works for you? 96.0 crashes for me, too, but current development version doesn't...
for example this one:
http://springrts.com/dl/buildbot/defaul ... ortable.7z
can you please test if the current development version works for you? 96.0 crashes for me, too, but current development version doesn't...
for example this one:
http://springrts.com/dl/buildbot/defaul ... ortable.7z
- CliffracerX
- Posts: 14
- Joined: 09 Aug 2014, 04:37
Re: AAI crashing Spring on game start
Well, for me anyway, I can't even launch Spring now, it gets to the loading bar and then closes and gives me an error log.abma wrote:@CliffracerX:
can you please test if the current development version works for you? 96.0 crashes for me, too, but current development version doesn't...
for example this one:
http://springrts.com/dl/buildbot/defaul ... ortable.7z
- Attachments
-
- infolog.txt
- (52.98 KiB) Downloaded 5 times
Re: AAI crashing Spring on game start
ugh, you hit a newly introduced bug: http://springrts.com/mantis/view.php?id=4501 thanks for reporting!
please test with http://springrts.com/dl/buildbot/defaul ... ortable.7z
sorry!
please test with http://springrts.com/dl/buildbot/defaul ... ortable.7z
sorry!
- CliffracerX
- Posts: 14
- Joined: 09 Aug 2014, 04:37
Re: AAI crashing Spring on game start
Well, I was able to get into the map without it crashing (yay), but the map looks really glitched (see attached screenshot) and it crashed upon the countdown hitting 0 again.abma wrote:ugh, you hit a newly introduced bug: http://springrts.com/mantis/view.php?id=4501 thanks for reporting!
please test with http://springrts.com/dl/buildbot/defaul ... ortable.7z
sorry!

EDIT: AAI worked with XTA, without crashing my client?!

I think my config file might be screwed up, let me go take a look...

- Attachments
-
- screen00000.png
- (2.15 MiB) Downloaded 4 times
-
- infolog.txt
- (20.78 KiB) Downloaded 14 times
Re: AAI crashing Spring on game start
very likely this will fix the crash: https://github.com/spring/spring/commit ... cdf948283e
it seems AAI couldn't handle games where no metal extractor exists!
AAI bundled with spring >=97.0.1-234-gf1d12a0 develop should work!
it seems AAI couldn't handle games where no metal extractor exists!
AAI bundled with spring >=97.0.1-234-gf1d12a0 develop should work!