Benchmarking tool for Spring (included in ZKL) - Page 2

Benchmarking tool for Spring (included in ZKL)

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Benchmarking tool for Spring (included in ZKL)

Post by abma »

now spring crashes at start:

"/home/abma/.spring/engine/94.1/spring --config /tmp/Benchmarks/Configs/ZKL default/springsettings.cfg /tmp/tmp6339fc70.tmp"

when i run manually the same command i get the error message by spring:

Error: ERROR Could not set video mode:
No video mode large enough for 1920x1200

when editing config & removing these values spring starts, but crashes.

RunBenchmarker.exe sets
SPRING_DATADIR="/tmp/Benchmarks/Configs/ZKL default;/home/abma/.spring;/tmp/Benchmarks"
which is wrong on unix like os, paths have to be split with ":", when i replace ; with : it works and doesn't crash.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Benchmarking tool for Spring (included in ZKL)

Post by Licho »

Oops, didnt know that.. fixed.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Benchmarking tool for Spring (included in ZKL)

Post by abma »

works! it crashes at exit of spring now:
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for Newtonsoft.Json.Utilities.ConvertUtils ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
--- End of inner exception stack trace ---
at Newtonsoft.Json.JsonConvert.IsJsonPrimitiveType (System.Type t) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract (System.Type objectType) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract (System.Type type) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContractSafe (System.Object value) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonSerializer.SerializeInternal (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonSerializer.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Formatting formatting) [0x00000] in <filename unknown>:0
at Benchmarker.BatchRunResult.SaveFiles (System.String folder, System.String& csvPath, System.String& jsonPath) [0x00000] in <filename unknown>:0
at Benchmarker.MainForm.<btnStart_Click>b__9 (Benchmarker.BatchRunResult result) [0x00000] in <filename unknown>:0
at (wrapper delegate-invoke) <Module>:invoke_void__this___BatchRunResult (Benchmarker.BatchRunResult)
at Benchmarker.Batch.RunTests (PlasmaShared.SpringPaths paths) [0x00000] in <filename unknown>:0
at Benchmarker.MainForm.<btnStart_Click>b__b () [0x00000] in <filename unknown>:0
at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.TypeInitializationException: An exception was thrown by the type initializer for Newtonsoft.Json.Utilities.ConvertUtils ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies.
File name: 'System.Numerics, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
--- End of inner exception stack trace ---
at Newtonsoft.Json.JsonConvert.IsJsonPrimitiveType (System.Type t) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.CreateContract (System.Type objectType) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.DefaultContractResolver.ResolveContract (System.Type type) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.GetContractSafe (System.Object value) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.Serialization.JsonSerializerInternalWriter.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonSerializer.SerializeInternal (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonSerializer.Serialize (Newtonsoft.Json.JsonWriter jsonWriter, System.Object value, System.Type objectType) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, System.Type type, Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Formatting formatting, Newtonsoft.Json.JsonSerializerSettings settings) [0x00000] in <filename unknown>:0
at Newtonsoft.Json.JsonConvert.SerializeObject (System.Object value, Formatting formatting) [0x00000] in <filename unknown>:0
at Benchmarker.BatchRunResult.SaveFiles (System.String folder, System.String& csvPath, System.String& jsonPath) [0x00000] in <filename unknown>:0
at Benchmarker.MainForm.<btnStart_Click>b__9 (Benchmarker.BatchRunResult result) [0x00000] in <filename unknown>:0
at (wrapper delegate-invoke) <Module>:invoke_void__this___BatchRunResult (Benchmarker.BatchRunResult)
at Benchmarker.Batch.RunTests (PlasmaShared.SpringPaths paths) [0x00000] in <filename unknown>:0
at Benchmarker.MainForm.<btnStart_Click>b__b () [0x00000] in <filename unknown>:0
at System.Threading.Thread.StartInternal () [0x00000] in <filename unknown>:0
Attachments
infolog.txt
(41.15 KiB) Downloaded 8 times
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Benchmarking tool for Spring (included in ZKL)

Post by Licho »

apt get libmono-system-numerics4.0-cil
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Benchmarking tool for Spring (included in ZKL)

Post by abma »

ok, works! :)
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Benchmarking tool for Spring (included in ZKL)

Post by Licho »

Great, i got engine download working (using commandline 7z as suggested by jK) and now planning to add bisect function (by engine or mod version)
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Benchmarking tool for Spring (included in ZKL)

Post by Licho »

Ok, engine download definitely works on linux now (needs 7z installed),
and added bisecting tool to benchmarker.
Write test that outputs some variable and you can then use bisect to find mod/engine which caused variable to change.

Image
Google_Frog
Moderator
Posts: 2464
Joined: 12 Oct 2007, 09:24

Re: Benchmarking tool for Spring (included in ZKL)

Post by Google_Frog »

This does not run with Spring - 94.1.1-594-g8f53c96. Cannot find the archive, eg "Archive "fps_war.sdd" not found".
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Benchmarking tool for Spring (included in ZKL)

Post by Licho »

Caused by new spring only reading games not mods folder.
Please move mods to games.
User avatar
Licho
Zero-K Developer
Posts: 3803
Joined: 19 May 2006, 19:13

Re: Benchmarking tool for Spring (included in ZKL)

Post by Licho »

This change actually caused some problems, bcause ZKL was set to only use "mods" and not "games" and I was not aware of this chnage.

Also me and few others have spent quite some time figuring out why spring suddenly wont load something.
Post Reply

Return to “Engine”