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

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

Closed
Nianmou opened this issue Apr 19, 2024 · 8 comments
Closed

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

Nianmou opened this issue Apr 19, 2024 · 8 comments
Labels
needs-author-action An issue or pull request that requires more info or actions from the author. no-recent-activity

Comments

@Nianmou
Copy link

Nianmou commented Apr 19, 2024

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.

@github-actions github-actions bot added the untriaged New issue has not been triaged label Apr 19, 2024
@roflmuffin
Copy link
Owner

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

@roflmuffin roflmuffin added the needs-author-action An issue or pull request that requires more info or actions from the author. label Apr 26, 2024
Copy link

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

@github-actions github-actions bot removed the untriaged New issue has not been triaged label Apr 26, 2024
@Nianmou
Copy link
Author

Nianmou commented Apr 29, 2024

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

@github-actions github-actions bot added needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration and removed needs-author-action An issue or pull request that requires more info or actions from the author. labels Apr 29, 2024
@roflmuffin
Copy link
Owner

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

@roflmuffin roflmuffin added the needs-author-action An issue or pull request that requires more info or actions from the author. label Jul 26, 2024
Copy link

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

@roflmuffin roflmuffin removed the needs-further-triage Issue has been initially triaged, but needs deeper consideration or reconsideration label Jul 26, 2024
@KillStr3aK
Copy link
Contributor

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

Copy link

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.

Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-author-action An issue or pull request that requires more info or actions from the author. no-recent-activity
Projects
None yet
Development

No branches or pull requests

3 participants