Mopidy crashes with free(): invalid pointer

Latest Mopidy on latest Raspbian on Pi 4. After a few hours the server crashes with these lines in the log:

Nov 16 19:01:40 pi4 mopidy[1617]: free(): invalid pointer
Nov 16 19:01:40 pi4 systemd[1]: mopidy.service: Main process exited, code=killed, status=6/ABRT
Nov 16 19:01:40 pi4 systemd[1]: mopidy.service: Failed with result ‘signal’.

Pretty vanilla install, but here’s my config:

[raspberry-gpio]
enabled = true
bcm24 = play_pause,active_low,250
bcm16 = volume_down,active_low,250
bcm6 = next,active_low,250
bcm5 = volume_up,active_low,250

[file]
enabled = true
media_dirs = /home/pi/Music
show_dotfiles = false
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
follow_symlinks = false
metadata_timeout = 1000

[pidi]
enabled = true
display = st7789
rotation = 270

[mpd]
hostname = 0.0.0.0

[http]
hostname = 0.0.0.0

[audio]
mixer_volume = 20
output = alsasink device=hw:sndrpihifiberry

[spotify]
enabled = true
username = 112155299
password = Oa581I4r#5mJ
client_id = ea32b8de-aaa0-49de-b7b1-b5b30d40a52e
client_secret = Wckptdt0L9Gj6l76eHwMK-EQy-aSuFsEqjaJBiUoezI=
bitrate = 320

[iris]
enabled = true
country = NL
locale = en_US

Please let me know if more information is required.

So far all of these crashes people have reported here are due to mopidy-pidi. I’d suggest disabling the plugin and verifying the crashing stops. Then report the issue on the mopidy-pidi bug tracker.

Hi both!

I have exactly same issue. Pi zero + pirateaudio + mopidy-pidi onboard as well. Is there any way to ensure this is an issue with mopidy-pidi other than elimination by disabling this extension?

//edit: I found this thread: Mopidy crashes when pidi is enabled · Issue #12 · pimoroni/mopidy-pidi · GitHub
I’ve just updated spidev running: sudo python3 -m pip install --upgrade spidev
Let’s see whether it helps… @Jetze_Mellema, any chance you already did that?

Thanks.

OK, so upgrading spidev to 3.5 definitely helps. 3.4 is faulty.