Opened 13 days ago

Closed 12 days ago

#15094 closed defect (fixed)

SWORD1: Sound related crash at the hotel

Reported by: theMealena Owned by: AndywinXp
Priority: normal Component: Engine: Sword1
Version: Keywords: crash
Cc: Game: Broken Sword 1

Description (last modified by theMealena)

OS is Win 10 19045.4291
Instant crash, quitting ScummVm with scummvm-2.8.1-win32-x86_64
Fault Warning with version 2.9.0git under retroarch, error can be ignored and game goes on.
Game is French version, files extracted from genuine 2CDs version as recommended in scummVm documentation.
To create that error : speak to the lady at the piano. Use the gruber card in conversation and wait for the scene to go. The game crashes short after the character put the roll in his vest.

Attachments (2)

sword1_crash.png (249.5 KB ) - added by theMealena 13 days ago.
sword1.001 (24.3 KB ) - added by theMealena 13 days ago.
Save game short before crash

Download all attachments as: .zip

Change History (5)

by theMealena, 13 days ago

Attachment: sword1_crash.png added

by theMealena, 13 days ago

Attachment: sword1.001 added

Save game short before crash

comment:1 by theMealena, 13 days ago

Description: modified (diff)

comment:2 by theMealena, 13 days ago

in source file scummvm/audio/decoders/raw.cpp from line 205 :

const bool isStereo      = (flags & Audio::FLAG_STEREO) != 0;
	const int bytesPerSample = (flags & Audio::FLAG_24BITS ? 3 : (flags & Audio::FLAG_16BITS ? 2 : 1));
	const bool isUnsigned    = (flags & Audio::FLAG_UNSIGNED) != 0;
	const bool isLE          = (flags & Audio::FLAG_LITTLE_ENDIAN) != 0;

	assert(stream->size() % (bytesPerSample * (isStereo ? 2 : 1)) == 0);

comment:3 by AndywinXp, 12 days ago

Owner: set to AndywinXp
Resolution: fixed
Status: newclosed
Summary: crash at the hotelSWORD1: Sound related crash at the hotel

Thank you, I fixed it!

Note: See TracTickets for help on using tickets.