Media scanning error message

Hello
I have a reasonably large hard drive with 68692 files mp3s.
When I launch :

sudo mopidyctl local scan

about half way through the scan, it stops with the error below.

INFO Scanned 31900 of 68692 files in 2100s, ~2422s left.

(mopidy:2960): GLib-ERROR **: 14:50:59.409: …/…/…/glib/gmem.c:170: failed to allocate 524288 bytes
Trace/breakpoint trap

The microsd card has 15Gigs available.

I cannot find any mention of this error on the forum, so maybe someone as an idea how to get around it?
Thanks

This sounds a bit like https://github.com/mopidy/mopidy/issues/1648. We need your mopidy deps, mopidy config, more info about your system, and the log showing what file(s) this was on.

Thank you for your interest. Below are the logs mopidy deps , mopidy config ,

I’m no dev person , so could you give me an idea where the logs you need could be?

admin@pimusic:~ $ mopidy deps
Executable: /usr/local/bin/mopidy
Platform: Linux-4.19.75-v7l±armv7l-with-debian-10.1
Python: CPython 2.7.16 from /usr/lib/python2.7
Mopidy: 2.3.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
tornado<6,>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages
backports-abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.12.0 from /usr/lib/python2.7/dist-packages
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages
Mopidy-MusicBox-Webclient: 2.5.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
Mopidy>=1.1.0: 2.3.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
tornado<6,>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages
backports-abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.12.0 from /usr/lib/python2.7/dist-packages
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages
Mopidy-Mobile: 1.9.0 from /home/admin/.local/lib/python2.7/site-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
Mopidy>=0.19: 2.3.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
tornado<6,>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages
backports-abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.12.0 from /usr/lib/python2.7/dist-packages
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages
Mopidy-Iris: 3.41.2 from /home/admin/.local/lib/python2.7/site-packages
ConfigObj>=5.0.6: 5.0.6 from /home/admin/.local/lib/python2.7/site-packages
six: 1.12.0 from /usr/lib/python2.7/dist-packages
requests>=2.0.0: 2.21.0 from /usr/lib/python2.7/dist-packages
setuptools>=3.3: 40.8.0 from /usr/lib/python2.7/dist-packages
Mopidy-Local-Images>=1.0: 1.0.0 from /home/admin/.local/lib/python2.7/site-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
uritools>=1.0: 2.2.0 from /home/admin/.local/lib/python2.7/site-packages
ipaddress; python_version == “2.7”: 1.0.17 from /usr/lib/python2.7/dist-packages
Mopidy>=1.1: 2.3.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
tornado<6,>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages
backports-abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.12.0 from /usr/lib/python2.7/dist-packages
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages
Mopidy>=2.0: 2.3.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
tornado<6,>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages
backports-abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.12.0 from /usr/lib/python2.7/dist-packages
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages
Mopidy-API-Explorer: 1.0.1 from /home/admin/.local/lib/python2.7/site-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
Mopidy>=0.19: 2.3.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
tornado<6,>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages
backports-abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.12.0 from /usr/lib/python2.7/dist-packages
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages
Mopidy-Moped: 0.7.1 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
Mopidy>=1.0.0: 2.3.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
tornado<6,>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages
backports-abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.12.0 from /usr/lib/python2.7/dist-packages
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages
Mopidy-Local-Images: 1.0.0 from /home/admin/.local/lib/python2.7/site-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
uritools>=1.0: 2.2.0 from /home/admin/.local/lib/python2.7/site-packages
ipaddress; python_version == “2.7”: 1.0.17 from /usr/lib/python2.7/dist-packages
Mopidy>=1.1: 2.3.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
tornado<6,>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages
backports-abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.12.0 from /usr/lib/python2.7/dist-packages
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages
Mopidy-Spotify: 3.1.0 from /usr/lib/python2.7/dist-packages
Mopidy>=2.0: 2.3.0 from /usr/local/lib/python2.7/dist-packages
setuptools: 40.8.0 from /usr/lib/python2.7/dist-packages
tornado<6,>=5: 5.1.1 from /usr/local/lib/python2.7/dist-packages
backports-abc>=0.4: 0.5 from /usr/local/lib/python2.7/dist-packages
singledispatch: 3.4.0.3 from /usr/local/lib/python2.7/dist-packages
six: 1.12.0 from /usr/lib/python2.7/dist-packages
futures: 3.3.0 from /usr/local/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
requests>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages
Pykka>=1.1: 2.0.1 from /usr/local/lib/python2.7/dist-packages
pyspotify>=2.0.5: 2.0.5 from /usr/lib/python2.7/dist-packages
cffi>=1.0.0: 1.12.2 from /usr/lib/python2.7/dist-packages
requests>=2.0: 2.21.0 from /usr/lib/python2.7/dist-packages
GStreamer: 1.14.4.0 from /usr/lib/python2.7/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

