Problem with: Assertion `state != DecoderState::START' when using seekcur

Discuss client development (or even MPD development if you feel so inclined), ask questions about the client libs, MPD feature requests from client developers, etc...
Post Reply
jan
Posts: 2
Joined: December 30th, 2018, 3:06 pm

Problem with: Assertion `state != DecoderState::START' when using seekcur

Post by jan » December 30th, 2018, 6:15 pm

Hi,

I'm developing a client for mpd and I observe a strange behaviour. I'm not sure whether I'm using the networking API in a wrong way or whether that is a problem of mpd.

In my application I have a slider to seek in the currently played song. It works well most of the time. It seems, the problem appears only when the slider is moved too fast back and forth.

When moving the slider back and forth too fast, suddenly mpd closes with the following assertion:

Code: Select all

mpd: ../src/decoder/Control.cxx:127: void DecoderControl::Seek(SongTime): Assertion `state != DecoderState::START' failed.
(when I comment out that line in Control.cxx, it works)

To seek in the currently played song,

Code: Select all

seekcur TIME
is sent to mpd.

The problem also seems to appear when I limit 'TIME' in the 'seekcur' command to e.g. 100 in a >300 seconds long song.

The problem does not appear when mpd is in pause mode (not playing any song)

Any idea what could be going on?

max
Forum team
Posts: 893
Joined: January 15th, 2013, 3:43 pm

Re: Problem with: Assertion `state != DecoderState::START' when using seekcur

Post by max » December 30th, 2018, 9:14 pm


jan
Posts: 2
Joined: December 30th, 2018, 3:06 pm

Re: Problem with: Assertion `state != DecoderState::START' when using seekcur

Post by jan » December 30th, 2018, 11:20 pm

Version info:
https://pastebin.com/raw/gwCG1ASu

MPD conf:
https://pastebin.com/raw/HFaVS6FQ

mpd --verbose
https://pastebin.com/raw/SMJZKbSc

Should I file a bug report?

Thanks!

max
Forum team
Posts: 893
Joined: January 15th, 2013, 3:43 pm

Re: Problem with: Assertion `state != DecoderState::START' when using seekcur

Post by max » December 31st, 2018, 3:53 pm

Does the help page say "If MPD crashes, do not ask for help! Submit a bug report instead (with a full backtrace)." or does it say something else about MPD crashes?

Post Reply