Ulysses

Ulysses Stuff => General Chat & Help and Support => Topic started by: guushiyt on April 28, 2019, 05:32:33 AM

Title: Serious Issue, No Clue How To Fix
Post by: guushiyt 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.
Title: Re: Serious Issue, No Clue How To Fix
Post by: iViscosity 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?
Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt 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.
Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt on May 03, 2019, 04:46:00 PM
Does nobody seriously know how to fix this :(
Title: Re: Serious Issue, No Clue How To Fix
Post by: JamminR 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.

Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt 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.
Title: Re: Serious Issue, No Clue How To Fix
Post by: Timmy 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 (https://github.com/TeamUlysses/ulx/commit/28a28a206117fcff25839a5f429c855884fc1fdc) (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.
Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt 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.
Title: Re: Serious Issue, No Clue How To Fix
Post by: JamminR 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 (https://github.com/TeamUlysses/ulx/commit/28a28a206117fcff25839a5f429c855884fc1fdc) (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?
Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt 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.
Title: Re: Serious Issue, No Clue How To Fix
Post by: JamminR 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.
Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt 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.
Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt 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
Title: Re: Serious Issue, No Clue How To Fix
Post by: Timmy 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.
Title: Re: Serious Issue, No Clue How To Fix
Post by: JamminR 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.
Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt on July 27, 2019, 07:28:09 AM
I've added it to the CFG, the issue is really random sometimes so we'll find out soon if it's fixed, thanks for the help tho guys appreciate it. Hopefully this is what it is.
Title: Re: Serious Issue, No Clue How To Fix
Post by: Timmy on July 27, 2019, 07:33:37 AM
Sorry. My instructions to disable autorefresh were outdated. I have updated my previous post.
Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt on July 27, 2019, 09:42:40 AM
With my host they don't allow me to edit the commandline for whatever reason. Can I just put disableluarefresh in autoexec.cfg?
Title: Re: Serious Issue, No Clue How To Fix
Post by: Timmy on July 27, 2019, 10:00:39 AM
Unfortunately not. It must be added as a command line option.

You may need to ask your host to add it for you.
Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt on July 28, 2019, 08:15:29 PM
Waiting for my host to add it I'll get back to you shortly.
Title: Re: Serious Issue, No Clue How To Fix
Post by: guushiyt on August 03, 2019, 01:00:44 PM
Been added a few days now and so far no error, hoping for the best!
Title: Re: Serious Issue, No Clue How To Fix
Post by: Timmy on August 03, 2019, 02:00:29 PM
Good to hear! Thanks for the follow-up. :)