jellyfin / jellyfin-media-player

Jellyfin Desktop Client
GNU General Public License v2.0
2.87k stars 297 forks source link

[Win 11] JMP crashes when using audio device at KVM switch and switching #715

Open lobneroO opened 6 days ago

lobneroO commented 6 days ago

Describe the bug When having Jellyfin Media Player open for but playback is paused, using an audio device connected to a KVM switch and then switching, JMP silently closes (crashes, I guess, there is no feedback, the program is just gone).

To Reproduce Steps to reproduce the behavior:

  1. On a setup with a KVM switch, on Windows 11 open Jellyfin Media Player
  2. Start music playback with an audio device connected to the KVM switch, then pause it
  3. On the KVM switch, switch to a different PC
  4. Notice that JVM on the Windows 11 system closes after a few seconds

Expected behavior JVM should stay open or at least give a message about the crash

Desktop (please complete the following information):

Additional context Audio device is an external, usb connected Focusrite Scarlett 2i2 2nd Gen. KVM switch switches Mouse, Keyboard, Audio Device and (displayport connected) Display. I couldn't reproduce it, if no music was played beforehand (i.e. no play at all after opening JMP).

Logs attached, but I couldn't see any errors JellyfinMediaPlayer.zip