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 System.NullReferenceException for OpenRA.Actor.get_CenterPosition #35

Closed
Muh-Muh opened this issue Feb 8, 2019 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@Muh-Muh
Copy link

Muh-Muh commented Feb 8, 2019

I think this is a different Issue than #31 but might be related(?)
Exception log:

OpenRA engine version playtest-20190106
Dark Reign mod version playtest-20190206
on map dfcded52913e5433fc3415962359a2255f75d778 (D-Missions: F. Guard 01 by DMW).
Date: 2019-02-08 00:31:04Z
Operating System: Linux (Unix 4.20.5.200)
Runtime Version: Mono 4.8.0 (Stable 4.8.0.520/8f6d0f6 Wed Sep 20 21:27:10 UTC 2017) CLR 4.0.30319.42000
Exception of type `System.NullReferenceException`: Object reference not set to an instance of an object
  at OpenRA.Actor.get_CenterPosition () [0x00007] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Graphics.Viewport.<Center>m__0 (OpenRA.Actor a) [0x00000] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at (wrapper delegate-invoke) System.Func`2[OpenRA.Actor,OpenRA.WPos]:invoke_TResult_T (OpenRA.Actor)
  at System.Linq.Enumerable+WhereSelectEnumerableIterator`2[TSource,TResult].MoveNext () [0x00064] in /builddir/build/BUILD/mono-4.8.0/mcs/class/referencesource/System.Core/System/Linq/Enumerable.cs:285 
  at System.Linq.Enumerable.Count[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x0004b] in /builddir/build/BUILD/mono-4.8.0/mcs/class/referencesource/System.Core/System/Linq/Enumerable.cs:1226 
  at OpenRA.IEnumerableExtensions.Average (System.Collections.Generic.IEnumerable`1[T] source) [0x00001] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Graphics.Viewport.Center (System.Collections.Generic.IEnumerable`1[T] actors) [0x00035] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Mods.Common.Widgets.Logic.Ingame.CycleProductionActorsHotkeyLogic.OnHotkeyActivated (OpenRA.KeyInput e) [0x00108] in /home/travis/build/drogoganor/DarkReign/engine/OpenRA.Mods.Common/Widgets/Logic/Ingame/Hotkeys/CycleProductionActorsHotkeyLogic.cs:67 
  at OpenRA.Mods.Common.Widgets.Logic.SingleHotkeyBaseLogic+<SingleHotkeyBaseLogic>c__AnonStorey0.<>m__0 (OpenRA.KeyInput e) [0x00025] in /home/travis/build/drogoganor/DarkReign/engine/OpenRA.Mods.Common/Widgets/Logic/SingleHotkeyBaseLogic.cs:32 
  at OpenRA.Mods.Common.Widgets.LogicKeyListenerWidget.HandleKeyPress (OpenRA.KeyInput e) [0x0001d] in /home/travis/build/drogoganor/DarkReign/engine/OpenRA.Mods.Common/Widgets/LogicKeyListenerWidget.cs:25 
  at OpenRA.Widgets.Widget.HandleKeyPressOuter (OpenRA.KeyInput e) [0x0006b] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Widgets.Widget.HandleKeyPressOuter (OpenRA.KeyInput e) [0x0003b] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Widgets.Widget.HandleKeyPressOuter (OpenRA.KeyInput e) [0x0003b] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Widgets.Ui.HandleKeyPress (OpenRA.KeyInput e) [0x0001c] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.DefaultInputHandler+<OnKeyInput>c__AnonStorey0.<>m__0 () [0x00000] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Sync.RunUnsynced[T] (System.Boolean checkSyncHash, OpenRA.World world, System.Func`1[TResult] fn) [0x00033] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.DefaultInputHandler.OnKeyInput (OpenRA.KeyInput input) [0x0000e] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Platforms.Default.Sdl2Input.PumpInput (OpenRA.Platforms.Default.Sdl2PlatformWindow device, OpenRA.IInputHandler inputHandler) [0x003b9] in <c655ac44daf046df86ec917481879627>:0 
  at OpenRA.Platforms.Default.Sdl2PlatformWindow.PumpInput (OpenRA.IInputHandler inputHandler) [0x00007] in <c655ac44daf046df86ec917481879627>:0 
  at OpenRA.Renderer.EndFrame (OpenRA.IInputHandler inputHandler) [0x0000d] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Game.RenderTick () [0x00142] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Game.Loop () [0x00142] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Game.Run () [0x00042] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Game.InitializeAndRun (System.String[] args) [0x00011] in <e048e680f3a847fbb277180ecfcbc567>:0 
  at OpenRA.Program.Main (System.String[] args) [0x0004f] in <e048e680f3a847fbb277180ecfcbc567>:0 
@drogoganor
Copy link
Owner

Beauty, thanks. Looks like there's a problem with the hotkeys. I'll have a look this weekend.

@drogoganor
Copy link
Owner

Reproduced by pressing Tab!

@drogoganor drogoganor added the bug Something isn't working label Feb 16, 2019
@drogoganor
Copy link
Owner

This one is solved now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants