Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#2259 closed defect (fixed)

BS2: failed assertion at end of ending credits

Reported by: wjp Owned by: eriktorbjorn
Priority: normal Component: Engine: Sword2
Keywords: Cc:
Game: Broken Sword 2

Description

After watching the ending credits for Broken Sword 2, I
get the following failed assertion:

scummvm: sword2/resman.cpp:525: void
Sword2::ResourceManager::closeResource(unsigned int):
Assertion `_resList[res].refCount > 0' failed.

CVS from this morning (sat. 15 oct.), gentoo linux,
Broken Sword 2 english CD version, with mpeg2 movies.

Savegame at very end of the game attached.

Ticket imported from: #1327650. Ticket imported from: bugs/2259.

Attachments (1)

sword2.019 (865 bytes) - added by wjp 14 years ago.
sword2.019

Download all attachments as: .zip

Change History (6)

Changed 14 years ago by wjp

Attachment: sword2.019 added

sword2.019

comment:1 Changed 14 years ago by eriktorbjorn

I can reproduce it, but annoyingly enough only when I'm
*not* running it in a debugger. In a debugger, it crashes in
a different way instead. Memory corrpution, perhaps? I'll
take a closer look later today, when I have better debugging
tools at my disposal.

comment:2 Changed 14 years ago by eriktorbjorn

Owner: set to eriktorbjorn

comment:3 Changed 14 years ago by wjp

Here's what valgrind reports:

http://www.math.leidenuniv.nl/~wpalenst/sword2_credits.valgrind

comment:4 Changed 14 years ago by eriktorbjorn

I believe this bug has been fixed in CVS now. Thanks for the
report!

By the way, I would go nuts trying to Valgrind Broken Sword
2 on my 450 MHz PIII. I probably get about two frames per
second. Fortunately, electric fence proved just as useful in
this case. :-)

comment:5 Changed 14 years ago by eriktorbjorn

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.