Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1402 closed defect (fixed)

BS1: Cutscenes crash if audio files don't exist

Reported by: Kirben Owned by: SF/ender
Priority: normal Component: Engine: Sword1
Keywords: Cc:
Game: Broken Sword 1

Description

Latest ScummVM cvs version.
English version of Broken Sword 1
Compiled under mingw with GCC 3.2.3 and running under
Windows XP.

ScummVM crashes if the audio file for a cutscene in
Broken Sword 1 doesn't exist. gdb back trace is below:
Program received signal SIGSEGV, Segmentation fault.
0x0051a898 in Sword1::AnimationState::decodeFrame()
(this=0x35bd390) at sword1/animation.cpp:333
333 if ((bgSoundStream-
>getSamplesPlayed()*12/bgSoundStream->getRate()) <
(framenum+3)){
(gdb) bt
#0 0x0051a898 in
Sword1::AnimationState::decodeFrame()
(this=0x35bd390)
at sword1/animation.cpp:333
#1 0x0051aa02 in Sword1::MoviePlayer::play(char
const*) (this=0x22fc40, filename=0x4fe35a "intro")
at sword1/animation.cpp:378
#2 0x004fe429 in Sword1::Logic::fnPlaySequence
(Sword1::Object*, int, int, int, int, int, int, int)
(this=0x24619c0, cpt=0x0, id=0, sequenceId=4, d=0,
e=0, f=0, z=0, x=0) at sword1/logic.cpp:937
#3 0x004fa257 in Sword1::SwordEngine::startPositions
(int) (this=0x2409c80, startNumber=0)
at sword1/sword1.cpp:193
#4 0x004fbe3e in Sword1::SwordEngine::go()
(this=0x2409c80) at sword1/sword1.cpp:1084
#5 0x004066c6 in runGame(GameDetector&, OSystem*)
(detector=@0x22ff28, system=0x23fcc50)
at base/main.cpp:225
#6 0x00406aa1 in main (argc=2, argv=0x3f25a0) at
base/main.cpp:313

Ticket imported from: #881128. Ticket imported from: bugs/1402.

Change History (2)

comment:1 Changed 15 years ago by Kirben

Owner: set to SF/ender
Resolution: fixed
Status: newclosed

comment:2 Changed 15 years ago by SF/khalek

Component: Engine: Sword1
Game: Broken Sword 1
Note: See TracTickets for help on using tickets.