Nothing entered.
[http://sourceforge.net/p/ufoai/bugs/854 Item 854] imported from sourceforge.net tracker on 2013-01-28 18:38:45
Trunk 10533 - I started a new game, and when I sent the aircraft to the first mission, the game crash to desktop with no error messages at all (the mission is loaded and right after it the game crashes). Nothing in the log file, but attaching it anyway.
Win XP SP1
UFO: AI 2.2 trunk 10533
===== Comments Ported from Sourceforge =====
====== smalul10 (2007-08-03 15:27:33) ======
The log file, trunk 10533 - CTD after mission is loaded
====== hoehrer (2007-08-03 18:16:42) ======
Logged In: YES
user_id=1434318
Originator: NO
working on this
Werner
====== hoehrer (2007-08-03 18:22:34) ======
Logged In: YES
user_id=1434318
Originator: NO
Revision 10544 should fix this. It works for me at least. Setting this to pending :)
Werner
====== smalul10 (2007-08-03 21:01:25) ======
Logged In: YES
user_id=1314813
Originator: YES
Trunk 10544 - still doesn't work - As soon as I enter the first mission, the game crashes to desktop.
====== nobody (2007-08-03 23:42:31) ======
Logged In: NO
Had the exact same problem, no quit messages or anything either so I used gdb as the wiki suggested and got the following results:
(gdb) run +set developer 1
Starting program: D:\Programming\UFO AI/ufo.exe +set developer 1
Program received signal SIGSEGV, Segmentation fault.
0x004098b9 in CL_ActorMouseTrace () at ../../src/client/cl_actor.c:3213
3213 restingLevel = min(restingLevel, Grid_Fall(&clMap, testPos, selActor->fieldSize));
(gdb) bt full
#0 0x004098b9 in CL_ActorMouseTrace () at ../../src/client/cl_actor.c:3213
i = 0
restingLevel = 0
intersectionLevel = 0
cur = {-0.0786290318, 0.378125012}
frustumslope = {1182.41333, 762.84729}
projectiondistance = 2048
nDotP2minusP1 = 0
u = 5.04467447e-044
forward = {0, 0, 0}
right = {0, 0, 0}
up = {0, 0, 0}
stop = {0, 0, 0}
from = {0, 0, 0}
end = {0, 0, 0}
dir = {9.75673113e-039, 9.75673113e-039, 0}
mapNormal = {0, 0, 1}
P3 = {0, 0, 25.6000004}
P2minusP1 = {0, 0, 0}
P3minusP1 = {3.21322222e-039, 7.8619356e+033, 3.21318859e-039}
pA = {16, 16, 96}
pB = {16, 16, -32}
pC = {16, 16, 4.00000191}
---Type <return> to continue, or q <return> to quit---
testPos = "\200\200"
actor2x2 = {"─╜─", "w\0", "\0\0╘"}
le = (le_t *) 0x22fcb0
#1 0x00422fe4 in CL_ParseInput () at ../../src/client/cl_input.c:1246
i = 0
oldx = 489
oldy = 457
#2 0x0042ab86 in CL_Frame (now=86571, data=0x0)
at ../../src/client/cl_main.c:2451
lasttimecalled = 0
last_frame = 86571
delta = 12
#3 0x0045d601 in tick_timer (now=86571, data=0x1063cec0)
at ../../src/qcommon/common.c:880
timer = (struct timer *) 0x1063cec0
old_interval = 11
lateness = 3987
#4 0x0045d85e in Qcommon_Frame () at ../../src/qcommon/common.c:967
event = (struct event *) 0x10680d60
time_to_next = 0
#5 0x0047ace7 in WinMain (hInstance=0x400000, hPrevInstance=0x0,
lpCmdLine=0x241f00 "+set", nCmdShow=10)
at ../../src/ports/win32/sys_win.c:836
---Type <return> to continue, or q <return> to quit---
No locals.
#6 0x004ce80a in main ()
No symbol table info available.
====== nobody (2007-08-04 00:10:10) ======
Logged In: NO
Found the cause, selActor->fieldSize seems to cause the trouble; after having replaced this with the value of ACTOR_SIZE_NORMAL (1) the game runs as expected and loads the first level without fail. Not sure how to actually properly fix this as I was intending to look through the code and learn how stuff works this afternoon, but this bug kept me busy wondering if my map compiling went bad.
====== hoehrer (2007-08-04 10:12:34) ======
Logged In: YES
user_id=1434318
Originator: NO
That one is a persistent bug :) mattn fixed some more bad uses of Grid_Fall and i just found some more (Revision 10551).
Please try if the bug still occurs for you, but I could not reproduce it here (though that seems to not say much :().
Werner
====== nobody (2007-08-04 10:48:46) ======
Logged In: NO
Just updated to the latest revision (10551) and it seems to work now without the need to manually modify those values into 1 or something :). So far loaded my save game and started an Antarctica mission without issues. So seems fixed.
====== hoehrer (2007-08-04 11:09:56) ======
Logged In: YES
user_id=1434318
Originator: NO
Perfect :)
I'll set this bug to pending just in case. It'll get closed in a week or so.
Werner
====== smalul10 (2007-08-04 13:56:42) ======
Logged In: YES
user_id=1314813
Originator: YES
Trunk 10557 - everything seems to be working fine now, thanks for the fix.
====== sf-robot (2007-08-19 02:20:05) ======
Logged In: YES
user_id=1312539
Originator: NO
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).