Skip to content

Plugins calling RTD2_DisableModulePerks on server shutdown generate errors #126

@naydef

Description

@naydef

Bug description

Seemingly on server shutdown the following errors get printed in logs (yes, those are custom RTD effect plugins):

L 08/28/2024 - 04:01:59: [SM] Blaming: Gameplay\RTD\Extra\cnecgaming_rtd_perks.smx
L 08/28/2024 - 04:01:59: [SM] Call stack trace:
L 08/28/2024 - 04:01:59: [SM]   [0] RTD2_DisableModulePerks
L 08/28/2024 - 04:01:59: [SM]   [1] Line 129, Gameplay/RTD/Extra/cnecgaming_rtd_perks.sp::OnPluginEnd
L 08/28/2024 - 04:01:59: [SM] Exception reported: Plugin owning this native is currently paused.
L 08/28/2024 - 04:01:59: [SM] Blaming: Gameplay\RTD\Extra\rtd2_bleeder.smx
L 08/28/2024 - 04:01:59: [SM] Call stack trace:
L 08/28/2024 - 04:01:59: [SM]   [0] RTD2_DisableModulePerks
L 08/28/2024 - 04:01:59: [SM]   [1] Line 64, Gameplay/RTD/Extra/rtd2_bleeder.sp::OnPluginEnd
L 08/28/2024 - 04:01:59: [SM] Exception reported: Plugin owning this native is currently paused.
L 08/28/2024 - 04:01:59: [SM] Blaming: Gameplay\RTD\Extra\rtd2_bombingrun.smx
L 08/28/2024 - 04:01:59: [SM] Call stack trace:
L 08/28/2024 - 04:01:59: [SM]   [0] RTD2_DisableModulePerks
L 08/28/2024 - 04:01:59: [SM]   [1] Line 135, Gameplay/RTD/Extra/rtd2_bombingrun.sp::OnPluginEnd
L 08/28/2024 - 04:01:59: [SM] Exception reported: Plugin owning this native is currently paused.
L 08/28/2024 - 04:01:59: [SM] Blaming: Gameplay\RTD\Extra\rtd2_bouncy.smx
L 08/28/2024 - 04:01:59: [SM] Call stack trace:
L 08/28/2024 - 04:01:59: [SM]   [0] RTD2_DisableModulePerks
L 08/28/2024 - 04:01:59: [SM]   [1] Line 65, Gameplay/RTD/Extra/rtd2_bouncy.sp::OnPluginEnd
L 08/28/2024 - 04:01:59: [SM] Exception reported: Plugin owning this native is currently paused.
L 08/28/2024 - 04:01:59: [SM] Blaming: Gameplay\RTD\Extra\rtd2_eexit.smx
L 08/28/2024 - 04:01:59: [SM] Call stack trace:
L 08/28/2024 - 04:01:59: [SM]   [0] RTD2_DisableModulePerks
L 08/28/2024 - 04:01:59: [SM]   [1] Line 85, Gameplay/RTD/Extra/rtd2_eexit.sp::OnPluginEnd
...

All the plugins have in common is having this code:

public void OnPluginEnd()
{
	RTD2_DisableModulePerks();
}

This error shows every time the server gets restarted.
[SM] Value of cvar "sm_rtd2_version": "2.5.3"

Report checks

Please describe the bug in the section above, then post it and tick the correct boxes below.

Required

  • The bug does not have an open issue.
  • I have described the bug.
  • I mentioned whether the bug is sporadic or systematic.

Optional

  • Steps to reproduce the bug are known and have been described.
  • I have access to server error logs and have provided them, if any.
  • I am able to check the RTD version (sm_cvar sm_rtd2_version) and have specified it.
  • I have access to RTD default configuration file (rtd2_perks.default.cfg) and can confirm it's the one bundled with plugin release archive.
  • I have access to RTD custom configuration file (rtd2_perks.custom.cfg or other) and have attached it to this issue.
  • The issue is related to a particular perk, which has been specified by a label.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions