Skip to content

Instantly share code, notes, and snippets.

@kyrreso

kyrreso/new Secret

Created March 12, 2017 18:39
Show Gist options
  • Save kyrreso/0d04d89e11fc8d3a0b97976947a2841e to your computer and use it in GitHub Desktop.
Save kyrreso/0d04d89e11fc8d3a0b97976947a2841e to your computer and use it in GitHub Desktop.
Fatal Lua Error:
Stack Traceback
===============
(2) global C function 'error'
(3) Lua function '(anonymous)' at file '/usr/lib/openra//lua/sandbox.lua:150' (best guess)
Local variables:
arg = nil
ok = boolean: false
result = string: "[string \"BindingSupport.lua\"]:30: Uncaught CLR exception at Lua->CLR boundary: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.\
Parameter name: source\
at System.Linq.Enumerable.ToList[TSource] (IEnumerable`1 source) <0x40d733c0 + 0x0009f> in <filename unknown>:0 \
at OpenRA.Exts.Random[T] (IEnumerable`1 ts, OpenRA.Support.MersenneTwister r, Boolean throws) <0x40debdb0 + 0x00077> in <filename unknown>:0 \
at OpenRA.Exts.Random[T] (IEnumerable`1 ts, OpenRA.Support.MersenneTwister r) <0x40debd60 + 0x00033> in <filename unknown>:0 \
at OpenRA.Mods.Common.Scripting.UtilsGlobal.Random (Eluant.LuaValue[] collection) <0x40f21b90 + 0x00033> in <filename unknown>:0 \
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)\
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7fdd67dab9e0 + 0x000a1> in <filename unknown>:0 \
--- End of inner exception stack trace ---\
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7fdd67dab9e0 + 0x000ef> in <filename unknown>:0 \
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x7fdd67be3cf0 + 0x0002a> in <filename unknown>:0 \
at OpenRA.Scripting.ScriptMemberWrapper.Invoke (Eluant.LuaVararg args) <0x40f0aa40 + 0x004bc> in <filename unknown>:0 \
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)\
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7fdd67dab9e0 + 0x000a1> in <filename unknown>:0 \
--- End of inner exception stack trace ---\
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7fdd67dab9e0 + 0x000ef> in <filename unknown>:0 \
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x7fdd67be3cf0 + 0x0002a> in <filename unknown>:0 \
at Eluant.LuaRuntime+MethodWrapper.Invoke (System.Object[] parms) <0x40f0a0a0 + 0x00035> in <filename unknown>:0 \
at Eluant.LuaRuntime.MakeManagedCall (IntPtr state, Eluant.MethodWrapper wrapper) <0x40f08580 + 0x0108b> in <filename unknown>:0 "
(4) tail call
(5) Lua function '?' at line 15 of chunk '"scriptwrapper.lua"]'
(6) global C function 'xpcall'
(7) Lua upvalue 'TryRunSandboxed' at line 15 of chunk '"scriptwrapper.lua"]'
Local variables:
fn = Lua function '?' (defined at line 22 of chunk "mission_Main.lua"])
(8) Lua function '?' at line 29 of chunk '"scriptwrapper.lua"]'
Error message
===============
/usr/lib/openra//lua/sandbox.lua:150: [string "BindingSupport.lua"]:30: Uncaught CLR exception at Lua->CLR boundary: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentNullException: Value cannot be null.
Parameter name: source
at System.Linq.Enumerable.ToList[TSource] (IEnumerable`1 source) <0x40d733c0 + 0x0009f> in <filename unknown>:0
at OpenRA.Exts.Random[T] (IEnumerable`1 ts, OpenRA.Support.MersenneTwister r, Boolean throws) <0x40debdb0 + 0x00077> in <filename unknown>:0
at OpenRA.Exts.Random[T] (IEnumerable`1 ts, OpenRA.Support.MersenneTwister r) <0x40debd60 + 0x00033> in <filename unknown>:0
at OpenRA.Mods.Common.Scripting.UtilsGlobal.Random (Eluant.LuaValue[] collection) <0x40f21b90 + 0x00033> in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7fdd67dab9e0 + 0x000a1> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7fdd67dab9e0 + 0x000ef> in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x7fdd67be3cf0 + 0x0002a> in <filename unknown>:0
at OpenRA.Scripting.ScriptMemberWrapper.Invoke (Eluant.LuaVararg args) <0x40f0aa40 + 0x004bc> in <filename unknown>:0
at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (System.Reflection.MonoMethod,object,object[],System.Exception&)
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7fdd67dab9e0 + 0x000a1> in <filename unknown>:0
--- End of inner exception stack trace ---
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) <0x7fdd67dab9e0 + 0x000ef> in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) <0x7fdd67be3cf0 + 0x0002a> in <filename unknown>:0
at Eluant.LuaRuntime+MethodWrapper.Invoke (System.Object[] parms) <0x40f0a0a0 + 0x00035> in <filename unknown>:0
at Eluant.LuaRuntime.MakeManagedCall (IntPtr state, Eluant.MethodWrapper wrapper) <0x40f08580 + 0x0108b> in <filename unknown>:0
===============
at OpenRA.Scripting.ScriptContext.FatalError (System.String message) [0x00000] in <filename unknown>:0
at System.Reflection.MonoMethod.InternalInvoke (System.Reflection.MonoMethod , System.Object , System.Object[] , System.Exception& ) [0x00000] in <filename unknown>:0
at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
at System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) [0x00000] in <filename unknown>:0
at Eluant.LuaRuntime+MethodWrapper.Invoke (System.Object[] parms) [0x00000] in <filename unknown>:0
at Eluant.LuaRuntime.MakeManagedCall (IntPtr state, Eluant.MethodWrapper wrapper) [0x00000] in <filename unknown>:0
at Eluant.LuaRuntime.MethodWrapperCallCallback (IntPtr state) [0x00000] in <filename unknown>:0
at Eluant.LuaRuntime.MethodWrapperCallCallbackWrapper (IntPtr state) [0x00000] in <filename unknown>:0
at Eluant.LuaApi.lua_pcall (IntPtr , Int32 , Int32 , Int32 ) [0x00000] in <filename unknown>:0
at Eluant.LuaRuntime.Call (IList`1 args) [0x00000] in <filename unknown>:0
at Eluant.LuaRuntime.Call (Eluant.LuaFunction fn, IList`1 args) [0x00000] in <filename unknown>:0
at Eluant.LuaFunction.Call (IList`1 args) [0x00000] in <filename unknown>:0
at Eluant.LuaFunction.Call (Eluant.LuaValue[] args) [0x00000] in <filename unknown>:0
at OpenRA.Scripting.ScriptContext.Tick (OpenRA.Actor self) [0x00000] in <filename unknown>:0
at OpenRA.Mods.Common.Scripting.LuaScript.Tick (OpenRA.Actor self) [0x00000] in <filename unknown>:0
at OpenRA.World.<Tick>m__3 (TraitPair`1 x) [0x00000] in <filename unknown>:0
at OpenRA.WorldUtils.DoTimed[T] (IEnumerable`1 e, System.Action`1 a, System.String text) [0x00000] in <filename unknown>:0
at OpenRA.World.Tick () [0x00000] in <filename unknown>:0
at OpenRA.Game.InnerLogicTick (OpenRA.Network.OrderManager orderManager) [0x00000] in <filename unknown>:0
at OpenRA.Game.LogicTick () [0x00000] in <filename unknown>:0
at OpenRA.Game.Loop () [0x00000] in <filename unknown>:0
at OpenRA.Game.Run () [0x00000] in <filename unknown>:0
at OpenRA.Program.Run (System.String[] args) [0x00000] in <filename unknown>:0
at OpenRA.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment