Open madbrain76 opened 1 week ago
Turns out it's not just the DLNA player provider. I just saw this with Airplay providers being left over as well. So, I have updated the description of this bug.
I just played with adding/disabling/removing the providers, and this time got quite a long list of Airplay and DLNA players left over. I probably would have Chromecast remaining as well, if I had added that provider, I just haven't tried.
Interestingly, the Airplay players hat remain are all in the disabled state (hourglass showing), but the DLNA players show as being available. While that might be considered a separate problem, it wouldn't happen at all if all players were properly removed when the corresponding player providers are.
The behavior is not exactly the same between every deletion attempt. It may be some sort of race condition. I'm doing the provider deletion very quickly, one after the other in a matter of seconds. Also, disabling the providers before deleting them seems to significantly increase the odds of reproducing the issue. So, I'm updating the test case.
The only thing that consistently works to fix this is to delete all the remaining players one by one. When trying to fix it by adding the providers back, the behavior is inconsistent. Once in that messed state with the remaining players, MA behavior appears to be unpredictable. It all stems from that invalid state, and I don't know if it's worth reporting separate issues, as they would all disappear if this one is resolved, but I'll list some of what happens anyway.
What version of Music Assistant has the issue?
2.0.7
What version of the Home Assistant Integration have you got installed?
2024.6.2
Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?
The problem
Some DLNA players still remain after deleting the DLNA/UPNP player provider
How to reproduce
I don't have a very specific test case for this, but I have seen this behavior on multiple occasions in the past. Today, I was playing around with DLNA renders from JRiver and BubbleUPNP, to try to get MA to play audio on my PC and my Android phone respectively. It went something like this.
Music Providers
File system (network)
Player Providers
DLNA/UPNP
Full log output
log.txt
Additional information
What version of Home Assistant Core are your running
2024.6.2
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Windows