AAI crashing Spring on game start

AAI crashing Spring on game start

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

User avatar
CliffracerX
Posts: 14
Joined: 09 Aug 2014, 04:37

AAI crashing Spring on game start

Post 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?
Attachments
CRTS.cfg
(533 Bytes) Downloaded 8 times
infolog.txt
(20.24 KiB) Downloaded 10 times
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AAI crashing Spring on game start

Post by abma »

Any logfile about the problem in C:\Games\Spring\AI\Skirmish\AAI\0.9\log\ ?
User avatar
CliffracerX
Posts: 14
Joined: 09 Aug 2014, 04:37

Re: AAI crashing Spring on game start

Post 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. :?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AAI crashing Spring on game start

Post by abma »

does it work with spring 96.0? 95.0 is old and outdated...
User avatar
CliffracerX
Posts: 14
Joined: 09 Aug 2014, 04:37

Re: AAI crashing Spring on game start

Post 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?
Attachments
infolog.txt
(21.46 KiB) Downloaded 4 times
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AAI crashing Spring on game start

Post 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?
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AAI crashing Spring on game start

Post 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
User avatar
CliffracerX
Posts: 14
Joined: 09 Aug 2014, 04:37

Re: AAI crashing Spring on game start

Post 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. ._.
Attachments
infolog.txt
(20.51 KiB) Downloaded 8 times
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AAI crashing Spring on game start

Post 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...
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AAI crashing Spring on game start

Post by abma »

you should try to fix these errors first:
[f=0000000] Error: Couldn't find WeaponDef NOWEAPON and explodeAs
User avatar
CliffracerX
Posts: 14
Joined: 09 Aug 2014, 04:37

Re: AAI crashing Spring on game start

Post 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. :?
Last edited by CliffracerX on 11 Aug 2014, 17:01, edited 1 time in total.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AAI crashing Spring on game start

Post 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.
User avatar
CliffracerX
Posts: 14
Joined: 09 Aug 2014, 04:37

Re: AAI crashing Spring on game start

Post 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.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: AAI crashing Spring on game start

Post by smoth »

IIRC AAI requires a config right?
User avatar
CliffracerX
Posts: 14
Joined: 09 Aug 2014, 04:37

Re: AAI crashing Spring on game start

Post 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. :|
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AAI crashing Spring on game start

Post 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
User avatar
CliffracerX
Posts: 14
Joined: 09 Aug 2014, 04:37

Re: AAI crashing Spring on game start

Post 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.
Attachments
infolog.txt
(52.98 KiB) Downloaded 5 times
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AAI crashing Spring on game start

Post 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!
User avatar
CliffracerX
Posts: 14
Joined: 09 Aug 2014, 04:37

Re: AAI crashing Spring on game start

Post 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... :|
Attachments
screen00000.png
(2.15 MiB) Downloaded 4 times
infolog.txt
(20.78 KiB) Downloaded 14 times
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: AAI crashing Spring on game start

Post 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!
Post Reply

Return to “Help & Bugs”