Disconnecting audio device / deactivating Bluetooth is able to kill MuseScore

• Dec 14, 2022 - 23:10
Reported version
4.0
Type
Functional
Frequency
Many
Severity
S2 - Critical
Reproducibility
Always
Status
GitHub issue
Regression
No
Workaround
No
Project

MuseScore is killed if the audio output is sent to a Bluetooth device and Bluetooth becomes deactivated or the connected Bluetooth device is disconnected. It is not necessary that something is played; being connected to earphones alone suffices.

Steps to reproduce:
1. Open a sheet.
2. Let MuseScore output audio over Bluetooth (e.g. Bluetooth earphones) (Bearbeiten... -> Voreinstellungen -> Ein-/Ausgabe -> Audiogerät)
3. Deactivate Bluetooth.
4. Admire how MuseScore crashes immediately.

Both ways, deactivating Bluetooth and disconnecting the Bluetooth device, were tested to kill MuseScore immediately.

The expected behaviour should be: Reset the audio output device to System default and inform the user with a message window.

Please note that this issue may arise with audio input devices or similar devices (MIDI?) too.

At least for me, it doesn't corrupt the sheet, despite not-saved changes may be lost. Therefore, I decided to not choose "S1 -- Blocker" as priority. Or, to say it with a German proverb: No backup no pity.

My MuseScore version seems to be the latest stable version (the "Reported version" property has no entry for 4.x, only for 4.x-dev):
OS: Windows 10 Version 2009, Arch.: x86_64, MuseScore version (64-bit): 4.0.0-223472200, revision: 5485621
I did not test the buggy behaviour by using other versions.


Comments

Frequency Few Many
Reported version 4.x-dev 4.0

I have this problem frequently. Sometimes I have to restart musescore several times to get it to start using the audio output of headphones or bluetooth speaker that I have selected. 3.6 was just loss of sound 4.0 is crashing completely and there is a horrible crackle and loss of part sound on many notes, even after it is restarted

same problem with 4.0.1 : MS closes 'unexpectedly' a few seconds after the bluetooth speaker (SRS-X77) turns off. Kindly note that other sound output are functional ; still, MS crashes.