View Issue Details

IDProjectCategoryView StatusLast Update
0004738Spring engineAIpublic2015-07-04 00:35
ReporterDeinFreund Assigned Toabma  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionunable to reproduce 
Product Version98.0 
Summary0004738: Spring crashing after load of any custom JavaAI when using spring directory as write-dir
DescriptionThis happens even when using Spring 98.0, which works when using the engine directory as write-dir.
Custom JavaAI describes a JavaAI which is stored in the Spring/AI directory.

This causes zkl and reactswl to crash Spring when using a JavaAI. SpringLobby seems to use the engine dir as write-dir and thus avoids the crash.

Example:
Works:
C:\Users\User\Documents\My Games\Spring\engine\98.0>spring.exe --write-dir "C:\Users\User\Documents\My Games\Spring\engine\98.0" "C:\Users\User\Documents\My Games\Spring\weblobby\script.spring"

Crashes when loading SkirmishAI(see Infolog):
C:\Users\User\Documents\My Games\Spring\engine\98.0>spring.exe --write-dir "C:\Users\User\Documents\My Games\Spring" "C:\Users\User\Documents\My Games\Spring\weblobby\script.spring"
Steps To ReproduceThis has been only tested on this machine(Win7 64bit, Spring dir contains Spring 94.1) and is probably hard to reproduce on another machine.

Using zkl or reactswl launch a game of Zero-K v1.3.4.1 on Badlands with a CAI fighting a JavaAI stored in Spring/AI using Spring 98.0.
TagsNo tags attached.
Attached Files
infolog.txt (Attachment missing)
Checked infolog.txt for Errors

Activities

abma

2015-04-10 19:03

administrator   ~0014329

what are the contents of "C:\Users\User\Documents\My Games\Spring\AI\..."?

should be the same subpath as the java ai path in the engine\98 path

also infolog.txt contains no crash/stacktrace, are you sure it crashes and doesn't cleanly exit for some reason?

DeinFreund

2015-04-10 20:10

reporter   ~0014330

Spring\AI looks like the \AI of any engine (contains Interfaces and Skirmish).

This should be the infolog I meant to upload:
http://paste.springfiles.com/view/518e8c3e

abma

2015-07-03 15:44

administrator   ~0014855

sorry, forgot to respond.

very likely the used ai interfaces are incompatible to the selected engine version. please move them away and test if it works.

abma

2015-07-03 15:44

administrator   ~0014856

the same applies to the ai's: very likely they have to be compiled for a specific engine version and can't be exchanged. if you do it will crash like you see it.

DeinFreund

2015-07-04 00:34

reporter   ~0014867

Luckily the issue no longer persists

Issue History

Date Modified Username Field Change
2015-04-10 18:46 DeinFreund New Issue
2015-04-10 18:46 DeinFreund File Added: infolog.txt
2015-04-10 19:03 abma Note Added: 0014329
2015-04-10 19:03 abma Status new => feedback
2015-04-10 19:05 abma Project AI => Spring engine
2015-04-10 19:05 abma Product Version => 98.0
2015-04-10 20:10 DeinFreund Note Added: 0014330
2015-04-10 20:10 DeinFreund Status feedback => new
2015-07-03 15:44 abma Note Added: 0014855
2015-07-03 15:44 abma Assigned To => abma
2015-07-03 15:44 abma Status new => feedback
2015-07-03 15:44 abma Note Added: 0014856
2015-07-04 00:34 DeinFreund Note Added: 0014867
2015-07-04 00:34 DeinFreund Status feedback => assigned
2015-07-04 00:35 abma Status assigned => closed
2015-07-04 00:35 abma Resolution open => unable to reproduce