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

Lua stack traces don't trigger #54

Open
Mailaender opened this issue May 20, 2023 · 0 comments
Open

Lua stack traces don't trigger #54

Mailaender opened this issue May 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Mailaender
Copy link
Member

Fatal Lua Error: [string "-- Make copies of global functions to preve..."]: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.NullReferenceException: Object reference not set to an instance of an object.
   at OpenRA.Mods.Common.Scripting.TriggerGlobal.OnObjectiveCompleted(Player player, LuaFunction func) in OpenRA/OpenRA.Mods.Common/Scripting/Global/TriggerGlobal.cs:line 183
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at OpenRA.Scripting.ScriptMemberWrapper.Invoke(LuaVararg args) in OpenRA/OpenRA.Game/Scripting/ScriptMemberWrapper.cs:line 76
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Span`1& arguments, Signature sig, Boolean constructor, Boolean wrapExceptions)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   at Eluant.LuaRuntime.MethodWrapper.Invoke(Object[] parms)
   at Eluant.LuaRuntime.MakeManagedCall(IntPtr state, MethodWrapper wrapper)
   at Eluant.LuaRuntime.Call(IList`1 args)
   at Eluant.LuaRuntime.Call(LuaFunction fn, IList`1 args)
   at Eluant.LuaFunction.Call(IList`1 args)
   at Eluant.LuaFunction.Call(LuaValue[] args)
   at OpenRA.Scripting.ScriptContext.WorldLoaded() in OpenRA/OpenRA.Game/Scripting/ScriptContext.cs:line 297

It would be great if the bot would detect the inner exception:

---> System.NullReferenceException: Object reference not set to an instance of an object.
at OpenRA.Mods.Common.Scripting.TriggerGlobal.OnObjectiveCompleted(Player player, LuaFunction func) in OpenRA/OpenRA.Mods.Common/Scripting/Global/TriggerGlobal.cs:line 183

and highlight it.

@Mailaender Mailaender added the bug Something isn't working label May 20, 2023
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

1 participant