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

DLNA Devices dissappear from player list until the player provider is reloaded #3405

Open
1 task done
pantherale0 opened this issue Jan 4, 2025 · 0 comments
Open
1 task done

Comments

@pantherale0
Copy link

What version of Music Assistant has the issue?

2.4.0b8

What version of the Home Assistant Integration have you got installed?

No response

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

  • Yes

The problem

The DLNA player provider appears to become unstable after a long period of time, throwing the following errors in the logs.

When these errors are thrown, any players that are available on the network seem to become completely unavailable with a loading symbol next to the player itself.

Reloading the player provider will pickup the players again for a brief period, but after 10 seconds or so, they all disappear again.

How to reproduce

  1. Setup DLNA with scan network enabled
  2. Wait for a long time (maybe? I restarted MA and the problem went away, MA has been up pretty much since the latest beta release).

Music Providers

N/A issue impacts the player provider, music providers still work fine

Player Providers

  • DLNA

Full log output

2025-01-04 11:14:18.254 WARNING (MainThread) [music_assistant.players] Error while requesting latest state from player Living Room TV: 'uuid:23456789-1234-1010-8000-104FA8CC0E2C'
Traceback (most recent call last):
  File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 1369, in _poll_players
    await player_prov.poll_player(player_id)
  File "/app/venv/lib/python3.12/site-packages/music_assistant/providers/dlna/__init__.py", line 370, in poll_player
    dlna_player = self.dlnaplayers[player_id]
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'uuid:23456789-1234-1010-8000-104FA8CC0E2C'
2025-01-04 11:14:18.255 WARNING (MainThread) [music_assistant.players] Error while requesting latest state from player XBOX: 'uuid:dfefb60e-4b37-4577-b673-b52486b618da'
Traceback (most recent call last):
  File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 1369, in _poll_players
    await player_prov.poll_player(player_id)
  File "/app/venv/lib/python3.12/site-packages/music_assistant/providers/dlna/__init__.py", line 370, in poll_player
    dlna_player = self.dlnaplayers[player_id]
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'uuid:dfefb60e-4b37-4577-b673-b52486b618da'
2025-01-04 11:14:18.257 WARNING (MainThread) [music_assistant.players] Error while requesting latest state from player LIVINGROOM: 'uuid:fdbd715a-280c-46e6-bfd3-b7d5e7e16f6d'
Traceback (most recent call last):
  File "/app/venv/lib/python3.12/site-packages/music_assistant/controllers/players.py", line 1369, in _poll_players
    await player_prov.poll_player(player_id)
  File "/app/venv/lib/python3.12/site-packages/music_assistant/providers/dlna/__init__.py", line 370, in poll_player
    dlna_player = self.dlnaplayers[player_id]
                  ~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'uuid:fdbd715a-280c-46e6-bfd3-b7d5e7e16f6d'

d5369777_music_assistant_beta_2025-01-04T11-24-34.631Z.log

Additional information

I wasn't able to capture logs directly from MA, but perhaps the tracebacks above are enough to see roughly where this error may be occurring?

What version of Home Assistant Core are your running

2025.5.0

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Generic x86-64 (e.g. Intel NUC)

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

No branches or pull requests

2 participants