CounterStrikeSharp icon indicating copy to clipboard operation
CounterStrikeSharp copied to clipboard

There is a bug in the hot overload of the overlay plugin

Open Nianmou opened this issue 1 year ago • 7 comments

08:47:53 [EROR] (cssharp:Core) Error invoking callback System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.BadImageFormatException: Bad IL format. at System.Runtime.Loader.AssemblyLoadContext.InternalLoad(ReadOnlySpan1 arrAssembly, ReadOnlySpan1 arrSymbols) at System.Runtime.Loader.AssemblyLoadContext.LoadFromStream(Stream assembly, Stream assemblySymbols) at McMaster.NETCore.Plugins.Loader.ManagedLoadContext.LoadAssemblyFromFilePath(String path) at McMaster.NETCore.Plugins.PluginLoader.LoadDefaultAssembly() at CounterStrikeSharp.API.Core.Plugin.PluginContext.Load(Boolean hotReload) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/PluginContext.cs:line 126 at CounterStrikeSharp.API.Core.Plugin.PluginContext.<>c__DisplayClass29_0.<OnReloadedAsync>b__0() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/PluginContext.cs:line 113 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) --- End of inner exception stack trace --- at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr) at System.Delegate.DynamicInvokeImpl(Object[] args) at CounterStrikeSharp.API.Core.FunctionReference.<CreateWrappedCallback>b__18_0(fxScriptContext* context) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/FunctionReference.cs:line 100 36.028558 UNEXPECTED LONG FRAME DETECTED: 28.44ms elapsed, 28.11ms sim time, 1 ticks, 2389..2389.

Nianmou avatar Apr 19 '24 00:04 Nianmou

Can you provide some more information, what is the Overlay Plugin?

roflmuffin avatar Apr 26 '24 06:04 roflmuffin

This issue has been marked needs-author-action and may be missing some important information.

github-actions[bot] avatar Apr 26 '24 06:04 github-actions[bot]

It may be an issue with the translator, but I want to express that when I try to overwrite the plugin and reload it, it may report an error

您能否提供更多信息,什么是 Overlay 插件?

It may be an issue with the translator, but I want to express that when I try to overwrite the plugin and reload it, it may report an error

Nianmou avatar Apr 29 '24 03:04 Nianmou

Does this happen on every hot reload or only occasionally? I have seen this happen sometimes but not very often.

roflmuffin avatar Jul 26 '24 12:07 roflmuffin

This issue has been marked needs-author-action and may be missing some important information.

github-actions[bot] avatar Jul 26 '24 12:07 github-actions[bot]

Does this happen on every hot reload or only occasionally? I have seen this happen sometimes but not very often.

I've seen this issue when there were version changes between the dependencies for the plugin

KillStr3aK avatar Aug 02 '24 07:08 KillStr3aK

This issue has been automatically marked no-recent-activity because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will remove no-recent-activity.

github-actions[bot] avatar Aug 17 '24 03:08 github-actions[bot]

This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days.

github-actions[bot] avatar Aug 31 '24 03:08 github-actions[bot]