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

Error in log #201

Open
JakubKosmaty opened this issue Jul 17, 2018 · 3 comments
Open

Error in log #201

JakubKosmaty opened this issue Jul 17, 2018 · 3 comments
Labels

Comments

@JakubKosmaty
Copy link

L 07/17/2018 - 19:58:31: [SM] Exception reported: Plugin handle 510051 is invalid (error 1)
L 07/17/2018 - 19:58:31: [SM] Blaming: arena/multi1v1.smx
L 07/17/2018 - 19:58:31: [SM] Call stack trace:
L 07/17/2018 - 19:58:31: [SM] [0] Call_StartFunction
L 07/17/2018 - 19:58:31: [SM] [1] Line 199, multi1v1/natives.sp::Native_GivePlayerArenaWeapons
L 07/17/2018 - 19:58:31: [SM] [3] Multi1v1_GivePlayerArenaWeapons
L 07/17/2018 - 19:58:31: [SM] [4] Line 795, C:\Users\Admin\Desktop\New Arena\multi1v1.sp::SetupPlayer
L 07/17/2018 - 19:58:31: [SM] [5] Line 694, C:\Users\Admin\Desktop\New Arena\multi1v1.sp::Event_OnRoundPostStart

  • Plugin version: 1.1.10-dev
  • Sourcemod version: 6245
@splewis
Copy link
Owner

splewis commented Jul 22, 2018

Plugin version: 1.1.10-dev

Can you give an exact version? What commit is this compiled from?

Are there steps to reproduce this? This isn't necessarily a multi1v1 problem, it could be another plugin that registers its own round types via Multi1v1_AddRoundType. I don't have enough information to know, though.

@JakubKosmaty
Copy link
Author

@splewis Latest version on github.

I'm using these plugins to add rounds.

Plugins.zip

@splewis splewis added the bug label Aug 26, 2018
@johto
Copy link

johto commented Oct 21, 2018

I've been seeing this on my server as well. My current theory is that this is caused by a plugin being reloaded automatically at map change because its timestamp has changed. As far as I can tell from reading Sourcemod code, this doesn't cause the OnAllPluginsLoaded forward to be called, and we could end up with an invalid handle in g_RoundTypeSourcePlugin.

I haven't tested this, but I think calling LoadRoundTypes() from our OnMapStart() should be enough to fix this. The old plugin handle would be invalidated by LevelInit, and OnMapStart is called later by ServerActivate.

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

No branches or pull requests

3 participants