admin@pimusic:~ $ mopidy config
[core]
cache_dir = $XDG_CACHE_DIR/mopidy
config_dir = $XDG_CONFIG_DIR/mopidy
data_dir = $XDG_DATA_DIR/mopidy
max_tracklist_length = 10000
restore_state = false

[logging]
color = true
console_format = %(levelname)-8s %(message)s
debug_format = %(levelname)-8s %(asctime)s [%(process)d:%(threadName)s] %(name)s\n %(message)s
debug_file = mopidy.log
config_file =

[audio]
mixer = software
mixer_volume =
output = autoaudiosink
buffer_time =

[proxy]
scheme =
hostname =
port =
username =
password =

[mobile]
enabled = true
title = Mopidy Mobile on $hostname
ws_url =

[local-images]
enabled = true
library = json
base_uri = /images/
image_dir =
album_art_files =
*.jpg
*.jpeg
*.png

[iris]
enabled = true
country = NZ
locale = en_NZ
spotify_authorization_url = https://jamesbarnsley.co.nz/iris/auth_spotify.php
lastfm_authorization_url = https://jamesbarnsley.co.nz/iris/auth_lastfm.php
genius_authorization_url = https://jamesbarnsley.co.nz/iris/auth_genius.php
snapcast_enabled = false
snapcast_host = localhost
snapcast_port = 1705
snapcast_buffer_size = 8192

[api_explorer]
enabled = true

[mpd]
enabled = true
hostname = 127.0.0.1
port = 6600
password =
max_connections = 20
connection_timeout = 60
zeroconf = Mopidy MPD server on $hostname
command_blacklist =
listall
listallinfo
default_playlist_scheme = m3u

[http]
enabled = true
hostname = 127.0.0.1
port = 6680
static_dir =
zeroconf = Mopidy HTTP server on $hostname
allowed_origins =
csrf_protection = true

[stream]
enabled = true
protocols =
http
https
mms
rtmp
rtmps
rtsp
metadata_blacklist =
timeout = 5000

[m3u]
enabled = true
base_dir =
default_encoding = latin-1
default_extension = .m3u8
playlists_dir =

[softwaremixer]
enabled = true

[file]
enabled = true
media_dirs =
$XDG_MUSIC_DIR|Music
~/|Home
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip
show_dotfiles = false
follow_symlinks = false
metadata_timeout = 1000

[local]
enabled = false ; Extension disabled due to config errors.
library = json
media_dir = ; Must be set.
scan_timeout = 1000
scan_flush_threshold = 100
scan_follow_symlinks = false
excluded_file_extensions =
.directory
.html
.jpeg
.jpg
.log
.nfo
.pdf
.png
.txt
.zip

[musicbox_webclient]
enabled = true
musicbox = false
websocket_host =
websocket_port =
on_track_click = PLAY_ALL

[moped]
enabled = true

