Ulysses Stuff > General Chat & Help and Support
Serious Issue, No Clue How To Fix
JamminR:
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.
guushiyt:
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.
guushiyt:
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
Timmy:
--- Code: ---[ERROR] addons/ulib/lua/ulib/server/ucl.lua:1043: attempt to call upvalue 'playerAuth' (a nil value)
--- End code ---
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.
--- Quote from: guushiyt on July 26, 2019, 12:18:18 PM ---It happens after a player connects to the server usually after nobody is on the server for a long period of time.
--- End quote ---
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: ---sv_hibernate_think 1
--- End code ---
Disable autorefresh
Add the following option to your server startup command:
--- Code: --- -disableluarefresh
--- End code ---
Restart your server to apply these changes.
--- Quote from: guushiyt on April 28, 2019, 05:32:33 AM ---Once this happens...the server gets laggy...
--- End quote ---
An uptime of 6+ hours will (also) cause jitter. Source: see "Note" on https://wiki.facepunch.com/gmod/Global.CurTime.
JamminR:
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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version