Opened 15 months ago

Last modified 15 months ago

#10374 new defect

SCI: Backend assertion failure sending data to closed MIDI driver on exit

Reported by: Digitoxin1 Owned by:
Priority: normal Component: Engine: SCI
Keywords: Cc:
Game:

Description

When exiting an SCI game configured to use a MIDI device, I get the following error:


MinGW Runtime Assertion


Assertion failed!

Program: G:\Emulation\Installs\ScummVM\application\scummvm.exe
File: /data/sharedrepo/backends/midi/windows.cpp, Line 97

Expression: _isOpen


Abort Retry Ignore


I have reproducted this error with:
Leisure Suit Larry 2
Quest for Glory I (EGA)
Quest for Glory I (VGA)

I have reproduced it with the following MIDI devices:
Microsoft GS Wavetable Synth (Windows MIDI)
Yamaha MU-80 (Connected to USB MIDI adapter)
Roland MT-32 (Connected to USB MIDI adapter)

This error does not occur when using:
MT-32 Emulator
FluidSynth

Change History (2)

comment:1 Changed 15 months ago by Digitoxin1

Summary: ScummVM v2.0.0 - Assertion Failed! error when exiting an SCI game while using a real MIDI synthScummVM v2.0.0 Windows - Assertion Failed! error when exiting an SCI game while using a real MIDI synth

comment:2 Changed 15 months ago by csnover

Keywords: SCI MIDI removed
Summary: ScummVM v2.0.0 Windows - Assertion Failed! error when exiting an SCI game while using a real MIDI synthSCI: Backend assertion failure sending data to closed MIDI driver on exit

Thanks for your report! It looks like we’re continuing to send MIDI data to the MIDI driver even after it has been closed. I’m not sure immediately if this is an engine problem, a ScummVM shutdown bug, or the Windows port’s MIDI driver is just too strict about receiving data when it is closed.

Note: See TracTickets for help on using tickets.