Author Topic: Garrysmod update, perhaps broke IsMuted?  (Read 4941 times)

0 Members and 2 Guests are viewing this topic.

Offline ambro

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Garrysmod update, perhaps broke IsMuted?
« on: April 08, 2013, 09:01:29 PM »
[ERROR] addons/ulx/lua/ulx/cl_lib.lua:66: attempt to call method 'IsMuted' (a nil value)
  1. gagUser - addons/ulx/lua/ulx/cl_lib.lua:66
   2. Function - addons/ulx/lua/ulx/cl_lib.lua:74
    3. unknown - lua/includes/modules/usermessage.lua:87


[ERROR] addons/ulx/lua/ulx/cl_lib.lua:66: attempt to call method 'IsMuted' (a nil value)
  1. gagUser - addons/ulx/lua/ulx/cl_lib.lua:66
   2. Function - addons/ulx/lua/ulx/cl_lib.lua:74
    3. unknown - lua/includes/modules/usermessage.lua:87

Disconnect: "Too many Lua Errors! Sorry!".
Disconnect: "Too many Lua Errors! Sorry!".

Just today, new garrysmod update, I had unmuted on my server and everyone crashed with this error, we don't have any modifications done to the base ulx code, not sure what would cause this, any ideas?

Offline ambro

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #1 on: April 08, 2013, 09:05:02 PM »
Errors i'm logging for users on the server...

Vines|12|STEAM_0:1:38689293

[ERROR] addons/ulx/lua/ulx/cl_lib.lua:66: attempt to call method 'IsMuted' (a nil value)
  1. gagUser - addons/ulx/lua/ulx/cl_lib.lua:66
   2. Function - addons/ulx/lua/ulx/cl_lib.lua:74
    3. unknown - lua/includes/modules/usermessage.lua:87



TheAwesomePeanut|10|STEAM_0:0:55698841

[ERROR] addons/ulx/lua/ulx/cl_lib.lua:66: attempt to call method 'IsMuted' (a nil value)
  1. gagUser - addons/ulx/lua/ulx/cl_lib.lua:66
   2. Function - addons/ulx/lua/ulx/cl_lib.lua:74
    3. unknown - lua/includes/modules/usermessage.lua:87

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #2 on: April 09, 2013, 05:46:17 AM »
Noted: https://github.com/Nayruden/Ulysses/issues/193

We'll get to it as soon as we can.
Experiencing God's grace one day at a time.

Offline ambro

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #3 on: April 09, 2013, 08:50:32 AM »
Thanks Megiddo.

Offline ambro

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #4 on: April 23, 2013, 11:52:40 AM »
Just out of curiosity, has this been addressed? I'm still having players occasionally crash with Lua errors when we're gagging players. I've tried a new fresh install from SVN, even tried dumping our data and starting anew yet the problem still exists.

Is "IsMuted" in fact removed from garrys latest build?

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #5 on: April 23, 2013, 11:57:56 AM »
I may have time to get to it tonight. We'll see! :)
Experiencing God's grace one day at a time.

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #6 on: April 23, 2013, 03:40:13 PM »
Just tested it on my server and it's working fine. What gamemode is this?
Experiencing God's grace one day at a time.

Offline ambro

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #7 on: April 23, 2013, 11:45:52 PM »
This is occurring in TTT gamemode, looks like its occuring on two different lines, sometimes on line 66, others on line 60 of ULX cl_lib.lua

When or why it occurs is sort of random and beyond my understanding, I had it occur once when I had gagged a group of people, the map changed to a new map and as soon as I attempted to ungag, everyone crashed with this error.

Lucifer|12|STEAM_0:0:25960481

[ERROR] addons/ulx/lua/ulx/cl_lib.lua:66: attempt to call method 'IsMuted' (a nil value)
  1. gagUser - addons/ulx/lua/ulx/cl_lib.lua:66
   2. Function - addons/ulx/lua/ulx/cl_lib.lua:74
    3. unknown - lua/includes/modules/usermessage.lua:87

Dasher_72|21|STEAM_0:0:43228593

[ERROR] addons/ulx/lua/ulx/cl_lib.lua:60: attempt to call method 'IsMuted' (a nil value)
  1. gagUser - addons/ulx/lua/ulx/cl_lib.lua:60
   2. Function - addons/ulx/lua/ulx/cl_lib.lua:74
    3. unknown - lua/includes/modules/usermessage.lua:87


Offline ambro

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #8 on: April 25, 2013, 12:51:20 AM »
It's worth noting that this doesn't happen immediately, it can take some time but eventually after gagging other players, switching maps, it should surface, I just don't understand what's causing IsMuted to suddenly break, makes no sense really.

It's frustrating because every day I look at the logs, I'm seeing a lot of users crashing with this lua error (we have to gag people a lot)

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #9 on: April 25, 2013, 11:29:55 AM »
Why are you kicking people on errors, then?
Experiencing God's grace one day at a time.

Offline ambro

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #10 on: April 25, 2013, 04:08:46 PM »
I don't believe adding sv_kickerrornum 0 is an adequate solution to the problem as it's a bandaid to the underlying issue.

I do appreciate all of your efforts in debugging this, were you able to test this in the TTT game mode?
« Last Edit: April 25, 2013, 04:18:34 PM by ambro »

Offline Megiddo

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 6214
  • Karma: 394
  • Project Lead
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #11 on: April 25, 2013, 07:29:52 PM »
I don't have the ability to track down a seemingly random bug happening on one person's server, no. :P

But, since it's a core garrysmod function, it should either work all the time or never. There's not much we can do for you if something is causing your garrysmod library to be unstable. The only thing I could think of that would be our fault and result in the problem you describe is if someone disconnects before the muted message gets to the clients; but that should be an exceedingly rare event (although one we should still check for).
Experiencing God's grace one day at a time.

Offline ambro

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #12 on: April 25, 2013, 09:55:00 PM »
Megiddo,

Thank you for the feedback, I will see if I can look further into this issue myself, if I do end up finding a solution, I will post it here.

Thanks again

Offline LuaTenshi

  • Hero Member
  • *****
  • Posts: 545
  • Karma: 47
  • Just your ordinary moon angel!
    • Mirai.Red
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #13 on: April 26, 2013, 07:33:39 AM »
Megiddo,

Thank you for the feedback, I will see if I can look further into this issue myself, if I do end up finding a solution, I will post it here.

Thanks again

I have had a similar problem... and apparently some times commands like to hide them selves from clients, I am guessing its a malfunction in Garry's Anti Cheat system, but I am not sure. Moving the function over to shared and doing if(SERVER) then ... end should fix it.

I will put a copy of the code where I worked around this error later today.
I cry every time I see that I am not a respected member of this community.

Offline ambro

  • Newbie
  • *
  • Posts: 21
  • Karma: 2
Re: Garrysmod update, perhaps broke IsMuted?
« Reply #14 on: April 26, 2013, 10:06:25 AM »
I have had a similar problem... and apparently some times commands like to hide them selves from clients, I am guessing its a malfunction in Garry's Anti Cheat system, but I am not sure. Moving the function over to shared and doing if(SERVER) then ... end should fix it.

I will put a copy of the code where I worked around this error later today.

Hellfox, great! I wouldn't have thought of that but it does make sense, I've noticed that if you try to call certain functionality too soon within an event, it will act as if the function itself doesn't exist, rather annoying!

I look forward to your work-around.

Cheers.