micro-nova / AmpliPi

Whole House Audio System 🔊
https://amplipi.com
GNU General Public License v3.0
288 stars 23 forks source link

Player page state error #952

Open SteveMicroNova opened 1 month ago

SteveMicroNova commented 1 month ago

image If you are on the player page of a stream, and another user closes the stream, you get the pictured react error. This is not due to simply not having a selected or selectable stream, if you refresh it runs the autoselection function and either selects a new stream or notes that there are none available, I think this is a type of race condition

This is important, as React errors lock up the app and require it to be fully closed and restarted (something which I've noted not all mobile users know how to do)

SteveMicroNova commented 1 month ago

Potentially related, but there seems to be two separate versions of the player page for when you don't have something selected: One that you can reach by refreshing the page when there are no streams and there has been at least one connected, and one that you can reach by manually accessing the player page after a fresh reboot

Reboot: image

Standard: Screenshot 2024-09-27 131007