Opened 11 years ago

Closed 11 years ago

Last modified 5 years ago

#3481 closed defect (fixed)

PUTTMOON: Crash on reading a sound file (3DO)

Reported by: raziel- Owned by: cyxx
Priority: normal Component: Engine: SCUMM
Keywords: Cc:
Game: Putt-Putt Goes to the Moon

Description

ScummVM 0.11.0svn (Dec 3 2007 15:35:57)
Features compiled in: Vorbis FLAC MP3 zLib MPEG2

After driving PuttPutt on the bridge which will break
and lands in the water, just sit there and wait till
the next music cue (sound file puttm40.dmu) will be
processed. ScummVM crashes right there with the message:

(11:48:0x76): Can't open music file puttm40.dmu

bű-ŕ*!

The md5sum of that specific file is:
bea7f17d339768b74ab084fe8cbbd475 PUTTM40.DMU
with the size of 836768 bytes.

Crash log attached

Putt Putt goes to the Moon (English/3DO)

AmigaOS4

gcc version 4.0.2 (AmigaOS build 20051012)

Ticket imported from: #1845760. Ticket imported from: bugs/3481.

Attachments (2)

Crashlog_scummvm_2007-12-06_20-48-57.txt (24.3 KB) - added by raziel- 11 years ago.
Crash log
puttmoon-3do.s01 (20.9 KB) - added by raziel- 11 years ago.
Right before the bridge

Download all attachments as: .zip

Change History (9)

Changed 11 years ago by raziel-

Crash log

Changed 11 years ago by raziel-

Attachment: puttmoon-3do.s01 added

Right before the bridge

comment:1 Changed 11 years ago by raziel-

File Added: puttmoon-3do.s01

comment:2 Changed 11 years ago by cyxx

Could you test that the following patch fixes the issue (I don't own the game myself to test this) ?
in engines/scumm/sound.cpp

replace

*(strstr(buffer, " ")) = '\0';

by

buffer[12] = 0;
for (int i = 11; i >= 0 && buffer[i] == ' '; --i) {
buffer[i] = 0;
}

comment:3 Changed 11 years ago by raziel-

With the patch the crash is gone, but i still get a
*!1:48:0x76): Can't open music file puttm40.dmu

comment:4 Changed 11 years ago by cyxx

Could you test with latest SVN ?

comment:5 Changed 11 years ago by raziel-

Fixed in revision 29752, thanks cyx

comment:6 Changed 11 years ago by cyxx

Owner: set to cyxx
Resolution: fixed
Status: newclosed

comment:7 Changed 5 years ago by Strangerke

Component: --Unset--Engine: SCUMM
Game: Putt-Putt Goes to the Moon
Note: See TracTickets for help on using tickets.