[spotify]
enabled = false ; Extension disabled due to config errors.
username = ; Must be set.
password = ; Must be set.
client_id = ; Must be set.
client_secret = ; Must be set.
bitrate = 160
volume_normalization = true
private_session = false
timeout = 10
allow_cache = true
allow_network = true
allow_playlists = true
search_album_count = 20
search_artist_count = 10
search_track_count = 50
toplist_countries =

admin@pimusic:~ $ mopidy -vvv
INFO 2019-10-18 07:41:50,154 [5201:MainThread] mopidy.main
Starting Mopidy 2.3.0
DEBUG 2019-10-18 07:41:50,170 [5201:MainThread] mopidy.ext
Loading entry point: mobile = mopidy_mobile:Extension
DEBUG 2019-10-18 07:41:50,174 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-Mobile 1.9.0
DEBUG 2019-10-18 07:41:50,175 [5201:MainThread] mopidy.ext
Loading entry point: local-images = mopidy_local_images:Extension
DEBUG 2019-10-18 07:41:50,178 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-Local-Images 1.0.0
DEBUG 2019-10-18 07:41:50,179 [5201:MainThread] mopidy.ext
Loading entry point: iris = mopidy_iris:Extension
DEBUG 2019-10-18 07:41:50,838 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-Iris 3.41.2
DEBUG 2019-10-18 07:41:50,839 [5201:MainThread] mopidy.ext
Loading entry point: api_explorer = mopidy_explorer:APIExplorerExtension
DEBUG 2019-10-18 07:41:50,842 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-API-Explorer 1.0.1
DEBUG 2019-10-18 07:41:50,844 [5201:MainThread] mopidy.ext
Loading entry point: mpd = mopidy.mpd:Extension
DEBUG 2019-10-18 07:41:50,846 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-MPD 2.3.0
DEBUG 2019-10-18 07:41:50,846 [5201:MainThread] mopidy.ext
Loading entry point: http = mopidy.http:Extension
DEBUG 2019-10-18 07:41:50,849 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-HTTP 2.3.0
DEBUG 2019-10-18 07:41:50,849 [5201:MainThread] mopidy.ext
Loading entry point: stream = mopidy.stream:Extension
DEBUG 2019-10-18 07:41:50,851 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-Stream 2.3.0
DEBUG 2019-10-18 07:41:50,851 [5201:MainThread] mopidy.ext
Loading entry point: m3u = mopidy.m3u:Extension
DEBUG 2019-10-18 07:41:50,853 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-M3U 2.3.0
DEBUG 2019-10-18 07:41:50,854 [5201:MainThread] mopidy.ext
Loading entry point: softwaremixer = mopidy.softwaremixer:Extension
DEBUG 2019-10-18 07:41:50,856 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-SoftwareMixer 2.3.0
DEBUG 2019-10-18 07:41:50,856 [5201:MainThread] mopidy.ext
Loading entry point: file = mopidy.file:Extension
DEBUG 2019-10-18 07:41:50,858 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-File 2.3.0
DEBUG 2019-10-18 07:41:50,858 [5201:MainThread] mopidy.ext
Loading entry point: local = mopidy.local:Extension
DEBUG 2019-10-18 07:41:50,866 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-Local 2.3.0
DEBUG 2019-10-18 07:41:50,867 [5201:MainThread] mopidy.ext
Loading entry point: musicbox_webclient = mopidy_musicbox_webclient:Extension
DEBUG 2019-10-18 07:41:50,870 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-MusicBox-Webclient 2.5.0
DEBUG 2019-10-18 07:41:50,871 [5201:MainThread] mopidy.ext
Loading entry point: moped = mopidy_moped:MopedExtension
DEBUG 2019-10-18 07:41:50,873 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-Moped 0.7.1
DEBUG 2019-10-18 07:41:50,886 [5201:MainThread] mopidy.ext
Loading entry point: spotify = mopidy_spotify:Extension
DEBUG 2019-10-18 07:41:50,889 [5201:MainThread] mopidy.ext
Loaded extension: Mopidy-Spotify 3.1.0
DEBUG 2019-10-18 07:41:50,904 [5201:MainThread] mopidy.ext
Discovered extensions: mobile, local-images, iris, api_explorer, mpd, http, stream, m3u, softwaremixer, file, local, musicbox_webclient, moped, spotify
DEBUG 2019-10-18 07:41:50,950 [5201:MainThread] mopidy.config.keyring
Fetching passwords from your keyring failed. Any passwords stored in the keyring will not be available. (org.freedesktop.secrets service not running)
INFO 2019-10-18 07:41:50,951 [5201:MainThread] mopidy.config
Loading config from builtin defaults
DEBUG 2019-10-18 07:41:50,956 [5201:MainThread] mopidy.config
Loading config from /etc/xdg/mopidy/mopidy.conf failed; it does not exist
INFO 2019-10-18 07:41:50,959 [5201:MainThread] mopidy.config
Loading config from /home/admin/.config/mopidy/mopidy.conf
INFO 2019-10-18 07:41:50,962 [5201:MainThread] mopidy.config
Loading config from command line options
DEBUG 2019-10-18 07:41:50,983 [5201:MainThread] mopidy.ext
Validating extension: mobile
DEBUG 2019-10-18 07:41:51,062 [5201:MainThread] mopidy.ext
Validating extension: local-images
DEBUG 2019-10-18 07:41:51,080 [5201:MainThread] mopidy.ext
Validating extension: iris
DEBUG 2019-10-18 07:41:51,099 [5201:MainThread] mopidy.ext
Validating extension: api_explorer
DEBUG 2019-10-18 07:41:51,109 [5201:MainThread] mopidy.ext
Validating extension: mpd
DEBUG 2019-10-18 07:41:51,112 [5201:MainThread] mopidy.ext
Validating extension: http
DEBUG 2019-10-18 07:41:51,115 [5201:MainThread] mopidy.ext
Validating extension: stream
DEBUG 2019-10-18 07:41:51,117 [5201:MainThread] mopidy.ext
Validating extension: m3u
DEBUG 2019-10-18 07:41:51,120 [5201:MainThread] mopidy.ext
Validating extension: softwaremixer
DEBUG 2019-10-18 07:41:51,122 [5201:MainThread] mopidy.ext
Validating extension: file
DEBUG 2019-10-18 07:41:51,125 [5201:MainThread] mopidy.ext
Validating extension: local
DEBUG 2019-10-18 07:41:51,128 [5201:MainThread] mopidy.ext
Validating extension: musicbox_webclient
DEBUG 2019-10-18 07:41:51,138 [5201:MainThread] mopidy.ext
Validating extension: moped
DEBUG 2019-10-18 07:41:51,147 [5201:MainThread] mopidy.ext
Validating extension: spotify
INFO 2019-10-18 07:41:51,159 [5201:MainThread] mopidy.main
Enabled extensions: iris, mpd, http, moped, stream, mobile, m3u, musicbox_webclient, softwaremixer, file, local-images, api_explorer
INFO 2019-10-18 07:41:51,160 [5201:MainThread] mopidy.main
Disabled extensions: spotify, local
WARNING 2019-10-18 07:41:51,161 [5201:MainThread] mopidy.main
Found local configuration errors, the extension has been automatically disabled:
WARNING 2019-10-18 07:41:51,161 [5201:MainThread] mopidy.main
local/media_dir must be set.
WARNING 2019-10-18 07:41:51,162 [5201:MainThread] mopidy.main
Found spotify configuration errors, the extension has been automatically disabled:
WARNING 2019-10-18 07:41:51,162 [5201:MainThread] mopidy.main
spotify/username must be set.
WARNING 2019-10-18 07:41:51,163 [5201:MainThread] mopidy.main
spotify/client_secret must be set.
WARNING 2019-10-18 07:41:51,163 [5201:MainThread] mopidy.main
spotify/password must be set.
WARNING 2019-10-18 07:41:51,163 [5201:MainThread] mopidy.main
spotify/client_id must be set.
WARNING 2019-10-18 07:41:51,164 [5201:MainThread] mopidy.main
Please fix the extension configuration errors or disable the extensions to silence these messages.
DEBUG 2019-10-18 07:41:51,251 [5201:MainThread] mopidy.commands
Available Mopidy mixers: SoftwareMixer
INFO 2019-10-18 07:41:51,252 [5201:MainThread] mopidy.commands
Starting Mopidy mixer: SoftwareMixer
DEBUG 2019-10-18 07:41:51,253 [5201:MainThread] pykka
Registered SoftwareMixer (urn:uuid:07cf7592-70c0-47d7-a81d-0de0af3a40fb)
DEBUG 2019-10-18 07:41:51,253 [5201:MainThread] pykka
Starting SoftwareMixer (urn:uuid:07cf7592-70c0-47d7-a81d-0de0af3a40fb)
DEBUG 2019-10-18 07:41:51,256 [5201:MainThread] mopidy.commands
Mixer volume left unchanged
INFO 2019-10-18 07:41:51,257 [5201:MainThread] mopidy.commands
Starting Mopidy audio
DEBUG 2019-10-18 07:41:51,258 [5201:MainThread] pykka
Registered Audio (urn:uuid:7889c17d-98fd-4dfb-aef4-c6ff03f4ab82)
DEBUG 2019-10-18 07:41:51,258 [5201:MainThread] pykka
Starting Audio (urn:uuid:7889c17d-98fd-4dfb-aef4-c6ff03f4ab82)
INFO 2019-10-18 07:41:51,262 [5201:MainThread] mopidy.commands
Starting Mopidy backends: StreamBackend, M3UBackend, FileBackend
DEBUG 2019-10-18 07:41:51,278 [5201:MainThread] pykka
Registered StreamBackend (urn:uuid:d9b16caa-072f-4c89-ba54-ad7dea5aaa7b)
DEBUG 2019-10-18 07:41:51,278 [5201:MainThread] pykka
Starting StreamBackend (urn:uuid:d9b16caa-072f-4c89-ba54-ad7dea5aaa7b)
DEBUG 2019-10-18 07:41:51,288 [5201:MainThread] pykka
Registered M3UBackend (urn:uuid:54d1043b-55d2-4f3b-955e-e1e1f8688333)
DEBUG 2019-10-18 07:41:51,289 [5201:MainThread] pykka
Starting M3UBackend (urn:uuid:54d1043b-55d2-4f3b-955e-e1e1f8688333)
DEBUG 2019-10-18 07:41:51,298 [5201:MainThread] mopidy.file.library
Failed expanding path (XDG_MUSIC_DIR) from file/media_dirs config value. DEBUG 2019-10-18 07:41:51,299 [5201:MainThread] pykka Registered FileBackend (urn:uuid:10d621e4-6893-4d04-88d0-adcb1c25277d) DEBUG 2019-10-18 07:41:51,299 [5201:MainThread] pykka Starting FileBackend (urn:uuid:10d621e4-6893-4d04-88d0-adcb1c25277d) INFO 2019-10-18 07:41:51,307 [5201:MainThread] mopidy.commands Starting Mopidy core DEBUG 2019-10-18 07:41:51,313 [5201:MainThread] pykka Registered Core (urn:uuid:963954d3-9e2c-49ee-ab1a-8229f02c4eac) DEBUG 2019-10-18 07:41:51,314 [5201:MainThread] pykka Starting Core (urn:uuid:963954d3-9e2c-49ee-ab1a-8229f02c4eac) INFO 2019-10-18 07:41:51,328 [5201:MainThread] mopidy.commands Starting Mopidy frontends: IrisFrontend, MpdFrontend, HttpFrontend DEBUG 2019-10-18 07:41:51,329 [5201:MainThread] pykka Registered IrisFrontend (urn:uuid:35c8dfb2-bb56-4112-a702-03fd28bb895b) INFO 2019-10-18 07:41:51,330 [5201:Audio-2] mopidy.audio.actor Audio output set to "autoaudiosink" DEBUG 2019-10-18 07:41:51,330 [5201:MainThread] pykka Starting IrisFrontend (urn:uuid:35c8dfb2-bb56-4112-a702-03fd28bb895b) INFO 2019-10-18 07:41:51,331 [5201:IrisFrontend-7] mopidy_iris.core Starting Iris 3.41.2 ERROR 2019-10-18 07:41:51,335 [5201:MainThread] mopidy.commands Frontend (MpdFrontend) initialization error: MPD server startup failed: [Errno 98] Address already in use DEBUG 2019-10-18 07:41:51,336 [5201:MainThread] mopidy.http.actor Starting HTTP server DEBUG 2019-10-18 07:41:51,337 [5201:MainThread] pykka Registered HttpFrontend (urn:uuid:6a184f11-2993-4762-8ef5-bbf548af0615) DEBUG 2019-10-18 07:41:51,342 [5201:MainThread] pykka Starting HttpFrontend (urn:uuid:6a184f11-2993-4762-8ef5-bbf548af0615) INFO 2019-10-18 07:41:51,343 [5201:MainThread] mopidy.commands Starting GLib mainloop INFO 2019-10-18 07:41:51,344 [5201:HttpFrontend-9] mopidy.http.actor HTTP server running at [::ffff:127.0.0.1]:6680 DEBUG 2019-10-18 07:41:51,349 [5201:HttpServer] mopidy.http.actor Loaded HTTP extension: mobile DEBUG 2019-10-18 07:41:51,351 [5201:HttpServer] mopidy.http.actor Loaded HTTP extension: images DEBUG 2019-10-18 07:41:51,352 [5201:HttpServer] mopidy.http.actor Loaded HTTP extension: iris DEBUG 2019-10-18 07:41:51,353 [5201:HttpServer] mopidy.http.actor Loaded HTTP extension: mopidy DEBUG 2019-10-18 07:41:51,360 [5201:HttpServer] mopidy.http.actor Loaded HTTP extension: musicbox_webclient DEBUG 2019-10-18 07:41:51,361 [5201:HttpServer] mopidy.http.actor Loaded static HTTP extension: api_explorer DEBUG 2019-10-18 07:41:51,362 [5201:HttpServer] mopidy.http.actor Loaded static HTTP extension: moped DEBUG 2019-10-18 07:41:51,363 [5201:HttpServer] mopidy.http.actor HTTP routes from extensions: u'/mobile': <class 'mopidy.http.handlers.AddSlashHandler'> u'/mobile/': <class 'tornado.web.RedirectHandler'> u'/mobile/(.*\\.html)': <class 'mopidy_mobile.web.IndexHandler'> u'/mobile/(.*\\.json)': <class 'mopidy_mobile.web.IndexHandler'> u'/mobile/(.*)': <class 'mopidy_mobile.web.StaticHandler'> u'/images': <class 'mopidy.http.handlers.AddSlashHandler'> u'/images/(index.html)?': <class 'mopidy_local_images.web.IndexHandler'> u'/images/(.+)': <class 'mopidy_local_images.web.ImageHandler'> u'/iris': <class 'mopidy.http.handlers.AddSlashHandler'> u'/iris/images/(.*)': <class 'tornado.web.StaticFileHandler'> u'/iris/http/([^/]*)': <class 'mopidy_iris.handlers.HttpHandler'> u'/iris/ws/?': <class 'mopidy_iris.handlers.WebsocketHandler'> u'/iris/assets/(.*)': <class 'tornado.web.StaticFileHandler'> u'/iris/((.*)(?:css|js|json|map))’: <class ‘tornado.web.StaticFileHandler’>
u’/iris/(.)’: <class ‘mopidy_iris.ReactRouterHandler’>
u’/mopidy’: <class ‘mopidy.http.handlers.AddSlashHandler’>
u’/mopidy/ws/?’: <class ‘mopidy.http.handlers.WebSocketHandler’>
u’/mopidy/rpc’: <class ‘mopidy.http.handlers.JsonRpcHandler’>
u’/mopidy/(.+)’: <class ‘mopidy.http.handlers.StaticFileHandler’>
u’/mopidy/’: <class ‘mopidy.http.handlers.ClientListHandler’>
u’/musicbox_webclient’: <class ‘mopidy.http.handlers.AddSlashHandler’>
u’/musicbox_webclient/’: <class ‘tornado.web.RedirectHandler’>
u’/musicbox_webclient/(index.html)’: <class ‘mopidy_musicbox_webclient.web.IndexHandler’>
u’/musicbox_webclient/(.
)’: <class ‘mopidy_musicbox_webclient.web.StaticHandler’>
u’/api_explorer’: <class ‘mopidy.http.handlers.AddSlashHandler’>
u’/api_explorer/(.)’: <class ‘mopidy.http.handlers.StaticFileHandler’>
u’/moped’: <class ‘mopidy.http.handlers.AddSlashHandler’>
u’/moped/(.
)’: <class ‘mopidy.http.handlers.StaticFileHandler’>
u’/’: <class ‘tornado.web.RedirectHandler’>
DEBUG 2019-10-18 07:41:51,387 [5201:HttpFrontend-9] mopidy.zeroconf
Zeroconf service “Mopidy HTTP server on pimusic” (_http._tcp at []:6680): Published
DEBUG 2019-10-18 07:41:51,392 [5201:HttpFrontend-9] mopidy.zeroconf
Zeroconf service “Mopidy HTTP server on pimusic” (_mopidy-http._tcp at []:6680): Published

