Forum

Ack server crash

Discuss programming in the QuakeC language.

Moderator: InsideQC Admins

Ack server crash

Postby r00k » Sun Oct 29, 2006 11:51 pm

got a weird error with just a simple op code msg

STOREP_F 213(?] 730(B546L542) 0.0

any idea what this would be?

im thinging its accessing a pointer to a client entity thats invalid,
ie. game ends and its in the process of handling data in a link list as a player disconnects ??

:O
r00k
 
Posts: 1110
Joined: Sat Nov 13, 2004 10:39 pm

Postby Spike » Mon Oct 30, 2006 7:09 pm

please do three things.
1: give us the sourcecode for the function this occurs in.
2: tell us which qccompiler you are using
3: tell us which engine you are using (not really the engine's fault, but helps for debugging).

I believe this most commonly happens as the result of a mismatched type in a function call somewhere, so make sure you fix the warnings your qcc gives (and if it doesn't give any, use frikqcc or fteqcc).
Spike
 
Posts: 2892
Joined: Fri Nov 05, 2004 3:12 am
Location: UK

Postby r00k » Tue Oct 31, 2006 6:50 am

:)

I'm using Frikqcc, mostly i didnt report the fucntion cause it didnt report on in the error. Though after some tinkering, i have found it to crash again (tonight) in an inbeded linklist like
Code: Select all
xteam = boss.next_team;
while (xteam !=world)
{
    player = xteam.next_player;
    while (player !=world)
    {
       blah blah
       player = player.next_player;
    }
    xteam = xteam.next_team;
}


i have changed the while to a "for" loop maybe that will help
as the while got runaway loop errors, but only when xteam players were > 5, not sure why cause quake (proquake) crashes after 100,000 iterations for runaway loops :(
r00k
 
Posts: 1110
Joined: Sat Nov 13, 2004 10:39 pm

Postby venomus » Wed Nov 01, 2006 11:04 am

Are you sure both linked lists were set up properly? Might help to bprint some info on each iteration and do a condump.
venomus
 
Posts: 41
Joined: Tue May 24, 2005 4:54 pm


Return to QuakeC Programming

Who is online

Users browsing this forum: No registered users and 1 guest