#2775: Script assert on victory
---------------------+-------------------------------------
  Reporter:  Per     |             Owner:
      Type:  bug     |            Status:  new
  Priority:  normal  |         Milestone:  3.0
 Component:  other   |           Version:  git/master
  Keywords:          |  Operating System:  All/Non-Specific
Blocked By:          |          Blocking:
---------------------+-------------------------------------
 {{{
 info    |11:40:35: [scrBaseObjGet] Invalid object 0x8821e20 of type
 842281270
 info    |11:40:35: [scrBaseObjGet] Assert in Warzone:
 ../../src/scriptobj.cpp:75 (psObj->type == OBJ_DROID || psObj->type ==
 OBJ_STRUCTURE || psObj->type == OBJ_FEATURE), last script event: 'N/A'

 Program received signal SIGTRAP, Trace/breakpoint trap.
 0x0000003d6da328f5 in raise (sig=5) at
 ../nptl/sysdeps/unix/sysv/linux/raise.c:64
 64        return INLINE_SYSCALL (tgkill, 3, pid, selftid, sig);
 (gdb) bt
 #0  0x0000003d6da328f5 in raise (sig=5) at
 ../nptl/sysdeps/unix/sysv/linux/raise.c:64
 #1  0x000000000062aafd in scrBaseObjGet (index=4) at
 ../../src/scriptobj.cpp:74
 #2  0x000000000068d5b3 in interpRunScript (psContext=0x851d0b0,
 runType=IRT_EVENT, index=108, offset=0) at
 ../../../lib/script/interpreter.cpp:773
 #3  0x0000000000689a87 in eventFireTrigger (psTrigger=0x8519110) at
 ../../../lib/script/event.cpp:1133
 #4  0x0000000000689bc4 in eventProcessTriggers (currTime=20000) at
 ../../../lib/script/event.cpp:1168
 #5  0x0000000000581d54 in gameLoop () at ../../src/loop.cpp:219
 #6  0x0000000000584f46 in runGameLoop () at ../../src/main.cpp:911
 #7  0x00000000005851fc in mainLoop () at ../../src/main.cpp:1014

 (gdb) frame 4
 #4  0x0000000000689bc4 in eventProcessTriggers (currTime=20000) at
 ../../../lib/script/event.cpp:1168
 1168                    if (eventFireTrigger(psCurr))   // This might mark
 the trigger for deletion
 (gdb) p *psCurr
 $1 = {testTime = 20000, psContext = 0x851d0b0, type = 3, trigger = 18,
 event = 108, offset = 0, deactivated = 0, psNext = 0x851cea0}
 (gdb) p eventPrintTriggerInfo(psCurr)
 warning |11:44:00: [eventPrintTriggerInfo] trigger 18 (EVERY) at 20000 ->
 N/A
 $2 = void
 (gdb) frame 1
 #1  0x000000000062aafd in scrBaseObjGet (index=4) at
 ../../src/scriptobj.cpp:74
 74              ASSERT_OR_RETURN(false, psObj->type == OBJ_DROID ||
 psObj->type == OBJ_STRUCTURE || psObj->type == OBJ_FEATURE,
 (gdb) p *psObj
 $3 = {<SIMPLE_OBJECT> = {_vptr.SIMPLE_OBJECT = 0x3164696f7264203e, type =
 842281270, id = 540876857, pos = {x = 1882927216, y = 958952303, z =
 775435577}, rot = {
       direction = 14385, pitch = 11314, roll = 12337}, player = 54 '6',
 born = 909192754, died = 926231603, time = 1869753385}, sDisplay = {imd =
 0x2c38313335342874,
     frameNumber = 825373494, screenX = 808528950, screenY = 740897844,
 screenR = 845443695}, group = 53 '5', selected = 40 '(', cluster = 57 '9',
 visible = "990,10659)^",
   seenThisTick = "0,act0_0,so", inFire = 57 '9', numWatchedTiles = 11329,
 lastEmission = 892891234, lastHitWeapon = 1299393592, timeLastHit =
 677738095, body = 741962867,
   burnStart = 828665971, burnDamage = 1831614263, sensorRange = 879913316,
 ECMMod = 942748469, bTargetted = 44, watchedTiles = 0x6372732c302f3068,
 armour = {{909654312,
     808528946}, {691026230, 1918989356}, {909654312, 808528945},
 {691156533, 1953719340}, {875772200, 808528947}, {691155764, 1836409388}},
 psNext = {ptr =
     0x2c30323737342870}, psNextFunc = {ptr = 0x2c32303839393931}}
 }}}

 No idea why this happens...

-- 
Ticket URL: <http://developer.wz2100.net/ticket/2775>
Warzone 2100 Trac <http://developer.wz2100.net/>
The Warzone 2100 Project
_______________________________________________
Warzone-dev mailing list
[email protected]
https://mail.gna.org/listinfo/warzone-dev

Reply via email to