Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RecvError panic during spotifyaudiosrc playback #352

Open
kingosticks opened this issue Mar 27, 2023 · 3 comments
Open

RecvError panic during spotifyaudiosrc playback #352

kingosticks opened this issue Mar 27, 2023 · 3 comments
Labels
A-spotifyaudiosrc Area: spotifyaudiosrc (GStreamer/librespot) C-bug Category: This is a bug

Comments

@kingosticks
Copy link
Member

Mar 27 15:53:58 raspberrypi mopidy[30917]: thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', audio/spotify/src/spotifyaudiosrc/imp.rs:341:37
Mar 27 15:53:58 raspberrypi mopidy[30917]: note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Mar 27 15:53:58 raspberrypi mopidy[30917]: ERROR    [MainThread] mopidy.audio.gst GStreamer error: Panicked: called `Result::unwrap()` on an `Err` value: RecvError
Mar 27 15:53:58 raspberrypi mopidy[30917]: DEBUG    [MainThread] mopidy.audio.gst Got ERROR bus message: error=GLib.Error('Panicked: called `Result::unwrap()` on an `Err` value: RecvError', 'gst-library-error-quark', 1) debug=None
Mar 27 15:53:58 raspberrypi mopidy[30917]: DEBUG    [MainThread] mopidy.audio.gst Changing state to GST_STATE_NULL: result=GST_STATE_CHANGE_SUCCESS

It's also not very obvious what version of spotifyaudiosrc is being used. Logging/debug needs improvements.

@kingosticks kingosticks added C-bug Category: This is a bug A-spotifyaudiosrc Area: spotifyaudiosrc (GStreamer/librespot) labels Mar 27, 2023
@beaverking1212
Copy link
Contributor

Does this crash mopidy or playback of next song works? Can we reproduce this error?

@kingosticks
Copy link
Member Author

I think I had to restart Mopidy but that might have been because my USB soundcard was emitting a horrible loud noise following this.

I've not been able to reproduce it since.

@simmel
Copy link

simmel commented Feb 6, 2024

thread '<unnamed>' panicked at 'called `Result::unwrap()` on an `Err` value: RecvError', audio/spotify/src/spotifyaudiosrc/imp.rs:250:37
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
ERROR    2024-02-05 14:55:35,983 [25858:MainThread] mopidy.audio.gst
  GStreamer error: Panicked: called `Result::unwrap()` on an `Err` value: RecvError

I had a similar (the same?) panic with this code https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs/-/blob/9556abb162aee996296ce893238e2c1bb5842704/audio/spotify/src/spotifyaudiosrc/imp.rs#L250

I did a local patch to see if that fixed it but I can't reproduce the error. For me it comes after a long time and usually while (or close to) switching between songs. I can wait it out but it takes a long time for the gst plugin to recover. I suspect setting some timeouts somewhere will make it recover faster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-spotifyaudiosrc Area: spotifyaudiosrc (GStreamer/librespot) C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants