Clementine icon indicating copy to clipboard operation
Clementine copied to clipboard

GStreamer error "Disconnected: Bad state" when songs end

Open polsvoice opened this issue 3 years ago • 12 comments

Before posting

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

  • [ x ] I checked the issue tracker for similar issues
  • [ x ] I checked the changelog if the issue is already resolved
  • [ x ] I tried the latest Clementine build from here

System information

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

  • Operating System: Manjaro Linux 21.0
  • Clementine version: 1.4.0rc1-521-gb68b12010

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

polsvoice avatar Mar 26 '21 01:03 polsvoice

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

jbroadus avatar Mar 27 '21 05:03 jbroadus

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.

polsvoice avatar Mar 27 '21 20:03 polsvoice

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

jbroadus avatar Apr 04 '21 04:04 jbroadus

It's still doing it.

polsvoice avatar Apr 07 '21 13:04 polsvoice

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

peterjcarroll avatar Apr 09 '21 18:04 peterjcarroll

Same issue here, Arch linux.

sebastian-65 avatar Jun 02 '21 17:06 sebastian-65

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

tulth avatar Aug 10 '21 00:08 tulth

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.

thomas-mckay avatar Aug 23 '21 15:08 thomas-mckay

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.

sukrosono avatar Nov 18 '21 07:11 sukrosono

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.

toddmaddison avatar Dec 19 '21 14:12 toddmaddison

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.

ingox-- avatar Oct 09 '22 11:10 ingox--

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

jefferysmall avatar Mar 13 '23 21:03 jefferysmall