Opened 7 years ago

Closed 5 years ago

#10374 closed defect (fixed)

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

Reported by: Digitoxin1 Owned by: sluicebox
Priority: normal Component: Engine: SCI
Version: 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 (3)

comment:1 by Digitoxin1, 7 years ago

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 by csnover, 7 years ago

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.

comment:3 by sluicebox, 5 years ago

Owner: set to sluicebox
Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.