halflife icon indicating copy to clipboard operation
halflife copied to clipboard

Server freezes and doesn't restart after texture lump warning

Open xPaw opened this issue 13 years ago • 13 comments

One of my servers freezes and uses 100% cpu of a single core, and the last line in the log is:

WARNING: texture lump "NULL" not found

Pretty sure it should restart it self, and not freeze.

xPaw avatar Jun 06 '13 13:06 xPaw

Can you post a minidump from the hlds.exe process from this freeze.

alfred-valve avatar Jun 06 '13 16:06 alfred-valve

It didn't generate any minidumps.

xPaw avatar Jun 06 '13 16:06 xPaw

Right, you need to do that, when it is hung.

alfred-valve avatar Jun 06 '13 17:06 alfred-valve

Create dump file image

ghost avatar Jun 06 '13 17:06 ghost

Oh, that kind of dump. My server is running on Linux, not sure how I would do that.

xPaw avatar Jun 06 '13 17:06 xPaw

Connect gdb to the running process and type "bt" once it is broken. That will tell us where the hang is.

alfred-valve avatar Jun 06 '13 17:06 alfred-valve

Server froze, but there was no warning message, here's bt:

#0  0xf7de50e5 in strncpy () from /lib32/libc.so.6
#1  0xf784ab61 in SuckOutClassname (pEdict=0xf451d7c0, szInputStream=0x0) at ../engine/pr_edict.c:550
#2  ED_ParseEdict (
    data=0xf47036b9 "\n\"wad\" \"\\program files\\valve\\cstrike\\hlbasics.wad;\\program files\\valve\\cstrike\\null.wad;\\program files\\valve\\cstrike\\timeco
gram files\\valve"..., ent=0xf451d7c0) at ../engine/pr_edict.c:260
#3  0xf784af4b in ED_LoadFromFile (data=<optimized out>) at ../engine/pr_edict.c:430
#4  0xf7861216 in SV_LoadEntities () at ../engine/sv_main.c:7597
#5  0xf78308c3 in Host_Changelevel_f () at ../engine/host_cmd.c:1578
#6  Host_Changelevel_f () at ../engine/host_cmd.c:1521
#7  0xf781824d in Cmd_ExecuteString (text=0xffffcf00 "changelevel kz_kzlv_wanderer", src=<optimized out>) at ../engine/cmd.c:1143
#8  Cbuf_Execute () at ../engine/cmd.c:242
#9  0xf782ee10 in _Host_Frame (time=0.00882009696) at ../engine/host.c:1384
#10 0xf782f1f2 in Host_Frame (time=0.00882009696, iState=1, stateInfo=0xffffd3ec) at ../engine/host.c:1522
#11 0xf78537cc in CEngine::Frame (this=0xf78ea6a0) at ../engine/sys_engine.cpp:245
#12 0xf7850b33 in RunFrame (this=<optimized out>) at ../engine/sys_dll2.cpp:1235
#13 CDedicatedServerAPI::RunFrame (this=0xf78e5d00) at ../engine/sys_dll2.cpp:1226
#14 0x08049c65 in RunServer () at ../dedicated/sys_ded.cpp:770
#15 0x08049472 in main (argc=25, argv=0xffffd634) at ../dedicated/sys_ded.cpp:1150

xPaw avatar Jun 07 '13 17:06 xPaw

xPaw, do you know if this happen to you on specific maps?

I was debugging to get rid of this error and I found parsing error at ED_ParseEdict with some maps.

Here's an example of hexdump from entities field in bsp file

000003e0 6e 74 6f 73 5c 64 6f 77 6e 6c 6f 61 64 73 5c 62 |ntos\downloads\b| 000003f0 72 6d 61 70 70 65 72 73 2e 77 61 64 3b 5c 64 6f |rmappers.wad;\do| 00000400 63 75 6d 65 6e 74 73 7c 61 d8 1a 1c 78 12 32 41 |cuments|aØ..x.2A| 00000410 22 0a 22 6d 61 70 76 65 72 73 69 6f 6e 22 7c 22 |"."mapversion"|"|

It seems that some bytes inside "wad" breaks parsing

joropito avatar Jun 16 '13 20:06 joropito

I believe it's specific maps, didn't really bother checking logs for map names.

xPaw avatar Jun 16 '13 20:06 xPaw

Just to confirm, after modifying the map it loads fine.

The problem is with characters less than 0x00 (for signed char) or higher than 0x7f (for unsigned char) inside entity list from bsp file.

joropito avatar Jun 16 '13 21:06 joropito

@alfred-valve Could you please take a look on this issue, it's quite frustrating, I have to keep monitoring my servers because they keep freezing due to this.

xPaw avatar Jun 20 '13 13:06 xPaw

@xPaw , if you post links to some maps that reproduce the problem I may be able to look at it, but right now it sounds like a map/content bug.

alfred-valve avatar Aug 01 '13 00:08 alfred-valve

@alfred-valve https://forums.alliedmods.net/showthread.php?t=218751

This issue wasn't happening before recent updates, so it's definitely a bug in hlds.

xPaw avatar Aug 01 '13 08:08 xPaw