Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#2754 closed defect (worksforme)

WINCE: FT crash (due to lack of memory?)

Reported by: SF/vlodeck Owned by: SF/knakos
Priority: normal Component: Engine: SCUMM
Version: Keywords:
Cc: Game: Full Throttle

Description

Error occures while playing first intro:

(2:61:0x9D): Assertion failed_bufferStart != NULL (..\..\..\sound\audiostream.cpp, 264)

the game stops...

Ticket imported from: #1527443. Ticket imported from: bugs/2754.

Change History (10)

comment:1 by SF/vlodeck, 18 years ago

Priority: normalblocker
Summary: WinCE Smartphone WM2003SE, ScummVM 0.9.0aWinCE WM2003SE, Full Throttle, ScummVM 0.9.0a

comment:2 by eriktorbjorn, 18 years ago

That would be either the SMUSH player or Digital iMUSE, I guess. That's the only thing I know of in the SCUMM engine that uses the appendable memory stream class. The FT intro probably uses a mixture of both.

That part of the code looks like this:

_bufferStart = (byte *)malloc(bufferSize); assert(_bufferStart != NULL);

So apparently the malloc() failed. In the case of the SMUSH player, I believe bufferSize is always 900,000 bytes. In the case of Digital iMUSE, the size is calculated so I'm not sure how large it usually is.

comment:3 by SF/vlodeck, 18 years ago

so is there anything that can be done?

comment:4 by lordhoto, 18 years ago

Priority: blockernormal

comment:5 by SF/knakos, 18 years ago

Owner: set to SF/knakos

comment:6 by fingolfin, 18 years ago

Summary: WinCE WM2003SE, Full Throttle, ScummVM 0.9.0aWINCE: FT crash (due to lack of memory?)

comment:7 by fingolfin, 18 years ago

Probably not much that can be done at this time. Maybe a memory upgrade would help, knakos?

Other than that, the only fix I can think of would be to rewrite the SMUSH / iMUSE digital code, but doing that, and doing it "properly" is a fairl huge task, and since the current code works "well enough", it's a task that not many people (esp. devs) are much interested in, I am afraid...

comment:8 by SF/knakos, 18 years ago

I haven't got around to tracing this one down. After eriktorbjorn's comment it seems like low mem, but i'd like to verify it once, to be sure.

comment:9 by SF/knakos, 18 years ago

Works OK in 0.9.1, please free up some mem.

comment:10 by SF/knakos, 18 years ago

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