MuseScore icon indicating copy to clipboard operation
MuseScore copied to clipboard

Disconnecting Bluetooth Headphones during a session crashes MuseScore (no other audio output connected)

Open zacjansheski opened this issue 2 years ago • 18 comments

Issue type

Crash or freeze

Bug description

Connecting or disconnecting my headphones during a session crashes MuseScore

Steps to reproduce

  1. Open MuseScore
  2. Connect or disconnect Sony WF-1000XM4
  3. 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

Bluetooth_Headphones_Crash.zip

zacjansheski avatar Jun 02 '23 19:06 zacjansheski

@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.

BluetoothCrash2nd_Device.zip

zacjansheski avatar Jun 05 '23 14:06 zacjansheski

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.

cbjeukendrup avatar Jun 05 '23 16:06 cbjeukendrup

@DmitryArefiev pls try with your set of headphones

bkunda avatar Jun 26 '23 13:06 bkunda

@bkunda I can't get a crash with my Bose 700 (bluetooth headphones) on 4.1 nightly build, Win10

DmitryArefiev avatar Jun 26 '23 19:06 DmitryArefiev

@zacjansheski Can you try it on MS 4.0 please?

DmitryArefiev avatar Jun 26 '23 19:06 DmitryArefiev

4.0.2 crashes

4-0-2HeadphoneCrash.zip

zacjansheski avatar Jun 26 '23 19:06 zacjansheski

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

zacjansheski avatar Jun 26 '23 20:06 zacjansheski

4.0.2 crashes

4-0-2HeadphoneCrash.zip

@zacjansheski I meant 4.0.0. Can you check in first release of MS to make sure it's not so new bug?

DmitryArefiev avatar Jun 27 '23 08:06 DmitryArefiev

Same crash on 4.0.0

zacjansheski avatar Jun 27 '23 17:06 zacjansheski

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

zacjansheski avatar Jun 30 '23 15:06 zacjansheski

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.

FredStober avatar Jul 02 '23 15:07 FredStober

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.

bkunda avatar Jul 03 '23 13:07 bkunda

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 avatar Jul 08 '23 15:07 arkssheo

@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 avatar Jul 08 '23 16:07 cbjeukendrup

@cbjeukendrup I'll give it a try, thanks!

arkssheo avatar Jul 08 '23 16:07 arkssheo

@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.

arkssheo avatar Jul 08 '23 16:07 arkssheo

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).

cbjeukendrup avatar Jul 08 '23 17:07 cbjeukendrup

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

bleistift-zwei avatar Apr 05 '24 21:04 bleistift-zwei