Opened 18 years ago

Closed 18 years ago

Last modified 18 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
Version: 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 18 years ago.
sword2.019

Download all attachments as: .zip

Change History (6)

by wjp, 18 years ago

Attachment: sword2.019 added

sword2.019

comment:1 by eriktorbjorn, 18 years ago

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 by eriktorbjorn, 18 years ago

Owner: set to eriktorbjorn

comment:3 by wjp, 18 years ago

Here's what valgrind reports:

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

comment:4 by eriktorbjorn, 18 years ago

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 by eriktorbjorn, 18 years ago

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