wadeira / ckSurf

10 stars 10 forks source link

replay error log #6

Closed sneak-it closed 7 years ago

sneak-it commented 7 years ago

Oof, massive error log tonight. Got this, over the course of 5 minutes, but over 128,000 lines in the error log.

L 01/22/2017 - 01:38:52: [SM] Blaming: ckSurf.smx
L 01/22/2017 - 01:38:52: [SM] Call stack trace:
L 01/22/2017 - 01:38:52: [SM]   [0] GetArrayArray
L 01/22/2017 - 01:38:52: [SM]   [1] Line 789, ckSurf/replay.sp::PlayReplay
L 01/22/2017 - 01:38:52: [SM]   [2] Line 642, ckSurf/hooks.sp::OnPlayerRunCmd
L 01/22/2017 - 01:38:52: [SM] Exception reported: Invalid index 3 (count: 3)
wadeira commented 7 years ago

Can you send me the replay where this was happening?

sneak-it commented 7 years ago

Not sure if you saw me message it to you on steam, but here: https://drive.google.com/open?id=0B0IJtbqhEr_JanBRaldmUEFxRzA

Error spam occurred again on the same map, but for 8 minutes this time. Also occurred on another map, on another server, for 6 minutes.

sneak-it commented 7 years ago

Adding more information, still investigating. On the map that causes this error, even with ck_replay_bot 0 and ck_bonus_bot 0, I'm getting insane var.

  CPU   NetIn   NetOut    Uptime  Maps   FPS   Players  Svms    +-ms   ~tick
   0.0 241460.8 632567.3     999    53   16.47      23   60.69   14.03   11.56

More logging:

L 01/23/2017 - 22:25:40: [SM] Exception reported: Client index -1 is invalid
L 01/23/2017 - 22:25:40: [SM] Blaming: ckSurf.smx
L 01/23/2017 - 22:25:40: [SM] Call stack trace:
L 01/23/2017 - 22:25:40: [SM]   [0] IsFakeClient
L 01/23/2017 - 22:25:40: [SM]   [1] Line 3419, ckSurf/misc.sp::CountSpectators
L 01/23/2017 - 22:25:40: [SM]   [2] Line 2906, ckSurf/commands.sp::Command_Replay
L 01/23/2017 - 22:25:44: [SM] Exception reported: Client index -1 is invalid
L 01/23/2017 - 22:25:44: [SM] Blaming: ckSurf.smx
L 01/23/2017 - 22:25:44: [SM] Call stack trace:
L 01/23/2017 - 22:25:44: [SM]   [0] IsFakeClient
L 01/23/2017 - 22:25:44: [SM]   [1] Line 3419, ckSurf/misc.sp::CountSpectators
L 01/23/2017 - 22:25:44: [SM]   [2] Line 2906, ckSurf/commands.sp::Command_Replay
L 01/23/2017 - 22:31:21: [SM] Exception reported: Client index -1 is invalid
L 01/23/2017 - 22:31:21: [SM] Blaming: ckSurf.smx
L 01/23/2017 - 22:31:21: [SM] Call stack trace:
L 01/23/2017 - 22:31:21: [SM]   [0] IsFakeClient
L 01/23/2017 - 22:31:21: [SM]   [1] Line 3419, ckSurf/misc.sp::CountSpectators
L 01/23/2017 - 22:31:21: [SM]   [2] Line 2906, ckSurf/commands.sp::Command_Replay
sneak-it commented 7 years ago

111abbe seems to have fixed the CountSpectators issue.

Error log spam still exists (400,000 lines of this last night on different staged map now): :cry:

L 01/24/2017 - 23:03:50: [SM] Exception reported: Invalid index 2 (count: 2)
L 01/24/2017 - 23:03:50: [SM] Blaming: ckSurf.smx
L 01/24/2017 - 23:03:50: [SM] Call stack trace:
L 01/24/2017 - 23:03:50: [SM]   [0] GetArrayArray
L 01/24/2017 - 23:03:50: [SM]   [1] Line 789, ckSurf/replay.sp::PlayReplay
L 01/24/2017 - 23:03:50: [SM]   [2] Line 642, ckSurf/hooks.sp::OnPlayerRunCmd
sneak-it commented 7 years ago

Just more info, heavily degraded server performance seems to be occurring, sometimes along with this error in maps (linear and/or staged), the common denominator is multiple bonuses. Noticeably happens on surf_me as well as surf_4head. Seems to be caused by something that has changed with the replays, since base cksurf.

I'll be away until the 31st, so if you don't get a chance to look into it, when I get back I'll replace the replay system back with the old, and see if it still does it. The server var and cpu usage is insanely high, with only ~20 players.

wadeira commented 7 years ago

1da592c might fix this issue. Keep in mind that your replays are most likely broken and you need to test with new ones.

sneak-it commented 7 years ago

Unfortunately the issue still persists. All replays are playable, and it only occurs on maps that have 2 or more bonuses. I've gotten this error spammed on 10+ maps already.