Snap.Net icon indicating copy to clipboard operation
Snap.Net copied to clipboard

Windows client crashes after wake up

Open gerroon opened this issue 3 years ago • 4 comments

Hi

I originally filed this bug on Snapcast's but and badaix could not find the problem. So I tried Snap.net and it seems to suffer from the same snapclient crash after the wake up.

https://github.com/badaix/snapcast/issues/856

I am hoping that @ stijnvdb88 might be able to offer some insight into this given his app is a Win app.

thanks

gerroon avatar Apr 28 '21 15:04 gerroon

Hi! I tried to reproduce it on my machine, but without luck. Does this happen with all your audio devices? I have seen something like this before, but it only happens with devices that sleep when the pc does. Eg. my monitor has hdmi audio, but when the monitor goes to sleep that causes snapclient to crash. The workaround for that has been the "Auto-restart on error" checkbox in the Snap.Net device settings: image

It's not a great solution of course, ideally it doesn't crash at all and just auto-restarts by itself when the device comes back. You can also try using SnapClient.Net to confirm we're talking about the same issue (the other checkbox in that window - it requires a restart of the device to apply, and the device will show up as a new one). With SnapClient.Net I believe it doesn't crash, but the device also stops playing music altogether after waking up...which is worse. If there was an exception, at least we could catch it and restart the device then.

stijnvdb88 avatar May 08 '21 10:05 stijnvdb88

Hi

This happens only on my Windows 10 x64, and I have one such device.

I will test your suggestion.

gerroon avatar May 08 '21 16:05 gerroon

For me the problem after wake up is a bit different:

  • The broadcast and playback were stopped at the time of sleep
  • After wake up I'm starting the broadcast from foobar2k through VAC - it begins ok, then almost instantly goes choppy, completely unusable
  • After I pause the foobar2k it still plays for a few seconds although snapserver buffer is 100ms
  • The playback situation is more or less the same - plays badly from snapserver
  • Other audio apps are ok, if I change output from VAC to normal soundcard it's flawless

The main problems is that this cannot be solved by restarting Snap.Net, I need a full reboot, which is strange. Maybe VAC is to blame...

blind-oracle avatar May 14 '21 06:05 blind-oracle

Related problem here: after sleeping the computer (with a Realtek integrated sound card, optical out) the stream doesn't work when waking up again. Pausing + pressing play on the device in the "Player" UI makes the stream functional again. Using v0.27.

Man-Grove avatar Aug 08 '23 14:08 Man-Grove