Author Topic: Serious Issue, No Clue How To Fix  (Read 15143 times)

0 Members and 2 Guests are viewing this topic.

Offline guushiyt

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
Serious Issue, No Clue How To Fix
« on: April 28, 2019, 05:32:33 AM »
ULX version: <SVN> revision 356  (I've tried the one straight from github as well)

Gamemode : TTT

Lua Errors
This one seems to happen first.
[ERROR] gamemodes/terrortown/gamemode/cl_voice.lua:656: attempt to compare number with nil&nbsp;

1. Draw - gamemodes/terrortown/gamemode/cl_voice.lua:656&nbsp;

2. unknown - gamemodes/terrortown/gamemode/cl_hud.lua:350

And then this one is followed up afterwards upon connecting
[ERROR] Unauthed player&nbsp;

1. query - [C]:-1&nbsp;

2. sendDataTable - addons/ulx_master/lua/ulx/modules/xgui_server.lua:191&nbsp;

3. unknown - addons/ulx_master/lua/ulx/modules/xgui_server.lua:106&nbsp;

4. unknown - addons/ulx_master/lua/ulx/modules/xgui_server.lua:73&nbsp;

5. unknown - lua/includes/modules/concommand.lua:54

Once this happens, nobody has ranks, the server gets laggy and there is no HUD available. It usually fixes if I force map or restart. It is extremely random. I've tried everything from having absolutely no add-ons besides ULX/ULIB to completely reinstalling the server, etc. The host is from zap-hosting, and the OS is Linux. Any help would be very much appreciated because I have no clue what's going on.Honestly the server is as barebone as it gets, Vanilla TTT, so. No gamemode files are modified, and I've tried completely removing all add-ons besides ULX/ULIB like I said above.
« Last Edit: April 28, 2019, 05:36:48 AM by guushiyt »

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 803
  • Karma: 58
Re: Serious Issue, No Clue How To Fix
« Reply #1 on: April 28, 2019, 09:17:04 AM »
The original error stems from TTT itself, and appears to be thrown when a user is talking. Has the first error been thrown at all without ULX/ULib installed?

Any clue as to when this is thrown (what could be happening at the time) because "extremely random" isn't very helpful.

Also, do you have voice battery (voice drain) enabled in TTT?
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.

Offline guushiyt

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
Re: Serious Issue, No Clue How To Fix
« Reply #2 on: April 28, 2019, 07:54:46 PM »
It's not happening when people are talking. I've tested it on and off for a month, it literally happens right when you connect to the game, without talking.

Offline guushiyt

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
Re: Serious Issue, No Clue How To Fix
« Reply #3 on: May 03, 2019, 04:46:00 PM »
Does nobody seriously know how to fix this :(

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Serious Issue, No Clue How To Fix
« Reply #4 on: May 03, 2019, 07:59:45 PM »
Has the first error been thrown at all without ULX/ULib installed?
<CLIP>
Also, do you have voice battery (voice drain) enabled in TTT?

Not really, no.
You barely answered any of the previous person's questions that was trying to help you previously.

First error is likely not a ULX error caused error. It's something to do with (apparently, a client-side) file that monitors for voice or chat or similar on TTT or a TTT plugin.
Just because it happens at startup and not when someone is talking doesn't mean you shouldn't provide more information to help us help you.

"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline guushiyt

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
Re: Serious Issue, No Clue How To Fix
« Reply #5 on: May 04, 2019, 07:44:51 AM »
Voice drain is not enabled. I don't know what more information to give lol. Those are the 2 errors that it's spitting out, and it literally only happens when you first connect to the server. Sometimes I have to do a full restart or force map via console to fix it. Sometimes as well when it happens, everyone freezes and can't move or anything. All the config is pure vanilla config, I've tested it with just ULX/ULIB and it still happened, so I have no idea.

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Serious Issue, No Clue How To Fix
« Reply #6 on: May 05, 2019, 04:18:36 AM »
ULX version: <SVN> revision 356  (I've tried the one straight from github as well)

That doesn't seem right.

ULX stopped displaying versions in that format since commit 28a28a2 (dated Nov 19, 2015)…

If you have the latest version of ULX and ULib, running "ulx version" in the console should give you ULib v2.63 and ULX v3.73.
« Last Edit: May 05, 2019, 05:27:01 AM by Timmy »

Offline guushiyt

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
Re: Serious Issue, No Clue How To Fix
« Reply #7 on: July 23, 2019, 10:38:52 AM »
So yeah, months later, still have no clue what to do about this issue. It's annoying having to restart or force map to fix it for it to only break randomly again.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Serious Issue, No Clue How To Fix
« Reply #8 on: July 23, 2019, 02:34:40 PM »
Months later and we're still here trying to help, but me personally, now wondering if our time is worth it.
Once again, someone addressed a valid concern in a previos post, and never got any type of response.
It wasn't a direct question, but if I were asking for help in troubleshooting an issue, I would have responded with information regarding the concern.
Repeat...
That doesn't seem right.

ULX stopped displaying versions in that format since commit 28a28a2 (dated Nov 19, 2015)…

If you have the latest version of ULX and ULib, running "ulx version" in the console should give you ULib v2.63 and ULX v3.73.

And, a new question.
Does the TTT error still occur before player unauthed?
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline guushiyt

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
Re: Serious Issue, No Clue How To Fix
« Reply #9 on: July 24, 2019, 07:13:52 AM »
The error does not occur before then no. Once unauthed happens it pretty much breaks everything entirely, and I checked the version, it is 3.73d, both ulib and ulx is up to date. I downloaded the latest versions on github.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Serious Issue, No Clue How To Fix
« Reply #10 on: July 24, 2019, 03:41:12 PM »
An unauthed player would not break other lua functions.
Something else would break or be corrupt, causing an unauthed player message.
Any other lua errors on server or client leading up to the player connect, or after the unauth?
I theorize something is breaking the hook system, and as you say, everything else.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline guushiyt

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
Re: Serious Issue, No Clue How To Fix
« Reply #11 on: July 26, 2019, 12:18:18 PM »
Unuathed player happens and then this error is also spammed afterwards
town/gamemode/cl_voice.lua:656: attempt to compare number with nil
  1. Draw - gamemodes/terrortown/gamemode/cl_voice.lua:656
   2. unknown - gamemodes/terrortown/gamemode/cl_hud.lua:350


As I said. It happens after a player connects to the server usually after nobody is on the server for a long period of time. The first person to connect will break it.

Offline guushiyt

  • Newbie
  • *
  • Posts: 20
  • Karma: 1
Re: Serious Issue, No Clue How To Fix
« Reply #12 on: July 26, 2019, 12:21:13 PM »
The main first error to happen, directly after getting connected.
[ERROR] addons/ulib/lua/ulib/server/ucl.lua:1043: attempt to call upvalue 'playerAuth' (a nil value)
1. fn - addons/ulib/lua/ulib/server/ucl.lua:1043
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:110
3. UniqueID - [C]:-1
4. echoToAdmins - addons/ulx/lua/ulx/log.lua:164
5. fn - addons/ulx/lua/ulx/log.lua:202
6. unknown - addons/ulib/lua/ulib/shared/hook.lua:110

Offline Timmy

  • Ulysses Team Member
  • Sr. Member
  • *****
  • Posts: 252
  • Karma: 168
  • Code monkey
Re: Serious Issue, No Clue How To Fix
« Reply #13 on: July 26, 2019, 11:09:18 PM »
Code: [Select]
[ERROR] addons/ulib/lua/ulib/server/ucl.lua:1043: attempt to call upvalue 'playerAuth' (a nil value)
So it is not third-party code, because that would consistently throw this error every time a player connects.

So it is not ULib, because ULib does not change playerAuth during a game session.

It happens after a player connects to the server usually after nobody is on the server for a long period of time.
I wonder if this has something to do with how Garry's Mod servers hibernate.

I can reproduce this error by forcing an autorefresh for ucl.lua (though not on the same line as you).

Maybe something is causing ucl.lua to refresh. The code in ucl.lua is not supposed to run more than once.

Can you try the following:

Disable hibernation
Add the following line to your server.cfg file:
Code: [Select]
sv_hibernate_think 1
Disable autorefresh
Add the following option to your server startup command:
Code: [Select]
-disableluarefresh
Restart your server to apply these changes.

Once this happens...the server gets laggy...
An uptime of 6+ hours will (also) cause jitter. Source: see "Note" on https://wiki.facepunch.com/gmod/Global.CurTime.
« Last Edit: April 23, 2020, 01:05:21 PM by Timmy »

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: Serious Issue, No Clue How To Fix
« Reply #14 on: July 27, 2019, 07:24:16 AM »
Thanks for finding the potential issue Timmy. Though i knew anecdotally that gmod didn't "like" running long time, I wasn't aware of the actual noted engine issue.

Guushiyt, please try the settings timmy provided and get back with us.
We understand it may need a week or two.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming