mopidy-youtube
mopidy-youtube copied to clipboard
Mopidy crashes occasionally due to segmentation fault in youtube music plugin
During Youtube Music auto-play mopidy crashes occasionally (every few days). The log indicates this happened due to a segmentation fault caused by the YoutubeAutoplayer:
...
[info] ONhU2ielz8g: Downloading 1 format(s): 251
[download] Destination: /var/lib/mopidy/cache/youtube/U4-_3GJ6QZo.webm
[download] 100% of 5.15MiB in 00:00:00 at 8.45MiB/s
[youtube] Extracting URL: https://music.youtube.com/watch?v=HsmN-zEOreQ
[youtube] HsmN-zEOreQ: Downloading webpage
[youtube] HsmN-zEOreQ: Downloading ios player API JSON
[youtube] HsmN-zEOreQ: Downloading android player API JSON
[youtube] HsmN-zEOreQ: Downloading ios music player API JSON
[youtube] HsmN-zEOreQ: Downloading android music player API JSON
[youtube] HsmN-zEOreQ: Downloading web music client config
[youtube] HsmN-zEOreQ: Downloading web music player API JSON
[youtube] HsmN-zEOreQ: Downloading m3u8 information
[youtube] HsmN-zEOreQ: Downloading m3u8 information
[info] HsmN-zEOreQ: Downloading 1 format(s): 251
[download] Destination: /var/lib/mopidy/cache/youtube/HsmN-zEOreQ.webm
[download] 100% of 6.48MiB in 00:00:00 at 7.60MiB/s
ERROR 2023-12-07 20:13:26,316 [15:YouTubeAutoplayer-14 (_actor_loop)] mopidy_youtube
youtube_music list_playlists _get_playlist_or_album Expecting value: line 1 column 1 (char 0), MPREb_p4IQn7lHLAv
Segmentation fault
(In case of any relevance, the previously played track was https://music.youtube.com/watch?v=ONhU2ielz8g.)
Environment (mopidy-container 0.9.0):
- Python 3.10.13
- mopidy 3.4.1
- mopidy-youtube c76815ffedb9f119d1d9129645efc85865f5b4b7 (latest master: v3.7 + a few commits)
- ytmusicapi 1.2.1
- yt-dlp 2023.7.6