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

SourceMod gives an annoying error each time I talk to my server's chat via the console #1632

Closed
4 of 6 tasks
ghost opened this issue Nov 5, 2021 · 4 comments
Closed
4 of 6 tasks

Comments

@ghost
Copy link

ghost commented Nov 5, 2021

Help us help you

  • I have checked that my issue doesn't exist yet.
  • I have tried my absolute best to reduce the problem-space and have provided the absolute smallest test-case possible.
  • I can always reproduce the issue with the provided description below.

Environment

  • Operating System version: Windows (Unknown specific version because the server is in a gameserver hosting provider)
  • Game/AppID (with version if applicable): 440
  • Current SourceMod version: 1.10.0.6512
  • Current SourceMod snapshot: N/A
  • Current Metamod: Source snapshot: N/A

Description

Each time I talk in my server with the say command via the console, it gives me the following error:

11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM] Exception reported: Invalid client index 0
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM] Blaming: basecomm.smx
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM] Call stack trace:
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM]   [0] ThrowNativeError
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM]   [1] Line 39, /home/builds/sourcemod/linux-1.10/build/plugins/basecomm/natives.sp::Native_IsClientGagged
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM]   [3] BaseComm_IsClientGagged
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM]   [4] Line 137, discord_utilities/forwards.sp::OnClientSayCommand

Problematic Code (or Steps to Reproduce)

1- Execute the command say <Anything> once your server is fully loaded
2- Magic

Logs

  • Please attach in separate files: game output, library logs, kernel logs, and any other supporting information.
  • In case of a crash, please attach minidump or dump analyze output.
11/05/2021 - 15:43:37: L 11/05/2021 - 15:43:37: [SM] Exception reported: Invalid client index 0
11/05/2021 - 15:43:37: L 11/05/2021 - 15:43:37: [SM] Blaming: basecomm.smx
11/05/2021 - 15:43:37: L 11/05/2021 - 15:43:37: [SM] Call stack trace:
11/05/2021 - 15:43:37: L 11/05/2021 - 15:43:37: [SM]   [0] ThrowNativeError
11/05/2021 - 15:43:37: L 11/05/2021 - 15:43:37: [SM]   [1] Line 39, /home/builds/sourcemod/linux-1.10/build/plugins/basecomm/natives.sp::Native_IsClientGagged
11/05/2021 - 15:43:37: L 11/05/2021 - 15:43:37: [SM]   [3] BaseComm_IsClientGagged
11/05/2021 - 15:43:37: L 11/05/2021 - 15:43:37: [SM]   [4] Line 137, discord_utilities/forwards.sp::OnClientSayCommand
11/05/2021 - 15:43:37: Console: corruped barney
11/05/2021 - 15:43:43: *DEAD* Haito: Barney?
11/05/2021 - 15:43:51: Client "♫" connected (censored).
11/05/2021 - 15:43:52: twitch.tv/carita_cp: ez
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM] Exception reported: Invalid client index 0
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM] Blaming: basecomm.smx
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM] Call stack trace:
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM]   [0] ThrowNativeError
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM]   [1] Line 39, /home/builds/sourcemod/linux-1.10/build/plugins/basecomm/natives.sp::Native_IsClientGagged
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM]   [3] BaseComm_IsClientGagged
11/05/2021 - 15:43:53: L 11/05/2021 - 15:43:53: [SM]   [4] Line 137, discord_utilities/forwards.sp::OnClientSayCommand
11/05/2021 - 15:43:53: Console: barney de half life/black mesa
11/05/2021 - 15:43:54: *DEAD* Haito: Ah
11/05/2021 - 15:43:58: L 11/05/2021 - 15:43:58: [SM] Exception reported: Invalid client index 0
11/05/2021 - 15:43:58: L 11/05/2021 - 15:43:58: [SM] Blaming: basecomm.smx
11/05/2021 - 15:43:58: L 11/05/2021 - 15:43:58: [SM] Call stack trace:
11/05/2021 - 15:43:58: L 11/05/2021 - 15:43:58: [SM]   [0] ThrowNativeError
11/05/2021 - 15:43:58: L 11/05/2021 - 15:43:58: [SM]   [1] Line 39, /home/builds/sourcemod/linux-1.10/build/plugins/basecomm/natives.sp::Native_IsClientGagged
11/05/2021 - 15:43:58: L 11/05/2021 - 15:43:58: [SM]   [3] BaseComm_IsClientGagged
11/05/2021 - 15:43:58: L 11/05/2021 - 15:43:58: [SM]   [4] Line 137, discord_utilities/forwards.sp::OnClientSayCommand
11/05/2021 - 15:43:58: Console: a
@ghost ghost changed the title Sourcemod gives an annoying error each time I talk to my server's chat via the console SourceMod gives an annoying error each time I talk to my server's chat via the console Nov 5, 2021
@peace-maker
Copy link
Member

This appears to be an issue with your discord_utilities plugin, which is using the BaseComm_IsClientGagged native incorrectly. That's why it blames basecomm.smx.

Check that plugin :)

@ghost
Copy link
Author

ghost commented Nov 5, 2021

Oooh, I thought it was two different errors, one in basecomm's side and the other on discord_utilities. I wouldn't have done this issue if I knew that the issue wasn't from SourceMod hehe, thanks for the quick response!

@asherkin
Copy link
Member

asherkin commented Nov 5, 2021

Thanks for the bug report though - you did find an issue with the error logging.

@ghost
Copy link
Author

ghost commented Nov 5, 2021

Wait, I did? Lmao, that's funny. Glad it helped :)

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