Description
What happened?
When creating a playlist using the scrolling text effect, if the preset text starts with a number the playlist skips those presets. The one exception to this is if the numbered text preset is the very first one in the playlist, then only the first instance will play while all subsequent additions of it will be skipped. Switch off the playlist editor to show the API reveals that the subsequent additions of the same scrolling text preset got entered as 0.
For example the playlist API shows
{"playlist":{"ps":[8,2,0,3,0,4,0],"dur":[100,100,100,100,100,100,100],"transition":[7,7,7,7,7,7,7],"repeat":0,"end":0,"r":false},"on":true}
where the [8,2,0,3,0,4,0] part should be [8,2,1,3,1,4,1] and manually changing the 0s to 1s fixes the problem.
To Reproduce Bug
- Create a scrolling text preset. I believe it may only do this if the text starts with a number. For example "1 Bug Text" will show as 0 while "Bug Text" will not.
- Add some other effects to your presets (I was using all matrix effects of Soap, Sun Radiation, Waving Cell, and Pacifica).
- Create playlist in the following order: Pacifica, "1 Bug Text", "1 Bug Text", Soap, "Bug Text" (no number is that last one).
- Save then reopen and unselect "Show playlist editor"
- Order shown will be [6,0,0,2,7] - yours will have different numbers of course but the scrolling text ones with leading numbers will be shown as "0"
- Run playlist and note that only, in this case, Pacifica, Soap, and "Bug Text" play while the two "1 Bug Text" presets are skipped.
You can go back into the API command window and replace the 0s with whatever number your "1 Bug Text" preset is and save and now you should see all 5 presets play.
After writing all the above, playing around with it some more and determining that if you start with the numbered text one, it will play the first, an even easier method to reproduce this is make the playlist simply "1 Bug Text" as many times in a row as you want and the API will look like [6,0,0,0,0,0].
Expected Behavior
All presets added in the playlist editor should be added as non-0 in the API.
Install Method
Binary from WLED.me
What version of WLED?
WLED v0.15.0, build 241210, Environment ESP32-S2 v4.4.4 (0)
Which microcontroller/board are you seeing the problem on?
ESP32-S2
Relevant log/trace output
No response
Anything else?
Wemos Lolin ESP32-S2 Mini board. Talking to it on a Mac running Chrome (both latest versions) using the web interface (i.e. typed in board IP address to get to the WLED built in menu.
I did not try this through the phone app.
Code of Conduct
- I agree to follow this project's Code of Conduct