Mopidy crashes on Debian Buster

During the last two weeks I experienced two Mopidy crashes, that produced this log output:

mopidy[631]: #012Trying to dispose element typefind, but it is in READY instead of the NULL state.#012You need to explicitly set elements to the NULL state before#012dropping the final reference, to allow them to clean up.#012This problem may also be caused by a refcounting bug in the#012application or some element.

mopidy[631]: gst_mini_object_unref: assertion ‘GST_MINI_OBJECT_REFCOUNT_VALUE (mini_object) > 0’ failed
kernel: [28260.531632] do_general_protection: 13 callbacks suppressed
kernel: [28260.531635] traps: mopidy[715] general protection ip:7f8b534359ea sp:7f8b4b7fca50 error:0 in libglib-2.0.so.0.5800.3[7f8b533e5000+7e000]

While I don’t remember ‘doing anything’ when this first happened, I was editing the track list in the second instance. Restarted the mopidy service and all was well, apart from leaving my tracklist empty.

Any ideas as to the cause of these crashes? Thanks in advance!

I have never seen those before. It would be helpful to know your mopidyctl deps and what backends you were using at the time. Chances are these are GStreamer/Glib/PyGST issues rather than ours but I am afraid we would probably need a reproducible test-case if we wanted to try and fix them.

Thanks for your prompt reply! For whatever it’s worth, here’s the output of ‘mopidyctl deps’:

Running “/usr/bin/mopidy --config /usr/share/mopidy/conf.d:/etc/mopidy/mopidy.conf deps” as user mopidy
Executable: /usr/bin/mopidy
Platform: Linux-4.19.0-12-amd64-x86_64-with-debian-10.6
Python: CPython 3.7.3 from /usr/lib/python3.7
Mopidy: 3.0.2 from /usr/lib/python3/dist-packages
Mopidy-Spotify: 4.0.1 from /usr/lib/python3/dist-packages
Mopidy-MPRIS: 3.0.1 from /usr/lib/python3/dist-packages
Mopidy-Mobile: 1.9.1 from /usr/local/lib/python3.7/dist-packages
Mopidy: 3.0.2 from /usr/lib/python3/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Mopidy-MPD: 3.0.0 from /usr/lib/python3/dist-packages
Mopidy-MusicBox-Webclient: 3.1.0 from /usr/local/lib/python3.7/dist-packages
Mopidy: 3.0.2 from /usr/lib/python3/dist-packages
Pykka: 2.0.2 from /usr/lib/python3/dist-packages
setuptools: 40.8.0 from /usr/lib/python3/dist-packages
Mopidy-TuneIn: 1.0.0 from /usr/lib/python3/dist-packages
GStreamer: 1.14.4.0 from /usr/lib/python3/dist-packages/gi
Detailed information:
Python wrapper: python-gi 3.30.4
Relevant elements:
Found:
uridecodebin
souphttpsrc
appsrc
alsasink
osssink
oss4sink
pulsesink
id3demux
id3v2mux
lamemp3enc
mpegaudioparse
mpg123audiodec
vorbisdec
vorbisenc
vorbisparse
oggdemux
oggmux
oggparse
flacdec
flacparse
shout2send
Not found:
flump3dec
mad

To add some context: I had been using mopidy for about 3 months without any hassle before this issue came up. Except for keeping Debian up to date, I didn’t change anything on this box for some time, so yours truly is probably not the one to blame :).

Hopefully this issue will vanish into thin air following updates to GStreamer and / or some other component. (Wouldn’t be the first time something like that happens.)