Skip to content

Windows client crashes after wake up #28

Description

@gerroon

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.

snapcast/snapcast#856

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

thanks

Activity

  1. stijnvdb88 commented on May 8, 2021

    @stijnvdb88
    Owner

    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.

  2. gerroon commented on May 8, 2021

    @gerroon
    Author

    Hi

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

    I will test your suggestion.

  3. blind-oracle commented on May 14, 2021

    @blind-oracle

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

  4. Man-Grove commented on Aug 8, 2023

    @Man-Grove

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions