philippe44 / LMS-Raop

LMS to AirPlay bridge
67 stars 12 forks source link

Meta data not updating to Wiim mini players/Loss of volume control #40

Closed kylepyke closed 10 months ago

kylepyke commented 11 months ago

Hi Philippe,

I'm SO sorry to bother you with another Wiim mini issue, but it looks like metadata sometimes fails to push to the player, about every 3-4 tracks. The stream will play the correct track as listed in LMS, but will show the title/artwork from a previous track (see attached photos). When this happens, I am also unable to control the volume for that player from LMS. I can pause/play, but skipping to the next track causes an audio glitch before moving to the next track.

Eventually the offending player will be turned off completely by RAOP. If I turn the player back on, it seems to sync correctly with the playing track in LMS.

I have two players where this happens regularly– one has a very strong WiFi connection and is the default/master player. The other has a so-so connection, and syncs to the first player. Overall, there are four Wiim minis on the netwrok which all sync playback.

Do you have any advice?

Here are the relevant logs:

[19:50:07.742] PlayerThread:546 [0xacf390]: idx 45
    artist:Perry Como
    album:Greatest Christmas Songs
    title:Have Yourself a Merry Little Christmas
    genre:
    duration:169.333
    size:0
    cover:https://i.scdn.co/image/ab67616d0000b273d5f598be32d3027b9578ecd6
[19:50:08.131] PlayerThread:595 [0xace4a0]: Got artwork for https://i.scdn.co/image/ab67616d0000b273d5f598be32d3027b9578ecd6
[19:50:08.150] PlayerThread:595 [0xad0280]: Got artwork for https://i.scdn.co/image/ab67616d0000b273d5f598be32d3027b9578ecd6
[19:50:08.191] PlayerThread:595 [0xacf390]: Got artwork for https://i.scdn.co/image/ab67616d0000b273d5f598be32d3027b9578ecd6
[19:50:15.045] exec_request:655 [0x7f74b002b160]: response :  request failed
[19:50:17.268] raopcl_send_chunk:589 [0x7f74b0025b40]: check n:1365968052 p:1365970790 ts:75065830061377 sn:10466
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:17.268] raopcl_send_chunk:589 [0x7f74b0009300]: check n:1365968052 p:1365970789 ts:75065830061332 sn:1077
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:17.270] raopcl_send_chunk:589 [0x7f74b002c9e0]: check n:1365968053 p:1365970789 ts:75065830061332 sn:48320
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:17.270] raopcl_send_chunk:589 [0x7f74b001eca0]: check n:1365968054 p:1365970789 ts:75065830061332 sn:30936
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:27.066] exec_request:655 [0x7f74b002b160]: response :  request failed
[19:50:27.266] raopcl_send_chunk:589 [0x7f74b0025b40]: check n:1365978050 p:1365980784 ts:75065830502081 sn:11718
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:27.266] raopcl_send_chunk:589 [0x7f74b002c9e0]: check n:1365978050 p:1365980791 ts:75065830502388 sn:49573
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:27.266] raopcl_send_chunk:589 [0x7f74b001eca0]: check n:1365978050 p:1365980791 ts:75065830502388 sn:32189
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:27.266] raopcl_send_chunk:589 [0x7f74b0009300]: check n:1365978050 p:1365980791 ts:75065830502388 sn:2330
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:37.076] exec_request:655 [0x7f74b002b160]: response :  request failed
[19:50:37.076] PlayerThread:546 [0xad1170]: idx 45
    artist:Perry Como
    album:Greatest Christmas Songs
    title:Have Yourself a Merry Little Christmas
    genre:
    duration:169.333
    size:0
    cover:https://i.scdn.co/image/ab67616d0000b273d5f598be32d3027b9578ecd6
[19:50:37.262] raopcl_send_chunk:589 [0x7f74b0009300]: check n:1365988046 p:1365990784 ts:75065830943092 sn:3582
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:37.262] raopcl_send_chunk:589 [0x7f74b002c9e0]: check n:1365988046 p:1365990784 ts:75065830943092 sn:50825
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:37.266] raopcl_send_chunk:589 [0x7f74b001eca0]: check n:1365988050 p:1365990784 ts:75065830943092 sn:33441
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:37.266] raopcl_send_chunk:589 [0x7f74b0025b40]: check n:1365988050 p:1365990785 ts:75065830943137 sn:12971
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:37.275] PlayerThread:595 [0xad1170]: Got artwork for https://i.scdn.co/image/ab67616d0000b273d5f598be32d3027b9578ecd6
[19:50:47.264] raopcl_send_chunk:589 [0x7f74b0009300]: check n:1365998048 p:1366000785 ts:75065831384148 sn:4835
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:47.264] raopcl_send_chunk:589 [0x7f74b001eca0]: check n:1365998048 p:1366000785 ts:75065831384148 sn:34694
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:47.264] raopcl_send_chunk:589 [0x7f74b002c9e0]: check n:1365998048 p:1366000785 ts:75065831384148 sn:52078
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:47.264] raopcl_send_chunk:589 [0x7f74b0025b40]: check n:1365998048 p:1366000786 ts:75065831384193 sn:14224
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:47.286] exec_request:655 [0x7f74b002b160]: response :  request failed
[19:50:57.268] raopcl_send_chunk:589 [0x7f74b0009300]: check n:1366008052 p:1366010786 ts:75065831825204 sn:6088
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:57.268] raopcl_send_chunk:589 [0x7f74b0025b40]: check n:1366008052 p:1366010787 ts:75065831825249 sn:15477
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:57.268] raopcl_send_chunk:589 [0x7f74b001eca0]: check n:1366008052 p:1366010786 ts:75065831825204 sn:35947
               retr: 0, avail: 0, send: 0, select: 0)
[19:50:57.269] raopcl_send_chunk:589 [0x7f74b002c9e0]: check n:1366008053 p:1366010786 ts:75065831825204 sn:53331
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:07.267] raopcl_send_chunk:589 [0x7f74b0025b40]: check n:1366018051 p:1366020789 ts:75065832266305 sn:16730
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:07.267] raopcl_send_chunk:589 [0x7f74b001eca0]: check n:1366018051 p:1366020788 ts:75065832266260 sn:37200
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:07.268] raopcl_send_chunk:589 [0x7f74b0009300]: check n:1366018052 p:1366020788 ts:75065832266260 sn:7341
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:07.268] raopcl_send_chunk:589 [0x7f74b002c9e0]: check n:1366018052 p:1366020788 ts:75065832266260 sn:54584
               retr: 1, avail: 0, send: 0, select: 0)
[19:51:10.298] exec_request:655 [0x7f74b002b160]: response :  request failed
[19:51:17.267] raopcl_send_chunk:589 [0x7f74b0009300]: check n:1366028051 p:1366030789 ts:75065832707316 sn:8594
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:17.268] raopcl_send_chunk:589 [0x7f74b0025b40]: check n:1366028051 p:1366030790 ts:75065832707361 sn:17983
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:17.269] raopcl_send_chunk:589 [0x7f74b001eca0]: check n:1366028052 p:1366030789 ts:75065832707316 sn:38453
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:17.270] raopcl_send_chunk:589 [0x7f74b002c9e0]: check n:1366028054 p:1366030789 ts:75065832707316 sn:55837
               retr: 1, avail: 0, send: 0, select: 0)
[19:51:27.269] raopcl_send_chunk:589 [0x7f74b0025b40]: check n:1366038053 p:1366040791 ts:75065833148417 sn:19236
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:27.269] raopcl_send_chunk:589 [0x7f74b0009300]: check n:1366038053 p:1366040790 ts:75065833148372 sn:9847
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:27.269] raopcl_send_chunk:589 [0x7f74b002c9e0]: check n:1366038053 p:1366040790 ts:75065833148372 sn:57090
               retr: 1, avail: 0, send: 0, select: 0)
[19:51:27.271] raopcl_send_chunk:589 [0x7f74b001eca0]: check n:1366038055 p:1366040790 ts:75065833148372 sn:39706
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:36.311] exec_request:655 [0x7f74b002b160]: response :  request failed
[19:51:37.260] raopcl_send_chunk:589 [0x7f74b0025b40]: check n:1366048044 p:1366050784 ts:75065833589121 sn:20488
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:37.270] raopcl_send_chunk:589 [0x7f74b002c9e0]: check n:1366048054 p:1366050791 ts:75065833589428 sn:58343
               retr: 1, avail: 0, send: 0, select: 0)
[19:51:37.270] raopcl_send_chunk:589 [0x7f74b0009300]: check n:1366048054 p:1366050791 ts:75065833589428 sn:11100
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:37.271] raopcl_send_chunk:589 [0x7f74b001eca0]: check n:1366048055 p:1366050791 ts:75065833589428 sn:40959
               retr: 0, avail: 0, send: 0, select: 0)
[19:51:38.241] exec_request:655 [0x7f74b0023900]: response :  request failed
Screen Shot 2023-12-09 at 7 54 46 PM

IMG_2740

kylepyke commented 11 months ago

Not sure if related, but also receiving the following errors in Home Assistant logs:

Logger: homeassistant.components.recorder.db_schema
Source: components/recorder/db_schema.py:578
Integration: Recorder (documentation, issues)
First occurred: 12:04:00 PM (5156 occurrences)
Last logged: 9:29:44 PM

State attributes for media_player.living_room exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
State attributes for media_player.console_player exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
State attributes for media_player.kitchen exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
State attributes for media_player.basement exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
State attributes for media_player.all exceed maximum size of 16384 bytes. This can cause database performance issues; Attributes will not be stored
kylepyke commented 10 months ago

It looks like this is the result of a Wiim issue with manual IP assignments.

Wiim does not let you assign a netmask, and defaults to 255.255.255.255. If your network (like mine) uses 255.255.255.0 by default, the Wiim can be on different subnets. causing instability in the connection.

I set changed to DHCP, and reserved the IP on my DHCP server. Everything has been solid since then.