Volumio2-UI icon indicating copy to clipboard operation
Volumio2-UI copied to clipboard

Infinite loop when playing an album from browse view

Open toggm opened this issue 4 years ago • 0 comments

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:

  • Replace chromium browser with midori
  • Use setTimeout method in onClick function (https://github.com/toggm/Volumio2-UI/tree/fix/infinte_loop_touchpanel_matchbox_window_manager)

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?

toggm avatar May 02 '20 13:05 toggm