Lua Panic! Dedicated Server Rare Random Crash when changing map.
15 replies, posted
Hello so I have been having this strange random full server crash. This has only happened once in the past and happened again today,
So here's what happens before the crash occurs. The server runs the TTT gamemode it had about 30 players on when the crash occurred. The map was minecraft_b5 and it was the final round. When the final round is reached a map vote is displayed I am using this map vote [url]http://facepunch.com/showthread.php?t=1268353[/url] it works fine no errors and I have been using it for a month so I'm sure that's not the issue. The players voted to play on the same map again the vote was successfully and the console shows that is loaded the map perfectly ---- Host_Changelevel ---- it then loaded up ULX and a few other add-ons note there are not to many installed. After the all the addons were initialized it simply crashed.
Now there is no dump file source engine remains running however the server is unresponsive client of course then see the disconnect message I think they have like 40 sec before a timeout.
------------------------------------------------------------
The last thing shown in the console is this:
Lua Panic! Something went horribly wrong!
"attempt to index a nil value"
------------------------------------------------------------
I have searched everywhere to find out what could have gone wrong but I can find any answers as to how to solve this server problem, it seems very rare.
Up until that map change and crash there are no Lua errors.
The server is restarted every 2 days sometime it goes a bit longer but I usually restart because I have heard it's good to. It switches map every 12 round approximately every 2 hours 99% of the time it changes map without this crash occurring.
So please help me find out what this random crash is and how to solve it.
This is a pain in the ass because I'm not always around to restart the server.
The server it's self is beefy.
The server files are all up to date.
Also does anyone have a working script I believe its a batch file that auto restarts the server when srcds.exe crashes and what's the name of the cvar that sets the client side timeout / disconnect value.
And help in solving this would be greatly appreciated because I have exhausted my self trying to find out why I randomly becomes and responsive after a map change.
Do you have any .mdmp files in your server's root directory?
Root directory no crashes. Only a few crashes from 3-5 days ago. They were crashes caused by people flinging props out of the map causing source engine to crash I since fixed that by disabling people from flinging props far.
So no mdmp file is in the root from today.
However when I look in: dumps
I don't know why the hell the dump file is in that folder for it's the first time I have scene one in that folder.
I opened it up it decided to open up with Visual Studios. But I see no useful information when reading it.
Do you want me to upload that dmp file somewhere so you can view it ?
No, .dmp files only provide software info. Have you tried taking out some addons? This crash looks like it's caused by a simple lua error.
I don't actually have many server side addons.
Can you try running it with minimal addons or none and see if the problem still occurs?
Ok will I remove the majority of the addons installed. I will report back if that fixes it. It will be some time before I can report back because the bug is rare.
King remove qac add and get leyac or zedac just another ac
[QUOTE=Icejjfish;45244094]King remove qac add sv_allowcslua 0 to server.cfg and get leyac or zedac just another ac[/QUOTE]
Lol, why?
zedac is a mutation QAC in case you didn't know. don't bother buying it.
Ok so it happened again today completely random time and exactly after a map change. After most of my addons were removed.
Lua Panic! Something went horribly wrong!
"attempt to index a number value"
I looked in the console log of that day and only found a few Lua errors. I believe there is conflict with ULX and TTT but I'm not sure what could be causing it or why it's occurring more frequently.
Below are some of the Lua errors I found they may help resolve this crash.
Timer Failed! [Simple][@gamemodes/terrortown/gamemode/corpse.lua (line 438)]
[ERROR] gamemodes/terrortown/gamemode/ent_replace.lua:213: attempt to call method 'RoundStateTrigger' (a nil value)
1. TriggerRoundStateOutputs - gamemodes/terrortown/gamemode/ent_replace.lua:213
2. EndRound - gamemodes/terrortown/gamemode/init.lua:800
3. unknown - gamemodes/terrortown/gamemode/init.lua:321
[ERROR] addons/ulib/lua/ulib/server/entity_ext.lua:164: attempt to index local 'ent' (a number value)
1. fn - addons/ulib/lua/ulib/server/entity_ext.lua:164
2. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
3. CleanUpMap - [C]:-1
4. CleanUp - gamemodes/terrortown/gamemode/init.lua:383
5. unknown - gamemodes/terrortown/gamemode/init.lua:466
[ERROR] lua/includes/extensions/entity.lua:25: attempt to index local 'tab' (a function value)
1. __index - lua/includes/extensions/entity.lua:25
2. fn - addons/ulib/lua/ulib/server/entity_ext.lua:164
3. unknown - addons/ulib/lua/ulib/shared/hook.lua:183
4. CleanUpMap - [C]:-1
5. CleanUp - gamemodes/terrortown/gamemode/init.lua:383
6. unknown - gamemodes/terrortown/gamemode/init.lua:466
These errors are extremely spaced out at the start of the console log during some rounds there will not be a single error and bunch they up near the end of log before the crash or at the start of a round.
Is there anyway I can get the last Lua error before the crash occurs to help find what's causing it.
Edit it finally made a a mdump file before crash.
Dump Summary
------------
Last Write Time: 4/07/2014 6:44:46 a.m.
Process Name: srcds.exe : D:\Games\GMOD\srcds.exe
Process Architecture: x86
Exception Code: 0xC0000005
Exception Information: The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Heap Information: Not Present
Upload the mdmp file
1. That first error comes from passing a normal data-type into IsValid(). I am working on fixing that.
2. Stop modifying core files.
[QUOTE=Willox;45284436]Upload the mdmp file[/QUOTE]
Unhandled exception at 0x73BBA7A9 (vphysics.dll) in srcds_1678491_crash_2014_7_2T11_11_51C0.mdmp: 0xC0000005: Access violation reading location 0x00000000.
[editline]4th July 2014[/editline]
[QUOTE=code_gs;45284623]1. That first error comes from passing a normal data-type into IsValid(). I am working on fixing that.
2. Stop modifying core files.[/QUOTE]
Will this be in a server update or can I grab it earlier from a base.
And the only core TTT files I had modified are for custom HUD's and the Scoreboard
Reinstall your server then; you are getting a ton of default errors. As for the IsValid fix, it depends on when I can find a better optimization for it.
So I reinstalled my server last week the crashes seemed to be less frequent and it always restarted but now after the most recent update it's been crashing allot more. Today it crashed 3 times no Errors present in the console before crash.
All 3 crashes lead to this exception I assume their is no way to fix this.
Exception Code: 0xC0000005
Exception Information: The thread tried to read from or write to a virtual address for which it does not have the appropriate access.
Sorry, you need to Log In to post a reply to this thread.