thecannons / Insurgency-dy-sourcemod

Updated folder structure
30 stars 21 forks source link

Exceptions in c_dy_respawn_naong_ai_director #34

Open OlliC opened 4 years ago

OlliC commented 4 years ago

Hi,

i am running a server with The Armory: Expandend - 35 Angry Bots Mod + Medic support and see alot of exceptions from the plugin c_dy_respawn_naong_ai_director.smx in the logs.

[SM] Exception reported: Client index 0 is invalid
[SM] Blaming: c_dy_respawn_naong_ai_director.smx
[SM] Call stack trace:
[SM]   [0] GetClientTeam
[SM]   [1] Line 9441, c_dy_respawn_naong_ai_director.sp::GrenadeScreamCheckTimer

[SM] Exception reported: Entity index 0 is not a valid client
[SM] Blaming: c_dy_respawn_naong_ai_director.smx
[SM] Call stack trace:
[SM]   [0] SDKCall
[SM]   [1] Line 6441, c_dy_respawn_naong_ai_director.sp::RespawnPlayerRevive

[SM] Exception reported: Client index 1986359840 is invalid
[SM] Blaming: c_dy_respawn_naong_ai_director.smx
[SM] Call stack trace:
[SM]   [0] PrintHintText
[SM]   [1] Line 6228, c_dy_respawn_naong_ai_director.sp::Event_PlayerDeath
[SM]   [3] ForcePlayerSuicide
[SM]   [4] Line 2644, c_dy_respawn_naong_ai_director.sp::Timer_CheckEnemyAway
[SM] Exception reported: Stack leak detected: sp:259452 should be 259444!

Is this something that can be fixed?

NullifidianSF commented 3 years ago

Here fixes for top 2: https://pastebin.com/raw/Gk0XX1QD

Others you can try copy from modified version that I use (it got fixes, added/removed things for my servers): https://pastebin.com/raw/x7Vy3Lei

thecannons commented 3 years ago

Thanks! Glad you were able to fix it. If I have time I'll look into updating the code.

On Tue, Jan 12, 2021 at 2:49 PM NullifidianSF notifications@github.com wrote:

Here fixes for top 2: https://pastebin.com/raw/Gk0XX1QD

Others you can try copy from modified version that I use (it got fixes, added/removed things for my servers): https://pastebin.com/raw/x7Vy3Lei

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Daimyo21/Insurgency-dy-sourcemod/issues/34#issuecomment-758966035, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAS7FGZG3CSYRPJ63IKODVTSZSYWPANCNFSM4KGDQ37Q .

SnapoRazIT commented 3 years ago

Hi Daimyo, me too am an enthusiast of your Insurgency plugins. I followed the suggestion from Nullifidian and resolved some issues in the excellent c_dy_respawn_naong_ai_director.smx running in our Bradipi Urlanti server. There are still some occurence of exceptions that lead sometimes to a server crash tough, here an example :

[SM] Blaming: c_dy_respawn_naong_ai_director.smx
[SM] Call stack trace:
[SM]   [0] GetClientTeam
[SM]   [1] Line 6043, c_dy_respawn_naong_ai_director.sp::Event_PlayerDeath
[SM] Exception reported: Client index 0 is invalid
[SM] Blaming: c_dy_respawn_naong_ai_director.smx
[SM] Call stack trace:
[SM]   [0] GetClientTeam
[SM]   [1] Line 6043, c_dy_respawn_naong_ai_director.sp::Event_PlayerDeath
[SM] Exception reported: Client index 544370534 is invalid
[SM] Blaming: c_dy_respawn_naong_ai_director.smx
[SM] Call stack trace:
[SM]   [0] PrintHintText
[SM]   [1] Line 6230, c_dy_respawn_naong_ai_director.sp::Event_PlayerDeath
[SM]   [3] ForcePlayerSuicide
[SM]   [4] Line 4242, c_dy_respawn_naong_ai_director.sp::Event_ControlPointCaptured_Pre
[SM] Exception reported: Stack leak detected: sp:856820 should be 372988!
[SM] Exception reported: Invalid plugin address
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the heap
[SM] Exception reported: Not enough space on the stack
[SM] Exception reported: Not enough space on the stack
[SM] Exception reported: Not enough space on the stack
.............

Another recurring issue:


[SM] Exception reported: Array index out-of-bounds (index -1, limit 13)
[SM] Blaming: c_dy_respawn_naong_ai_director.smx
[SM] Call stack trace:
[SM]   [1] Line 3244, c_dy_respawn_naong_ai_director.sp::CheckSpawnPointPlayers
[SM]   [2] Line 3567, c_dy_respawn_naong_ai_director.sp::Event_Spawn
[SM] Exception reported: Array index out-of-bounds (index -1, limit 13)
[SM] Blaming: c_dy_respawn_naong_ai_director.smx
[SM] Call stack trace:
[SM]   [1] Line 3244, c_dy_respawn_naong_ai_director.sp::CheckSpawnPointPlayers
[SM]   [2] Line 3572, c_dy_respawn_naong_ai_director.sp::Event_Spawn
[SM] Exception reported: Array index out-of-bounds (index -1, limit 13)
[SM] Blaming: c_dy_respawn_naong_ai_director.smx
[SM] Call stack trace:
[SM]   [1] Line 3244, c_dy_respawn_naong_ai_director.sp::CheckSpawnPointPlayers
[SM]   [2] Line 3572, c_dy_respawn_naong_ai_director.sp::Event_Spawn
[SM] Exception reported: Array index out-of-bounds (index -1, limit 13)
[SM] Blaming: c_dy_respawn_naong_ai_director.smx
[SM] Call stack trace:
[SM]   [1] Line 3079, c_dy_respawn_naong_ai_director.sp::CheckSpawnPoint
[SM]   [2] Line 3360, c_dy_respawn_naong_ai_director.sp::GetSpawnPoint_SpawnPoint
[SM]   [3] Line 3463, c_dy_respawn_naong_ai_director.sp::GetSpawnPoint
[SM]   [4] Line 3471, c_dy_respawn_naong_ai_director.sp::TeleportClient
[SM]   [5] Line 3589, c_dy_respawn_naong_ai_director.sp::Event_Spawn

Any suggestion to fix those problems? Thank you in advance! Snap