Page 1 of 2

AAI crashing Spring on game start

Posted: 10 Aug 2014, 02:34
by CliffracerX
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?

Re: AAI crashing Spring on game start

Posted: 10 Aug 2014, 21:52
by abma
Any logfile about the problem in C:\Games\Spring\AI\Skirmish\AAI\0.9\log\ ?

Re: AAI crashing Spring on game start

Posted: 10 Aug 2014, 22:06
by CliffracerX
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
Not much help there. :?

Re: AAI crashing Spring on game start

Posted: 10 Aug 2014, 22:09
by abma
does it work with spring 96.0? 95.0 is old and outdated...

Re: AAI crashing Spring on game start

Posted: 10 Aug 2014, 22:20
by CliffracerX
abma wrote:does it work with spring 96.0? 95.0 is old and outdated...
Nope, still busted in spring 96.0.

EDIT: Added infolog, maybe it'll be useful?

Re: AAI crashing Spring on game start

Posted: 10 Aug 2014, 23:30
by abma
translated the AAI part of the first crash:
/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
doesn't look useful to me, maybe its memory corruption. which game are you trying to test? where to download it?

Re: AAI crashing Spring on game start

Posted: 10 Aug 2014, 23:36
by abma
ooops:
[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
very likely this causes the crash!

delete C:\Users\Cliffie\Documents\My Games\Spring\AI\ and it should work

Re: AAI crashing Spring on game start

Posted: 10 Aug 2014, 23:56
by CliffracerX
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. ._.

Re: AAI crashing Spring on game start

Posted: 11 Aug 2014, 03:55
by abma
translated:
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
still doesn't look useful. can you provide the game you use? else we are stuck here i guess...

Re: AAI crashing Spring on game start

Posted: 11 Aug 2014, 03:57
by abma
you should try to fix these errors first:
[f=0000000] Error: Couldn't find WeaponDef NOWEAPON and explodeAs

Re: AAI crashing Spring on game start

Posted: 11 Aug 2014, 16:28
by CliffracerX
abma wrote:still doesn't look useful. can you provide the game you use? else we are stuck here i guess...
I'm using http://springrts.com/wiki/SpringTutorialGame for testing.
EDIT: Also fixed the explodeAs error, but the game is still crashing. :?

Re: AAI crashing Spring on game start

Posted: 11 Aug 2014, 16:41
by abma
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.

Re: AAI crashing Spring on game start

Posted: 11 Aug 2014, 17:03
by CliffracerX
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.
I tried it with both, it crashed with both, but I'll send you the modded version in a PM or something.
EDIT: PM sent.

Re: AAI crashing Spring on game start

Posted: 11 Aug 2014, 19:00
by smoth
IIRC AAI requires a config right?

Re: AAI crashing Spring on game start

Posted: 11 Aug 2014, 20:30
by CliffracerX
smoth wrote:IIRC AAI requires a config right?
Yeah, but it dies gracefully ingame if the mod lacks a config. WITH the config for the mod, it just kills my client. :|

Re: AAI crashing Spring on game start

Posted: 11 Aug 2014, 22:40
by abma
@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

Re: AAI crashing Spring on game start

Posted: 12 Aug 2014, 00:07
by CliffracerX
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
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.

Re: AAI crashing Spring on game start

Posted: 12 Aug 2014, 01:57
by abma
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!

Re: AAI crashing Spring on game start

Posted: 12 Aug 2014, 03:01
by CliffracerX
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!
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. :evil:

EDIT: AAI worked with XTA, without crashing my client?! :shock:
I think my config file might be screwed up, let me go take a look... :|

Re: AAI crashing Spring on game start

Posted: 13 Aug 2014, 03:01
by abma
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!