clementine-player / Clementine

:tangerine: Clementine Music Player
https://www.clementine-player.org/
GNU General Public License v3.0
3.77k stars 677 forks source link

GStreamer error "Disconnected: Bad state" when songs end #6961

Open polsvoice opened 3 years ago

polsvoice commented 3 years ago

Before posting

Please follow the steps below and check the boxes with [x] once you did the step.

System information

Please provide information about your system and the version of Clementine used.

Expected behaviour / actual behaviour

Error message appears when next song starts to play: Disconnected: Bad State.

Steps to reproduce the problem (only for bugs)

I haven't yet identified the steps to reproduce. Playing the song over again doesn't reproduce the error. Here's the output, though:

18:47:44.117 ERROR GstEnginePipeline:725            4 "../gst-plugins-good/ext/pulse/pulsesink.c(412): gst_pulsering_is_dead (): /GstPipeline:audio-pipeline-4/GstBin:audiobin/GstAutoAudioSink:autoaudiosink-58/GstPulseSink:autoaudiosink-58-actual-sink-pulse"
18:47:44.117 WARN  GstEngine:713                    Gstreamer error: "Disconnected: Bad state"
18:47:44.118 ERROR logging:66(GLib)                 Source ID 15 was not found when attempting to remove it

(The source ID is different each time.)

jbroadus commented 3 years ago

I see that last line quite a bit, but don't recall ever seeing the gst_pulsering_is_dead message.

polsvoice commented 3 years ago

I found this, although I'm unsure if it sheds any light on it. The maddening thing is that if I play the same file a second time, it won't happen. It also doesn't seem to affect playback at all. It's just an annoying dialog box.

jbroadus commented 3 years ago

Wonder if this was related to #6966. Could you try the latest and see if it still repros?

polsvoice commented 3 years ago

It's still doing it.

peterjcarroll commented 3 years ago

I have this same issue, it definitely occurs with certain files. I'm also running on Manjaro.

sebastian-65 commented 3 years ago

Same issue here, Arch linux.

tulth commented 3 years ago

Edited: Similar issue, arch linux. I get the "disconnected bad state" pop up. It happens randomly about once per 1-4 hours or so ?

Here is what I captured in the log when I got the pop up saying disconnected bad state:

11:15:51.779 DEBUG GstEnginePipeline:868            Decoder bin pad added: src_0
11:15:51.779 DEBUG GstEnginePipeline:881            Current caps: audio/x-raw, format=(string)F32LE, layout=(string)interleaved, rate=(int)44100, channels=(int)2, channel-mask=(bitmask)0x0000000000000003
11:15:52.875 ERROR GstEnginePipeline:725            12 "../gst-plugins-good/ext/pulse/pulsesink.c(412): gst_pulsering_is_dead (): /GstPipeline:audio-pipeline-12/GstBin:audiobin/GstAutoAudioSink:autoaudiosink-212/GstPulseSink:autoaudiosink-212-actual-sink-pulse"
11:15:52.876 WARN  GstEngine:713                    Gstreamer error: "Disconnected: Bad state"
11:15:52.876 ERROR logging:66(GLib)                 Source ID 26 was not found when attempting to remove it

As far as I can tell, all of my audio is doing 44100Hz, 2 channels

thomas-mckay commented 3 years ago

Same for me, Manjaro/KDE on kernel 5.4 LTS, Clementine 1.4rc2. It would do it on previous kernels and previous versions of Clementine though but I never bothered with it because it didn't happen too often.

Recently, I've started listening more to Hi-res files (96-192kHz, 16-32bits) and it started happening a lot more. I can't say for certain that it never happens with regular 44.1kHz/16bits files but it is certainly more frequent, thus noticeable, when playing Hi-Res files. I'll be listening for hours of 44.1kHz/16bits contents and it won't happen a single time, then I'll pop a Hi-res album and it'll be at least twice every ten songs. For instance, the album I was listening to just now was 176kHz / 24 bits and it happened once on track 6, after 17 minutes of total playback.

One thing I've noticed is that it takes a bit of listening time for the bug to happen. Here 17mn, but it varies. I think that's why if you try to replay just the song, it doesn't happen. And like the others who have this problem, it doesn't seem to affect playback. My output is a Nu-Prime IDA-8 connected via USB3, if that helps.

Funny thing, I get no logs in journalctl at the time this happens. Is this normal? From looking around it seems that debug logs are only available with a compile-time variable but shouldn't I get warnings and errors in journalctl?

EDIT: Happened again, same type of content, but this time after 39mn of playback. It seems to always happens just as a song ends.

sukrosono commented 3 years ago

well, I am on Version 1.4 rc2 , still doing so. I think I want to use the bleeding edge version. Hopefully, later we can use https://github.com/chaotic-aur to get the bleeding.

toddmaddison commented 2 years ago

Am on Version 1.4 rc2 also, running on a Raspberry Pi 3, Raspbian 11 (Bullseye). Just did a fresh/clean install, only additional software installed is Clementine (the box is just a music server).

Same behavior - same error, same difficulty in reproducibility.

No noticeable impact on performance, system continues to play, just annoying to have multiple error messages whenever I check in on it.

ingox-- commented 2 years ago

Also on 1.4 rc2 i experienced the same bug for the first time after years of using clementine. Rebooting the system solved it for now. A practical solution would be to just remove the popup dialog box.

jefferysmall commented 1 year ago

I can confirm this as well.

Clementine version 1.4.0rc1-873-g3471134d5 (and earlier) Xubuntu 22.04.1

As others have said, it pops up the message but then Clementine goes ahead playing without issue.

clememtine_03