CombinE88 / Medieval-Warfare

Medieval Warfare mod for OpenRa
GNU General Public License v3.0
21 stars 5 forks source link

Commit 207 fails make test and crashes on start up on openSUSE Tumbleweed #15

Closed fusion809 closed 6 years ago

fusion809 commented 6 years ago

Hi,

Commit 207 (521cfbfd45cbd5318dd817bdad8fa6b7705266b5), with engine 25194 (commit 5d1c37a4c55e1ec4d8ab7d83501e4ca6eb77c985) fails make tests, and crashes with the error:

        sp-SP-Build-20180728-III: Shattered Paradise (SP-Build-20180728-III)
        ts-{DEV_VERSION}: Tiberian Sun ({DEV_VERSION})
Loading mod: mw
Exception of type `System.AggregateException`: One or more errors occurred.
Inner
  Exception of type `System.InvalidOperationException`: Cannot locate type: EditorUndoRedoLayerInfo
    at OpenRA.ObjectCreator+<>c.<.cctor>b__20_0 (System.String s) [0x00015] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.ObjectCreator.CreateObject[T] (System.String className, System.Collections.Generic.Dictionary`2[TKey,TValue] args) [0x0001a] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.ObjectCreator.CreateObject[T] (System.String className) [0x00008] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.ActorInfo.LoadTraitInfo (OpenRA.ObjectCreator creator, System.String traitName, OpenRA.MiniYaml my) [0x00042] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.ActorInfo..ctor (OpenRA.ObjectCreator creator, System.String name, OpenRA.MiniYaml node) [0x00058] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Ruleset+<>c__DisplayClass12_0.<LoadDefaults>b__1 (OpenRA.MiniYamlNode k) [0x00016] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Exts.ToDictionaryWithConflictLog[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector, System.String debugName, System.Func`2[T,TResult] logKey, System.Func`2[T,TResult] logValue) [0x00091] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Ruleset.MergeOrDefault[T] (System.String name, OpenRA.FileSystem.IReadOnlyFileSystem fileSystem, System.Collections.Generic.IEnumerable`1[T] files, OpenRA.MiniYaml additional, OpenRA.IReadOnlyDictionary`2[TKey,TValue] defaults, System.Func`2[T,TResult] makeObject, System.Func`2[T,TResult] filterNode) [0x00080] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Ruleset+<>c__DisplayClass12_0.<LoadDefaults>b__0 () [0x00001] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2886 
  at System.Threading.Tasks.Task.Execute () [0x00010] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2509 
  at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00013] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2166 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:3196 
  at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout) [0x00000] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:3137 
  at OpenRA.Ruleset.LoadDefaults (OpenRA.ModData modData) [0x0007c] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.ModData.<.ctor>b__30_3 () [0x00000] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at System.Lazy`1[T].CreateValue () [0x00060] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/Lazy.cs:437 
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/runtime/exceptionservices/exceptionservicescommon.cs:152 
  at System.Lazy`1[T].get_Value () [0x0002b] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/Lazy.cs:330 
  at OpenRA.ModData.get_DefaultRules () [0x00001] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Ruleset.LoadDefaultsForTileSet (OpenRA.ModData modData, System.String tileSet) [0x00001] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Map.PostInit () [0x00080] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Map..ctor (OpenRA.ModData modData, OpenRA.FileSystem.IReadOnlyPackage package) [0x0041c] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.ModData.PrepareMap (System.String uid) [0x0006e] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Game.StartGame (System.String mapUID, OpenRA.WorldType type) [0x0003f] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Game.LoadShellMap () [0x00018] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Mods.Common.LoadScreens.BlankLoadScreen.StartGame (OpenRA.Arguments args) [0x001b4] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Mods.Common/LoadScreens/BlankLoadScreen.cs:100 
  at OpenRA.Game.InitializeMod (System.String mod, OpenRA.Arguments args) [0x003e1] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Game.Initialize (OpenRA.Arguments args) [0x004c7] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Game.InitializeAndRun (System.String[] args) [0x00007] in <f575f4881dc74379a3f97dd3c3b99c19>:0 
  at OpenRA.Program.Main (System.String[] args) [0x0004e] in <f575f4881dc74379a3f97dd3c3b99c19>:0 

on openSUSE Tumbleweed (x86-64, release 20180828). The test failure is documented in my package build log in the openSUSE Build Service (OBS): https://gist.github.com/c03ae54ee0863340c2c563c4e467a71b, here it is in brief:

[   93s] OpenRA.Utility(1,1): Error: Missing Type: EditorUndoRedoLayerInfo
[   93s] OpenRA.Utility(1,1): Error: Failed with exception: System.AggregateException: One or more errors occurred. ---> System.NullReferenceException: Object reference not set to an instance of an object
[   93s]   at OpenRA.FieldLoader.Load (System.Object self, OpenRA.MiniYaml my) [0x00007] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/FieldLoader.cs:84 
[   93s]   at OpenRA.ActorInfo.LoadTraitInfo (OpenRA.ObjectCreator creator, System.String traitName, OpenRA.MiniYaml my) [0x00049] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/ActorInfo.cs:79 
[   93s]   at OpenRA.ActorInfo..ctor (OpenRA.ObjectCreator creator, System.String name, OpenRA.MiniYaml node) [0x00062] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/ActorInfo.cs:47 
[   93s]   at OpenRA.Ruleset+<LoadDefaults>c__AnonStorey1.<>m__1 (OpenRA.MiniYamlNode k) [0x0001c] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/Ruleset.cs:132 
[   93s]   at OpenRA.Exts.ToDictionaryWithConflictLog[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector, System.String debugName, System.Func`2[T,TResult] logKey, System.Func`2[T,TResult] logValue) [0x00073] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/Exts.cs:376 
[   93s]   at OpenRA.Ruleset.MergeOrDefault[T] (System.String name, OpenRA.FileSystem.IReadOnlyFileSystem fileSystem, System.Collections.Generic.IEnumerable`1[T] files, OpenRA.MiniYaml additional, OpenRA.IReadOnlyDictionary`2[TKey,TValue] defaults, System.Func`2[T,TResult] makeObject, System.Func`2[T,TResult] filterNode) [0x0006c] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/Ruleset.cs:120 
[   93s]   at OpenRA.Ruleset+<LoadDefaults>c__AnonStorey1.<>m__0 () [0x00042] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/Ruleset.cs:131 
[   93s]   at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2886 
[   93s]   at System.Threading.Tasks.Task.Execute () [0x00010] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2509 
[   93s]    --- End of inner exception stack trace ---
[   93s]   at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00013] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2166 
[   93s]   at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout, System.Threading.CancellationToken cancellationToken) [0x00043] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:3196 
[   93s]   at System.Threading.Tasks.Task.Wait (System.Int32 millisecondsTimeout) [0x00000] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:3137 
[   93s]   at OpenRA.Ruleset.LoadDefaults (OpenRA.ModData modData) [0x00080] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/Ruleset.cs:162 
[   93s]   at OpenRA.ModData.<ModData>m__3 () [0x00001] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/ModData.cs:95 
[   93s]   at System.Lazy`1[T].CreateValue () [0x00081] in <be6fee20a4cf451a8bc9b85c19fe2133>:0 
[   93s]   at System.Lazy`1[T].LazyInitValue () [0x00080] in <be6fee20a4cf451a8bc9b85c19fe2133>:0 
[   93s]   at System.Lazy`1[T].get_Value () [0x0003a] in <be6fee20a4cf451a8bc9b85c19fe2133>:0 
[   93s]   at OpenRA.ModData.get_DefaultRules () [0x00007] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/ModData.cs:41 
[   93s]   at OpenRA.Mods.Common.UtilityCommands.CheckYaml.OpenRA.IUtilityCommand.Run (OpenRA.Utility utility, System.String[] args) [0x000a4] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Mods.Common/UtilityCommands/CheckYaml.cs:64 
[   93s] ---> (Inner Exception #0) System.NullReferenceException: Object reference not set to an instance of an object
[   93s]   at OpenRA.FieldLoader.Load (System.Object self, OpenRA.MiniYaml my) [0x00007] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/FieldLoader.cs:84 
[   93s]   at OpenRA.ActorInfo.LoadTraitInfo (OpenRA.ObjectCreator creator, System.String traitName, OpenRA.MiniYaml my) [0x00049] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/ActorInfo.cs:79 
[   93s]   at OpenRA.ActorInfo..ctor (OpenRA.ObjectCreator creator, System.String name, OpenRA.MiniYaml node) [0x00062] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/ActorInfo.cs:47 
[   93s]   at OpenRA.Ruleset+<LoadDefaults>c__AnonStorey1.<>m__1 (OpenRA.MiniYamlNode k) [0x0001c] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/Ruleset.cs:132 
[   93s]   at OpenRA.Exts.ToDictionaryWithConflictLog[TSource,TKey,TElement] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] keySelector, System.Func`2[T,TResult] elementSelector, System.String debugName, System.Func`2[T,TResult] logKey, System.Func`2[T,TResult] logValue) [0x00073] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/Exts.cs:376 
[   93s]   at OpenRA.Ruleset.MergeOrDefault[T] (System.String name, OpenRA.FileSystem.IReadOnlyFileSystem fileSystem, System.Collections.Generic.IEnumerable`1[T] files, OpenRA.MiniYaml additional, OpenRA.IReadOnlyDictionary`2[TKey,TValue] defaults, System.Func`2[T,TResult] makeObject, System.Func`2[T,TResult] filterNode) [0x0006c] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/Ruleset.cs:120 
[   93s]   at OpenRA.Ruleset+<LoadDefaults>c__AnonStorey1.<>m__0 () [0x00042] in /home/abuild/rpmbuild/BUILD/Medieval-Warfare-521cfbfd45cbd5318dd817bdad8fa6b7705266b5/engine/OpenRA.Game/GameRules/Ruleset.cs:131 
[   93s]   at System.Threading.Tasks.Task.InnerInvoke () [0x0000f] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2886 
[   93s]   at System.Threading.Tasks.Task.Execute () [0x00010] in /home/abuild/rpmbuild/BUILD/mono-5.10.1.47/mcs/class/referencesource/mscorlib/system/threading/Tasks/Task.cs:2509 <---
[   93s] 

(ignore the [ ns] that pertains to the OBS). I'm quite surprised the Travis CI build worked.

Thanks for your time, Brenton

fusion809 commented 6 years ago

Fixed, thanks @CombinE88.