Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crash on NixOS: Index was outside the bounds of the array. #10

Open
fusion809 opened this issue Jan 26, 2019 · 2 comments
Open

Crash on NixOS: Index was outside the bounds of the array. #10

fusion809 opened this issue Jan 26, 2019 · 2 comments

Comments

@fusion809
Copy link

Commit 1328 crashes after a little gameplay, while I'm building my second refinery, here is the exception log:

OpenRA engine version 4563a09
Red Alert 2: Romanov's Vengeance mod version 1328
on map 380af74978ec6227a036721ad57e7f7235a3d777 (Standoff in Nevada by ZxGanon).
Date: 2019-01-26 14:13:41Z
Operating System: Linux (Unix 4.19.16.0)
Runtime Version: Mono 5.16.0.220 (tarball Sun Jan  6 14:59:55 UTC 2019) CLR 4.0.30319.42000
Exception of type `System.IndexOutOfRangeException`: Index was outside the bounds of the array.
  at OpenRA.CellLayer`1[T].get_Item (OpenRA.MPos uv) [0x0000e] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Map.GetTerrainIndex (OpenRA.CPos cell) [0x00059] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Map.GetTerrainInfo (OpenRA.CPos cell) [0x00007] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Mods.Common.AIUtils+<IsAreaAvailable>c__AnonStorey0`1[T].<>m__3 (OpenRA.CPos ac) [0x0000d] in /build/source/engine/OpenRA.Mods.Common/AIUtils.cs:50 
  at System.Linq.Enumerable.All[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0002c] in /build/mono-5.16.0.220/external/corefx/src/System.Linq/src/System/Linq/AnyAll.cs:61 
  at OpenRA.Mods.Common.AIUtils+<IsAreaAvailable>c__AnonStorey0`1[T].<>m__2 (OpenRA.CPos c) [0x00056] in /build/source/engine/OpenRA.Mods.Common/AIUtils.cs:50 
  at System.Linq.Enumerable.Count[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x0002e] in /build/mono-5.16.0.220/external/corefx/src/System.Linq/src/System/Linq/Count.cs:66 
  at OpenRA.Mods.Common.AIUtils+<IsAreaAvailable>c__AnonStorey0`1[T].<>m__1 (OpenRA.Actor a) [0x00024] in /build/source/engine/OpenRA.Mods.Common/AIUtils.cs:48 
  at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00045] in /build/mono-5.16.0.220/external/corefx/src/System.Linq/src/System/Linq/Where.cs:701 
  at System.Linq.Enumerable.Any[TSource] (System.Collections.Generic.IEnumerable`1[T] source, System.Func`2[T,TResult] predicate) [0x00039] in /build/mono-5.16.0.220/external/corefx/src/System.Linq/src/System/Linq/AnyAll.cs:36 
  at OpenRA.Mods.Common.AIUtils.IsAreaAvailable[T] (OpenRA.World world, OpenRA.Player player, OpenRA.Map map, System.Int32 radius, System.Collections.Generic.HashSet`1[T] terrainTypes) [0x00066] in /build/source/engine/OpenRA.Mods.Common/AIUtils.cs:51 
  at OpenRA.Mods.Common.Traits.BaseBuilderQueueManager.Tick (OpenRA.Traits.IBot bot) [0x000ec] in /build/source/engine/OpenRA.Mods.Common/Traits/BotModules/BotModuleLogic/BaseBuilderQueueManager.cs:75 
  at OpenRA.Mods.Common.Traits.BaseBuilderBotModule.OpenRA.Mods.Common.Traits.IBotTick.BotTick (OpenRA.Traits.IBot bot) [0x00024] in /build/source/engine/OpenRA.Mods.Common/Traits/BotModules/BaseBuilderBotModule.cs:193 
  at OpenRA.Mods.Common.Traits.ModularBot.<Tick>m__0 () [0x00021] in /build/source/engine/OpenRA.Mods.Common/Traits/Player/ModularBot.cs:88 
  at OpenRA.Sync+<>c__DisplayClass13_0.<RunUnsynced>b__0 () [0x00001] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Sync.RunUnsynced[T] (System.Boolean checkSyncHash, OpenRA.World world, System.Func`1[TResult] fn) [0x0002c] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Sync.RunUnsynced (System.Boolean checkSyncHash, OpenRA.World world, System.Action fn) [0x0000e] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Mods.Common.Traits.ModularBot.OpenRA.Traits.ITick.Tick (OpenRA.Actor self) [0x0003f] in /build/source/engine/OpenRA.Mods.Common/Traits/Player/ModularBot.cs:84 
  at OpenRA.World+<>c.<Tick>b__96_0 (OpenRA.TraitPair`1[T] x) [0x00000] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.WorldUtils.DoTimed[T] (System.Collections.Generic.IEnumerable`1[T] e, System.Action`1[T] a, System.String text) [0x0001f] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.World.Tick () [0x00085] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Game.InnerLogicTick (OpenRA.Network.OrderManager orderManager) [0x0022c] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Game.LogicTick () [0x00056] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Game.Loop () [0x000d9] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Game.Run () [0x00044] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Game.InitializeAndRun (System.String[] args) [0x00013] in <ac21724dfc364fbb9e317d202ce3c107>:0 
  at OpenRA.Program.Main (System.String[] args) [0x0004e] in <ac21724dfc364fbb9e317d202ce3c107>:0 

My remaining log files and replay are in:
openra-rv-1328-crash-20190127-index-out-of-array.zip.

Mono version is 5.16.0.220, Lua version is 5.1.5, is relevant. My OS is NixOS 19.03pre166987.bc41317e243, with the 4.19.16 kernel.

@GraionDilach
Copy link
Contributor

Could be map.

@MustaphaTR
Copy link
Owner

AI doesn't like some maps, we are not sure what exactly is wrong tho, didn't really try to debug the issue but we are aware of it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants