RPi-Jukebox-RFID icon indicating copy to clipboard operation
RPi-Jukebox-RFID copied to clipboard

cover art corrupts player state on future3

Open AlvinSchiller opened this issue 1 year ago • 2 comments

Describe your problem

After copying some sound files into the shared folder (fresh installation) with embeded covers and access the library in the webui the covers are correctly shown, but no playback is possible. Only after a restart of the service (or pi), the playback is working and cover art is correctly shown.

This behavior can be recreated if the cover-cache folder is emptied.

Also the initial call of the library after a service restart takes pretty long in Firefox. Chrome runs much faster. But i'm unsure if its caused by the cover art.

What's your hardware set up?

Pi 3 A+, Rasberry Pi OS Bookworm 32 bit lite, RC522 RFID Reader

If possible, try to attach logs from ... (paths from RPi)

04.01.2024 00:37:05 -  247:__init__.py        - jb.PlayerMPD         - mpd.timer_status - ERROR    - UnicodeDecodeError: 'utf-8' codec can't decode byte 0xac in position 1: invalid start byte
04.01.2024 00:38:06 -  526:__init__.py        - jb.PlayerMPD         - MainThread      - ERROR    - ConnectionError: Connection lost while reading binary data: expected 8192 bytes, got 180 at uri Electric Callboy - 2022 - Tekkno/Electric Callboy - Tekkno - 01 - Pump It.mp3

AlvinSchiller avatar Jan 03 '24 23:01 AlvinSchiller

Some reinitializing of MPD necessary after covers have been added?

Needs the mpd service or the jukebox service to be restarted?

Cheap fix would be a refresh button to restart the service, but not very user friendly.

s-martin avatar Jan 04 '24 10:01 s-martin

I am aware of it. It's a problem with MPD and occurs randomly. I have an idea, but it will take some time to be resolved.

pabera avatar Jan 04 '24 10:01 pabera

@pabera Hi. I can recreate this issue when i toggle between Album and Folder view. Let me know if i should test a fix. Thank you /Andreas

Lippsson avatar Feb 27 '24 07:02 Lippsson

#2325 fixed this on future3/develop.

Closing. Feel free to reopen, if your issue still persists.

s-martin avatar Apr 15 '24 10:04 s-martin