Opened 17 years ago
Closed 16 years ago
Last modified 16 years ago
#2754 closed defect (worksforme)
WINCE: FT crash (due to lack of memory?)
|Reported by:||SF/vlodeck||Owned by:||SF/knakos|
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 , 17 years ago
|Priority:||normal → blocker|
|Summary:||WinCE Smartphone WM2003SE, ScummVM 0.9.0a → WinCE WM2003SE, Full Throttle, ScummVM 0.9.0a|
comment:2 by , 17 years ago
comment:3 by , 17 years ago
so is there anything that can be done?
comment:4 by , 17 years ago
|Priority:||blocker → normal|
comment:5 by , 17 years ago
comment:6 by , 17 years ago
|Summary:||WinCE WM2003SE, Full Throttle, ScummVM 0.9.0a → WINCE: FT crash (due to lack of memory?)|
comment:7 by , 17 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 , 17 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 , 16 years ago
Works OK in 0.9.1, please free up some mem.
comment:10 by , 16 years ago
|Status:||new → closed|
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.