volumio / Volumio2-UI

Volumio2 Web Based User Interface
http://volumio.org
166 stars 164 forks source link

Infinite loop when playing an album from browse view #734

Open toggm opened 4 years ago

toggm commented 4 years ago

I've setup a volumio on a raspberry 3b+ combined with a PI 7" touchscreen. As a backend music service I've configured Mopidy instead of MPD with the adjusted explodeUri functionality (https://github.com/toggm/Volumio2/tree/dev/volumio_with_mopidy). Pressing the play button after search and selecting an album results in an infinite loop calling the clickListItem from the onClick function until I manually deselect the play button. This ends up appending the same album again and again and brings down the whole volumio.

The infinite loop only happend when selecting the play button from the touchscreen. If I connect from my mobile phone or notebook to the volumio-ui everything works as expected. I tried several steps to fix the issue:

Both didn't fix the issue. I replaced the content in clickListItem with an alert. The alerts get's called infinite. If I directly call Alert in the onClick attribute, it get's called only once.

Do you have any further ideas how to fix the issue?