Attached is a screen grab of the memory filling up a minute before the crash, plus the post crash state.


Thanks Christopher

I ran
sudo service mopidy force-reload

then

sudo mopidyctl local scan

INFO Scanned 32200 of 68692 files in 2209s, ~2503s left.

(mopidy:7438): GLib-ERROR **: 11:17:39.827: …/…/…/glib/gmem.c:105: failed to allocate 565918 bytes
Trace/breakpoint trap

but the RAM fills up and the operation crashes at about the same place, so I presume that it is not a particular file issue.

It seems that RAM saturation is the issue here and a quick investigation of a 8 GBs Raspberry PI shows that it currently does not exist. Has anyone any ideas about how to work around this issue ? Many thanks

It could be an issue with particular file types in GStreamer or it could be an issue with Mopidy itself. One work-around would be to do multiple, small incremental scans of your library. e.g. move the files elsewhere and then repeatedly move 10% of the files back into the media_dir and scan. This should do an incremental scan of only the new files each time.

Another interesting experiment would be to try the scan but using the previous version of Raspbian (stretch) where I don’t remember anyone reporting this issue.

When running as a service, the config command needs to be sudo mopidyctl config. However, to debug something like this you need to be running as your user, the service makes everything too hard. If you can convert your configuration/setup so you can recreate this issue and catch the debug log with mopidy -v local scan then that would be a good start in starting to debug this. Otherwise we’ll take a look when we get a chance.

I don’t know why I didn’t think of incremental scans. The incremental scans have worked pretty painlessly. I get this kind of file error on certain file
WARNING Failed local:track:Roy_Ayers/Ubiquity/04_Love.mp3: Timeout after 1000ms
But that is another story …

I will try to do a bit of debugging when I get a moment. Many thanks