Nothing entered.
[http://sourceforge.net/p/ufoai/bugs/2368 Item 2368] imported from sourceforge.net tracker on 2013-01-28 19:30:37
tested in r28678
the issue is 100% re-producable.
There are 2 issues being presented here.
1. I can control a door from a few tiles away
2. when I control the door from too far, the system can segfault.
1. start the skirmish map estate
2. move unit 8 into the position as indicated in image 1. (note the unit may abandon movement at the door, this is a separate defect already raised)
3. close the door (backspace)
4. move to the position as indicated by image 2
5. open the door (backspace) - this triggers the segfault.
Program received signal SIGSEGV, Segmentation fault.
At Q:\ufoai\src\game\g_client.c:667
#0 0x6b448618 in G_ClientAction (player=0x144f78d4) at Q:\ufoai\src\game\g_client.c:667
door = 0x223e9818
action = PA_USE_DOOR
num = 22
pos = "\000\000"
i = 29
firemode = 593307268
from = 1
fx = 3994
fy = 0
to = 0
tx = 0
ty = 0
hand = ACTOR_HAND_NOT_SET
fmIdx = 3252682752
objIdx = 3269459968
resCrouch = 1132986368
resShot = 1065353216
ent = 0x223e7374
#1 0x005243a4 in SV_ExecuteClientMessage (cl=0x145254a4, cmd=5, msg=0x235d2684) at Q:\ufoai\src\server\sv_user.c:261
No locals.
#2 0x0051f8f3 in SV_ReadPacket (s=0x2318ee34) at Q:\ufoai\src\server\sv_main.c:435
cmd = 5
cl = 0x145254a4
msg = 0x235d2684
#3 0x00502137 in NET_Wait (timeout=0) at Q:\ufoai\src\common\net.c:457
s = 0x2318ee34
tv = {
tv_sec = 0,
tv_usec = 0
}
ready = 0
i = 4
read_fds_out = {
fd_count = 0,
fd_array = {0 <repeats 64 times>}
}
write_fds_out = {
fd_count = 0,
fd_array = {0 <repeats 64 times>}
}
#4 0x004f75c2 in Qcommon_Frame () at Q:\ufoai\src\common\common.c:1184
s = 0x0
time_to_next = 5
event = 0x1465de8c
#5 0x0051bcf9 in WinMain@16 (hInstance=0x400000, hPrevInstance=0x0, lpCmdLine=0x251f06 "", nCmdShow=10) at Q:\ufoai\src\ports\windows\win_main.c:358
No locals.
#6 0x005b3f56 in main ()
===== Comments Ported from Sourceforge =====
====== markhawrylak (2010-02-23 02:03:48) ======
segfault when opening door
====== tlh2000 (2010-02-23 06:27:29) ======
sv_send_edicts is a useful cvar to debug errors with doors. set it to 1 and restart the map.
====== tlh2000 (2010-02-23 06:54:34) ======
the error must be in G_ClientMove - the clientAction is not reset correctly
====== markhawrylak (2010-02-23 06:57:35) ======
when I set the cvar, then what? I imagine there is a log of output somewhere for this. help.
====== tlh2000 (2010-02-23 07:01:00) ======
no, it renders the bouding boxes of the doors and the actors. you can "see" when an actor enters a trigger area. make sure you use the latest revision for this.
====== tlh2000 (2010-02-23 07:01:55) ======
btw. the segfault should be fixed (in r28680) - but the long distance door action is not yet fixed.
====== markhawrylak (2010-02-23 07:09:09) ======
tested in r28680
sv_send_edicts 1 is not doing anything that I can notice.
Program received signal SIGSEGV, Segmentation fault.
At Q:\ufoai\src\game\g_client.c:672
#0 0x6b44864d in G_ClientAction (player=0x19d28034) at Q:\ufoai\src\game\g_client.c:672
door = 0x21f79818
action = PA_USE_DOOR
num = 22
pos = "\000\000"
i = 29
firemode = 341483492
from = 1
fx = 3994
fy = 0
to = 0
tx = 0
ty = 0
hand = ACTOR_HAND_NOT_SET
fmIdx = 3252682752
objIdx = 3269459968
resCrouch = 1132986368
resShot = 1065353216
ent = 0x21f77374
#1 0x00524434 in SV_ExecuteClientMessage (cl=0x1445d73c, cmd=5, msg=0x145a9fe4) at Q:\ufoai\src\server\sv_user.c:261
No locals.
#2 0x0051f983 in SV_ReadPacket (s=0x19e8e684) at Q:\ufoai\src\server\sv_main.c:435
cmd = 5
cl = 0x1445d73c
msg = 0x145a9fe4
#3 0x005021c7 in NET_Wait (timeout=0) at Q:\ufoai\src\common\net.c:457
s = 0x19e8e684
tv = {
tv_sec = 0,
tv_usec = 0
}
ready = 0
i = 0
read_fds_out = {
fd_count = 0,
fd_array = {0 <repeats 64 times>}
}
write_fds_out = {
fd_count = 0,
fd_array = {0 <repeats 64 times>}
}
#4 0x004f761a in Qcommon_Frame () at Q:\ufoai\src\common\common.c:1184
s = 0x0
time_to_next = 0
event = 0x145a9fe4
#5 0x0051bd89 in WinMain@16 (hInstance=0x400000, hPrevInstance=0x0, lpCmdLine=0x251f06 "", nCmdShow=10) at Q:\ufoai\src\ports\windows\win_main.c:358
No locals.
#6 0x005b3fe6 in main ()
No symbol table info available.
====== tlh2000 (2010-02-23 07:13:46) ======
ok, another attempt was made in r28683 - i'm sorry - but i can't run the game from this machine. so i'm dry swimming here and need your feedback.
====== tlh2000 (2010-02-23 07:14:47) ======
sv_cheats must be activated to use sv_send_edicts - this is printed now
====== markhawrylak (2010-02-23 07:20:23) ======
tested in r28683 the segfault if fixed.
I suggest the defect stays open until defect 2 - 'being able to open the door from far away' is resolved.
the sv_send_edicts told me to do the cheats thing and it worked. V cool, this will aid in debugging.
====== tlh2000 (2010-02-23 17:12:23) ======
should be fixed in r28687
====== tlh2000 (2010-02-23 17:32:54) ======
another fix was commited in r28688 - it should fix the situation where you are able to use a door that should be not usable anymore because it was used before and rotation changed the trigger bounding box.
====== markhawrylak (2010-02-24 02:17:16) ======
tested in r28689 - failed
I was still able to open a door from far away, some of the situations are fixed by the change, but I am still able to cause the problem,
====== tlh2000 (2010-02-24 11:34:38) ======
some more work was done in later revisions.
====== markhawrylak (2010-03-05 03:28:41) ======
retested in r28786 - failed
I was still able to open a door from far away.
set status to Open
====== tlh2000 (2010-03-06 14:21:17) ======
can you please provide screenshots of this issue with latest trunk again - i'm not able to reproduce this
====== markhawrylak (2010-03-10 01:54:54) ======
able to use door from a distance
====== markhawrylak (2010-03-10 01:57:26) ======
I have attached a screen shot ufo73.jpg, of the estate map.
1. move your unit to the position as per image 1
2. end your turn
3. move your unit to the position indicated by image 2
4. press backspace (door open/close key) and you are able to control the door from the other side of the room.
====== tlh2000 (2010-04-30 13:28:00) ======
i've made another attempt to fix this bug in r29653 - feedback is welcome.
====== sf-robot (2010-05-15 02:20:23) ======
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).