Am Mittwoch, 7. Februar 2007 schrieb [EMAIL PROTECTED]: > On Tue, 06 Feb 2007 19:02:39 -0500 Dennis Schridde > > <[EMAIL PROTECTED]> wrote: > >Am Dienstag, 6. Februar 2007 schrieb [EMAIL PROTECTED]: > >> Who made the changes in this part/file ? > > .... > > >As it looks it is unmodified since more than 200 commits... > >Nothing that > >crashes just since a while. Maybe the problem is at another place, > >when > >initializing whatever variable is causing problems. > >(I had a bit of problems understanding your email after the "crash > >here" > >bit... "psWstats = undefined"? Undefined Symbol? Or what do you > >mean? And > >what does the rest of the mail want to tell me? > > > >--Dennis > > It crashes at the function proj_Direct(psWStats). > It crashes since psWStats is undefined (value is 0x0 for this > variable). > As I talk in the other mail, I don't know if it is this specific > file, but I do know it crashed here. I check other version from > berlios, and it is fine there. > > I couldn't check the svn log since I got a strange svn (or maybe > tsvn) error. > > You can test this yourself, run game with select CAM_2A level. > (--game CAM_2A) You can also do this to other levels so you no > need to play from begining, or have save games. I was testing > different levels this way. Cool, didn't know of that feature...
As savegames from CAM1 and between CAM1 and CAM2 work well, I think the problem is with the direct loading... I attached a backtrace.
(gdb) run --datadir data/ --game CAM_2A
Starting program: /home/sevendays/Warzone/Gna/trunk/_build_/debug/warzone2100
--datadir data/ --game CAM_2A
[Thread debugging using libthread_db enabled]
[New Thread -1209407792 (LWP 9363)]
[New Thread -1236386928 (LWP 9366)]
error: gwCheckZoneSizes: warning zone 4 at (61,23) is too large 1068 tiles
(max 600)
error: gwCheckZoneSizes: warning zone 5 at (89,31) is too large 671 tiles
(max 600)
error: gwCheckZoneSizes: warning zone 6 at (114,21) is too large 713 tiles
(max 600)
error: gwCheckZoneSizes: warning zone 41 at (15,13) is too large 822 tiles
(max 600)
warning: loadFile2: optional file sequenceaudio/cam2/c002.txt could not be
opened: No such file or directory
Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1209407792 (LWP 9363)]
0x0818fde1 in proj_Direct (psStats=0x0) at ../src/projectile.c:2008
2008 switch (psStats->movementModel)
(gdb) bt full
#0 0x0818fde1 in proj_Direct (psStats=0x0) at ../src/projectile.c:2008
__FUNCTION__ = "proj_Direct"
__PRETTY_FUNCTION__ = "proj_Direct"
#1 0x0819e212 in scrStructTargetMask (psStruct=0xb5b58ac4) at
../src/scriptai.c:926
mask = 0
psStats = (STRUCTURE_STATS *) 0xb2cb8ae0
psWStats = (WEAPON_STATS *) 0x0
__FUNCTION__ = "scrStructTargetMask"
__PRETTY_FUNCTION__ = "scrStructTargetMask"
#2 0x0819e8e4 in scrTargetInArea (tarPlayer=0, visPlayer=2, tarType=0,
cluster=1, x1=8192, y1=8192, x2=16384, y2=16384)
at ../src/scriptai.c:1214
psTarget = (BASE_OBJECT *) 0x0
psCurr = (BASE_OBJECT *) 0xb5b58ac4
temp = 1
bVisCheck = 0
tarMask = 3048720204
getTargetMask = (TARGET_MASK) 0x819e16b <scrStructTargetMask>
targetPriority = (TARGET_PREF) 0x819e321 <scrStructTargetPriority>
prefer = 1
ignore = 16
__FUNCTION__ = "scrTargetInArea"
__PRETTY_FUNCTION__ = "scrTargetInArea"
#3 0x0819ee24 in scrTargetInCluster () at ../src/scriptai.c:1353
tarPlayer = 0
tarType = 0
---Type <return> to continue, or q <return> to quit---
visPlayer = 2
clusterID = 1
cluster = 1
psTarget = (BASE_OBJECT *) 0xc1b3518
__FUNCTION__ = "scrTargetInCluster"
__PRETTY_FUNCTION__ = "scrTargetInCluster"
#4 0x0807fb3d in interpRunScript (psContext=0xb5b7f23c, runType=IRT_EVENT,
index=0, offset=0) at ../lib/script/interp.c:783
data = 0
opcode = OP_CALL
sVal = {type = VAL_BOOL, v = {sval = 0x1 <Address 0x1 out of bounds>,
pObjGetSet = 0x1, pFuncExtern = 0x1, oval = 0x1,
fval = 1.40129846e-45, ival = 1, bval = 1}}
psVar = (INTERP_VAL *) 0xb2bee2bc
InstrPointer = (INTERP_VAL *) 0xc1b3560
psGlobals = (VAL_CHUNK *) 0xb2bee5dc
numGlobals = 25
pCodeStart = (INTERP_VAL *) 0xc1b3350
pCodeEnd = (INTERP_VAL *) 0xc1b36d0
pCodeBase = (INTERP_VAL *) 0xc1b3350
scriptFunc = (SCRIPT_FUNC) 0x819ecc9 <scrTargetInCluster>
scriptVarFunc = (SCRIPT_VARFUNC) 0x81bbac0 <scrBaseObjGet>
psProg = (SCRIPT_CODE *) 0xa68c548
instructionCount = 44
CurEvent = 0
bStop = 0
bEvent = 1
---Type <return> to continue, or q <return> to quit---
callDepth = 0
pTrigLab = 0x1 <Address 0x1 out of bounds>
pEventLab = 0x100000 <Address 0x100000 out of bounds>
bTraceOn = 0
__FUNCTION__ = "interpRunScript"
__PRETTY_FUNCTION__ = "interpRunScript"
#5 0x0807b719 in eventFireCallbackTrigger (callback=42) at
../lib/script/event.c:1064
psPrev = (ACTIVE_TRIGGER *) 0xb5b7ece0
psCurr = (ACTIVE_TRIGGER *) 0xb5b7f0c0
psNext = (ACTIVE_TRIGGER *) 0xb2beec54
psTrigDat = (TRIGGER_DATA *) 0xbaf06cc
fired = 1
__FUNCTION__ = "eventFireCallbackTrigger"
__PRETTY_FUNCTION__ = "eventFireCallbackTrigger"
#6 0x080c1d0e in clustObjectSeen (psObj=0xb5b56f34, psViewer=0xb5afe98c) at
../src/cluster.c:688
player = 2
__FUNCTION__ = "clustObjectSeen"
__PRETTY_FUNCTION__ = "clustObjectSeen"
#7 0x081e3f64 in processVisibility (psObj=0xb5b56f34) at
../src/visibility.c:876
psDroid = (DROID *) 0xb5afdb70
psBuilding = (STRUCTURE *) 0xb5b56f34
i = 8
maxPower = 0
ecmPoints = 1
psECMStats = (ECM_STATS *) 0xb2c8da6c
---Type <return> to continue, or q <return> to quit---
prevVis = {1, 0, 0, 0, 0, 0, 0, 0}
currVis = {1, 0, 1, 0, 0, 0, 0, 0}
visLevel = 1374389535
psViewer = (BASE_OBJECT *) 0xb5afe98c
psMessage = (MESSAGE *) 0x1
player = 8
ally = 2999682728
#8 0x081d5806 in structureUpdate (psBuilding=0xb5b56f34) at
../src/structure.c:5110
widthScatter = 3048229436
breadthScatter = 24
percentDamage = 50
emissionInterval = 2400
iPointsToAdd = 3048605628
iPointsRequired = 950
dv = {x = 872, y = -1079343640, z = 135618009}
__FUNCTION__ = "structureUpdate"
__PRETTY_FUNCTION__ = "structureUpdate"
#9 0x0814a9ee in gameLoop () at ../src/loop.c:419
psCurr = (DROID *) 0x0
psNext = (DROID *) 0x0
psCBuilding = (STRUCTURE *) 0xb5b56f34
psNBuilding = (STRUCTURE *) 0xb5b56e38
psCFeat = (FEATURE *) 0x90a4
psNFeat = (FEATURE *) 0x3e8
i = 0
---Type <return> to continue, or q <return> to quit---
widgval = 0
quitting = 0
intRetVal = INT_NONE
clearMode = CLEAR_FOG
__FUNCTION__ = "gameLoop"
__PRETTY_FUNCTION__ = "gameLoop"
#10 0x0814ca1b in main (argc=5, argv=0xbfaa8764) at ../src/main.c:714
frameRet = FRAME_OK
quit = 0
Restart = 0
paused = 0
introVideoControl = 3
loopStatus = 0
psPaletteBuffer = (iColour *) 0x0
pSize = 768
pgpZjTFrhzPAP.pgp
Description: PGP signature
_______________________________________________ Warzone-dev mailing list [email protected] https://mail.gna.org/listinfo/warzone-dev
