halflife icon indicating copy to clipboard operation
halflife copied to clipboard

Engine hangs whith endless loop at ED_ParseEdict

Open joropito opened this issue 13 years ago • 4 comments

If the map (a custom one) has something bad in his format (I don't know why this could happen) engine keeps running in an endless loop at ED_ParseEdict

The map: http://filesmelt.com/dl/bb_sonne.bsp

Here's the backtrace of the loop: #0 *__GI_strncpy (s1=0xbfb22e60 "", s2=0xb70c2420 "", n=254) at strncpy.c:83 #1 0xb7012b61 in SuckOutClassname (

data=0xb3c6ef79 "\n\"wad\" \"\\documents and settings\\eduardo\\desktop\\texturas\\halflife.wad;\\documents and settings\\eduardo\\desktop\\texturas\\cs_cbble.wad;\\documents and settings\\eduardo\\desktop\\texturas\\itsitaly.wad;\\docum"..., ent=0xb39d37c0) at ../engine/pr_edict.c:550

#2 ED_ParseEdict (

data=0xb3c6ef79 "\n\"wad\" \"\\documents and settings\\eduardo\\desktop\\texturas\\halflife.wad;\\documents and settings\\eduardo\\desktop\\texturas\\cs_cbble.wad;\\documents and settings\\eduardo\\desktop\\texturas\\itsitaly.wad;\\docum"..., ent=0xb39d37c0) at ../engine/pr_edict.c:260

#3 0xb7012f4b in ED_LoadFromFile (data=) at ../engine/pr_edict.c:430 #4 0xb7029216 in SV_LoadEntities () at ../engine/sv_main.c:7597 #5 0xb6ff88c3 in Host_Changelevel_f () at ../engine/host_cmd.c:1578 #6 Host_Changelevel_f () at ../engine/host_cmd.c:1521 #7 0xb6fe024d in Cmd_ExecuteString () at ../engine/cmd.c:1143 #8 Cbuf_Execute () at ../engine/cmd.c:242 #9 0xb6ff6e10 in _Host_Frame (time=0.00106436398) at ../engine/host.c:1384 #10 0xb6ff71f2 in Host_Frame (time=0.00106436398, iState=1, stateInfo=0xbfb2358c) at ../engine/host.c:1522 #11 0xb701b7cc in CEngine::Frame (this=0xb70b26a0) at ../engine/sys_engine.cpp:245 #12 0xb7018b33 in CDedicatedServerAPI::RunFrame (this=0xb70add00) at ../engine/sys_dll2.cpp:1235 #13 CDedicatedServerAPI::RunFrame (this=0xb70add00) at ../engine/sys_dll2.cpp:1226 #14 0x08049c65 in RunServer () at ../dedicated/sys_ded.cpp:770 #15 0x08049472 in main (argc=24, argv=0xbfb237d4) at ../dedicated/sys_ded.cpp:1150

joropito avatar Jun 09 '13 15:06 joropito

Looks like the same reason: #1200

xPaw avatar Jun 09 '13 15:06 xPaw

I don't get such warning but maybe it's related.

Hello xPaw! :P

joropito avatar Jun 09 '13 15:06 joropito

Take a look at backtrace, looks same to me.

xPaw avatar Jun 09 '13 15:06 xPaw

Looks the same to me too!

johndrinkwater avatar Jun 09 '13 15:06 johndrinkwater