MuseScore
MuseScore copied to clipboard
Disconnecting Bluetooth Headphones during a session crashes MuseScore (no other audio output connected)
Issue type
Crash or freeze
Bug description
Connecting or disconnecting my headphones during a session crashes MuseScore
Steps to reproduce
- Open MuseScore
- Connect or disconnect Sony WF-1000XM4
- Crash
Screenshots/Screen recordings
Please let me know if you need more information, I do not have this issue on my MacBook. Reproduced on 4.0.2 and nightly.
MuseScore Version
OS: Windows 11 Version 2009 or later, Arch.: x86_64, MuseScore version (64-bit): 4.1.0-231510309, revision: github-musescore-musescore-cf13ccc
Regression
Choose option...
Operating system
Windows 11
Additional context
@cbjeukendrup I was hoping you could take a look at this, I'm wondering if there is any relation to https://github.com/musescore/MuseScore/issues/17662
I reproduced this a few times on another device, but after the first crash it wasn't reproducing.
Adding to 4.1 unless anyone feels otherwise.
It can't be the same as https://github.com/musescore/MuseScore/issues/17662, because that crash happens inside macOS-specific code. But I'll have a look.
@DmitryArefiev pls try with your set of headphones
@bkunda I can't get a crash with my Bose 700 (bluetooth headphones) on 4.1 nightly build, Win10
@zacjansheski Can you try it on MS 4.0 please?
There is a noticable improvement in the current master, but I am still able to reproduce after a few tries. That being said, I think it would be ok to de-prioritize especially if it is only with the Sony WF-1000XM4 HeadphoneCrashMaster6-26-2023.zip
4.0.2 crashes
@zacjansheski I meant 4.0.0. Can you check in first release of MS to make sure it's not so new bug?
Same crash on 4.0.0
Based on other's testing, I think this has to do with not having an alternative output source when the headphones are disconnected. Could be the same issue as https://github.com/musescore/MuseScore/issues/18161
Updating title
I encountered a very similar problem [OS: Windows 10 Version 2009, Arch.: x86_64, MuseScore version (64-bit): 4.0.2-230651553, revision: github-musescore-musescore-dbe7c6d] when switching on my Bluetooth headset while MuseScore it is playing via the SPDIF output. Windows usually switches the music over to the headset when running other programs.
Can confirm I was able to reproduce this (unfortunately, I could only test on the Sony XM4, which was already used to report this issue). FWIW though, I could not crash the program when an alternative audio output device was available (in my case, my LG monitor - which doesn't even have speakers, lol). When I removed the speakerless LG monitor from my available audio units (leaving nothing except my bluetooth headphones), MS crashed as soon as the headphones were disconnected.
If this is indeed the crux of the problem, it seems like it will only be encountered on machines that don't have any speakers or other available audio outputs, which thankfully limits the field quite a bit.
I'm able to cleanly reproduce this issue with my bose QC 35 on a windows 10 laptop with MS 4.0.2. As soon as my headphones connect, MS crashes and won't come back up, then works fine as soon as I disconnect them. Thing is, being a laptop, it has built-in (working) speakers, so maybe the thing about only affecting machines with no other output may not be necessarily the case.
@arkssheo It is important to test this with (the pre-release versions of) 4.1 specifically. Some of the crashes that occurred in 4.0.2 have been fixed, and I think there is a good chance that your issue was fixed too.
@cbjeukendrup I'll give it a try, thanks!
@cbjeukendrup I just tested and it works great! As a side-note, using the "hands free" mode of the headphones lags the software significantly, which is odd, but thankfully it works perfectly with the non-hands free mode. I can confirm it doesn't crash anymore on either mode, nor does it crash when connecting/disconnecting BT headphones as of 4.1.0.
Thanks for checking! It might be good to open a separate issue about the lag in handsfree mode (and include a description of what handsfree mode does exactly).
it seems like it will only be encountered on machines that don't have any speakers or other available audio outputs, which thankfully limits the field quite a bit.
Sorry, no. I just had MuseScore crash when I turned off my Razer Opus (a bluetooth headset). I’m using a laptop with functioning internal speakers, so there is another available audio output.
Windows info:
Edition Windows 10 Home N Version 22H2 Build 19045.4170 Performance Windows Feature Experience Pack 1000.19054.1000.0
MuseScore info:
OS: Windows 10 Version 2009 or later, Arch.: x86_64, MuseScore version (64-bit): 4.2.1-240230937, revision: github-musescore-musescore-d757433