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

Server crash #2

Open
asapverneri opened this issue Dec 14, 2023 · 5 comments
Open

Server crash #2

asapverneri opened this issue Dec 14, 2023 · 5 comments

Comments

@asapverneri
Copy link

Hi,

I downloaded newest release and it crashes the server.
CSSharp v126

Console error:

invalid counterterrorist spawnpoint at (-385.4,-1359.9,67.5)
Fatal error. System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
Repeat 2 times:
--------------------------------
   at CounterStrikeSharp.API.Core.Helpers.InvokeNative(IntPtr)
--------------------------------
   at CounterStrikeSharp.API.Core.ScriptContext.InvokeNativeInternal()
   at CounterStrikeSharp.API.Core.ScriptContext.Invoke()
   at CounterStrikeSharp.API.Core.NativeAPI.ExecuteVirtualFunction[[System.__Canon, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]](IntPtr, System.Object[])
   at CounterStrikeSharp.API.Modules.Memory.VirtualFunction+<>c__DisplayClass2_0`1[[System.IntPtr, System.Private.CoreLib, Version=7.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]].<CreateVoid>b__1(IntPtr)
   at CounterStrikeSharp.API.Core.CCSPlayer_ItemServices.RemoveWeapons()
   at CounterStrikeSharp.API.Core.CCSPlayerController.RemoveWeapons()
   at Lib.strip_weapons(CounterStrikeSharp.API.Core.CCSPlayerController, Boolean)
   at Warden.setup_player_guns(CounterStrikeSharp.API.Core.CCSPlayerController)
   at Warden.spawn(CounterStrikeSharp.API.Core.CCSPlayerController)
   at JailPlugin+<>c__DisplayClass30_0.<OnPlayerSpawn>b__0()
   at System.RuntimeMethodHandle.InvokeMethod(System.Object, Void**, System.Signature, Boolean)
   at System.Reflection.MethodInvoker.Invoke(System.Object, IntPtr*, System.Reflection.BindingFlags)
   at System.Reflection.RuntimeMethodInfo.Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo)
   at System.Delegate.DynamicInvokeImpl(System.Object[])
   at CounterStrikeSharp.API.Core.FunctionReference+<>c__DisplayClass3_0.<.ctor>b__0(CounterStrikeSharp.API.Core.fxScriptContext*)
@destoer
Copy link
Owner

destoer commented Dec 14, 2023

Im having some computer trouble atm but i will have a look when i solve it. i havent tested it on the new cs update, what is your OS that the server is on just for interest?

@asapverneri
Copy link
Author

Im having some computer trouble atm but i will have a look when i solve it. i havent tested it on the new cs update, what is your OS that the server is on just for interest?

Im running windows server 2022 if i remember correctly. No rush or anything.

@destoer
Copy link
Owner

destoer commented Dec 14, 2023

Theres been issues with remove weapons on windows before

@destoer
Copy link
Owner

destoer commented Jan 9, 2024

the offending crashing code has been gated in a recent patch (NOTE: this does not mean the plugin works properly, just that it no longer crashes)

  1. Remove weapons, which i believe is a signature issue playerController.RemoveWeapons on Windows roflmuffin/CounterStrikeSharp#250
  2. OnTakeDamage hook doesn't work on any plugins on windows, the exact cause of this is not known at present

@destoer
Copy link
Owner

destoer commented Jan 22, 2024

Remove weapons is now fixed, unsure on OnTakeDamage status

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants