Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jukebox issue with large playlist #558

Open
niawag opened this issue Jan 7, 2025 · 0 comments
Open

Jukebox issue with large playlist #558

niawag opened this issue Jan 7, 2025 · 0 comments

Comments

@niawag
Copy link

niawag commented Jan 7, 2025

gonic version: 0.16.4 - docker tag : latest (arm64)

Hi, I'm facing an issue with jukebox and long playlists, it seems that if more than x (working at 500ish tracks, not at 700) tracks are added to the mpv playlist it crashes mpv and the jukebox is dead until gonic docker is restarted.

The gonic logs are not relevant (nothing special) but the mpv logs shows that the ipc socket might be the problem (approx 700 tracks):

--- lots of similar lines, one for each track added ---
[ 422.775][d][global] state path: 'watch_later' -> '-'
[ 422.775][d][global] state path: 'watch_later' -> '-'
[ 422.775][d][cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[ 422.775][v][cplayer] Set property: shared-script-properties -> 1
[ 422.775][v][cplayer] Set property: user-data/osc/margins={"t":0,"b":0,"r":0,"l":0} -> 1
[ 422.779][d][cplayer] Run command: playlist-move, flags=64, args=[index1="0", index2="442"]
[ 422.809][d][osc] osc_init 
[ 422.809][d][cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[ 422.809][v][cplayer] Set property: shared-script-properties -> 1
[ 422.809][v][cplayer] Set property: user-data/osc/margins={"t":0,"b":0,"r":0,"l":0} -> 1
[ 423.001][e][ipc_0] Read error (Connection reset by peer)
[ 423.001][d][ipc_0] Exiting...

The same mpv logs shows that when everything works (that was around 500 tracks):

[ 420.119][d][global] state path: 'watch_later' -> '-'
[ 420.119][d][global] state path: 'watch_later' -> '-'
[ 420.120][d][osc] osc_init 
[ 420.121][d][cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[ 420.122][v][cplayer] Set property: shared-script-properties -> 1
[ 420.122][v][cplayer] Set property: user-data/osc/margins={"t":0,"b":0,"r":0,"l":0} -> 1
[ 420.122][d][cplayer] Run command: playlist-move, flags=64, args=[index1="0", index2="442"]
[ 420.154][d][osc] osc_init 
[ 420.154][d][cplayer] Run command: change-list, flags=64, args=[name="shared-script-properties", operation="append", value="osc-margins=0.000000,0.000000,0.000000,0.000000"]
[ 420.154][v][cplayer] Set property: shared-script-properties -> 1
[ 420.154][v][cplayer] Set property: user-data/osc/margins={"t":0,"b":0,"r":0,"l":0} -> 1
[ 422.742][d][cplayer] Run command: playlist-clear, flags=64, args=[]
[ 422.745][d][osc] osc_init 
[ 422.746][d][cplayer] Run command: loadlist, flags=64, args=[url="/tmp/1853574556", flags="append-play"]
[ 422.746][v][playlist_parser] Parsing playlist file /tmp/1853574556...
[ 422.746][v][ifo_dvdnav] Opening /tmp/1853574556
[ 422.746][v][bdmv/bluray] Opening /tmp/1853574556
[ 422.746][v][file] Opening /tmp/1853574556
[ 422.747][d][file] resize stream to 131072 bytes, drop 0 bytes
[ 422.747][d][file] Stream opened successfully.
[ 422.747][v][demux] Trying demuxers for level=request.
[ 422.747][d][demux] Trying demuxer: playlist (force-level: request)
[ 422.747][w][playlist] Reading plaintext playlist.
[ 422.750][v][playlist] demuxer read all data; closing stream
[ 422.750][v][demux] Detected file format: txt (Playlist file)
[ 422.750][v][playlist_parser] Playlist successfully parsed

I'm adding tracks to the playlist via DSub and Play Last
My compose file is not that fancy:

  gonic:
    container_name: gonic
    platform: linux/arm64 #necessary on my device
    image: sentriz/gonic:latest
    environment:
      - TZ=Europe/Paris
      - GONIC_HTTP_LOG=false
      - GONIC_JUKEBOX_ENABLED=true
      - GONIC_PLAYLISTS_PATH=/playlists
      - GONIC_MULTI_VALUE_ALBUM_ARTIST=multi
      - GONIC_JUKEBOX_MPV_EXTRA_ARGS="--log-file=/data/mpv_logs"
    ports:
      - 3080:80
    volumes:
      - ./gonic/data:/data # gonic db etc
      - ./gonic/playlists:/playlists
      - /storage/mnt/multimedia/mp3/:/music:ro # your music
      - ./gonic/cache:/cache # transcode / covers / jukebox socket
      - /run/pulse/:/run/pulse/

I don't know if it's a recent change in gonic's code or something else, I'm used to play long playlist on shuffle and I don't recall having problem before. I'd be glad to help if I can !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant