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

Trampoline allocation error #17

Open
m0nsterJ opened this issue Aug 13, 2024 · 2 comments
Open

Trampoline allocation error #17

m0nsterJ opened this issue Aug 13, 2024 · 2 comments

Comments

@m0nsterJ
Copy link

first time trying to use the plugin and this occurred:
15:53:07 [EROR] (cssharp:PluginManager) Failed to load plugin from C:\Users\Administrator\Documents\cs2\game\csgo\addons\counterstrikesharp\plugins\CS2-Essentials\CS2-Essentials.dll CounterStrikeSharp.API.Core.NativeException: Invalid function pointer at CounterStrikeSharp.API.Core.ScriptContext.CheckErrors() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/ScriptContext.cs:line 176 at CounterStrikeSharp.API.Core.NativeAPI.HookFunction(IntPtr function, InputArgument hook, Boolean post) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/API.cs:line 1064 at hvhgg_essentials.Plugin.Load(Boolean hotReload) in /home/runner/work/CS2-Essentials/CS2-Essentials/CS2-Essentials/Plugin.cs:line 103 at CounterStrikeSharp.API.Core.Plugin.PluginContext.Load(Boolean hotReload) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/PluginContext.cs:line 218 at CounterStrikeSharp.API.Core.Plugin.Host.PluginManager.LoadPlugin(String path) in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/Host/PluginManager.cs:line 125 at CounterStrikeSharp.API.Core.Plugin.Host.PluginManager.Load() in /home/runner/work/CounterStrikeSharp/CounterStrikeSharp/managed/CounterStrikeSharp.API/Core/Plugin/Host/PluginManager.cs:line 93

@mrc4tt
Copy link

mrc4tt commented Aug 15, 2024

Update the plugin / gamedata. :-)

@m0nsterJ
Copy link
Author

m0nsterJ commented Aug 15, 2024

Okay the above error disappeared but I'm now facing this one, which makes weapon restrictions not work:
[HvH.gg] Register weapon restriction listeners [Info] - Trampoline - Bounds of relative addresses accessed [0xffffffffffffffff, 0x7812850a6d20] [Info] - Trampoline - Attempting to allocate trampoline within +-2GB range of [0xffffffffffffffff, 0x7812850a6d20] with a trampoline maximum size of 1000 [Warning] - Trampoline - Could not allocate trampoline within desired range. We currently can't relocate rip-relative instructions in this case! [Error] - Trampoline - The trampoline could not be allocated withing +-2GB range. The instructions at the hook address do contain rip-relative memory access. Relocating those is not supported when the trampoline is not in +-2GB range! [Error] - Detour - Failed to allocate trampoline

and yes there is sufficient memory on the ubuntu server.

@m0nsterJ m0nsterJ changed the title Plugin load fail Trampoline allocation error Aug 15, 2024
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