Opened 15 years ago

Closed 15 years ago

#1415 closed defect (fixed)

FOTAQ: Assertion fails trying to escape post-Airport Cutaway

Reported by: joostp Owned by: joostp
Priority: normal Component: Engine: Queen
Keywords: Cc:
Game: Flight of the Amazon Queen

Description

When <ESC>aping past the "LATER.. High above the amazon
Jungle" Cutaway the game crashes with an assertion failure:

queen/graphics.cpp:402: failed assertion `index <
MAX_BOBS_NUMBER'

'index' was '79' in this case.

Backtrace:

Program received signal SIGABRT, Aborted.
0x90042aac in kill ()
(gdb) bt
#0 0x90042aac in kill ()
#1 0x9009ec5c in abort ()
#2 0x000af280 in __eprintf () at common/str.h:69
#3 0x0001efc4 in Queen::Graphics::bob(int) (this=0x25,
index=0) at queen/graphics.cpp:402
#4 0x0002792c in Queen::Cutaway::stop()
(this=0x1ad1c00) at queen/queen.h:66
#5 0x00027470 in Queen::Cutaway::run(char*)
(this=0x1ad1c00, nextFilename=0xbfffe6b0 "") at queen/
cutaway.cpp:947
#6 0x00025684 in Queen::Cutaway::run(char const*, char*,
Queen::QueenEngine*) (filename=0xbfffe6b0 "",
nextFilename=0xbfffe6b0 "", vm=0x135c3d0) at queen/
cutaway.cpp:57
#7 0x0001311c in Queen::Logic::playCutaway(char const*,
char*) (this=0x1876000, cutFile=0xbfffe6b0 "",
next=0xbfffe6b0 "") at queen/logic.cpp:855
#8 0x00019c48 in Queen::Command::
executeIfCutaway(char const*) (this=0x136dd70,
description=0x4bb0919 "c74a.CUT") at queen/queen.h:66
#9 0x000190cc in Queen::Command::
executeCommand(unsigned short, short) (this=0x136dd70,
comId=311, condResult=394) at queen/command.cpp:344
#10 0x00018660 in Queen::Command::
executeCurrentAction() (this=0x136dd70) at queen/
command.cpp:188
#11 0x0000d204 in Queen::QueenEngine::go()
(this=0x135c3d0) at queen/queen.cpp:329

A workaround patch is attached, but the *real* problem may
lie elsewhere (findBob()/findPerson()?).

Ticket imported from: #884712. Ticket imported from: bugs/1415.

Attachments (1)

cutaway_assert.diff (815 bytes) - added by joostp 15 years ago.
Patch against CVS from early 25-01-2004

Download all attachments as: .zip

Change History (5)

Changed 15 years ago by joostp

Attachment: cutaway_assert.diff added

Patch against CVS from early 25-01-2004

comment:1 Changed 15 years ago by joostp

Summary: Assertion failure when trying to escape post-Airport CutawayFOTAQ: Assertion fails trying to escape post-Airport Cutaway

comment:2 Changed 15 years ago by joostp

'aping' should be 'ESC-aping'

comment:3 Changed 15 years ago by joostp

Resolution: fixed
Status: newclosed

comment:4 Changed 15 years ago by joostp

Properly fixed in CVS now. closing this.

Note: See TracTickets for help on using tickets.