Skip to content

0.15.0 playlist problems when using a preset name that begins with a number #4445

Open
@Timeline8

Description

@Timeline8

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

  1. 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.
  2. Add some other effects to your presets (I was using all matrix effects of Soap, Sun Radiation, Waving Cell, and Pacifica).
  3. Create playlist in the following order: Pacifica, "1 Bug Text", "1 Bug Text", Soap, "Bug Text" (no number is that last one).
  4. Save then reopen and unselect "Show playlist editor"
  5. 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"
  6. Run playlist and note that only, in this case, Pacifica, Soap, and "Bug Text" play while the two "1 Bug Text" presets are skipped.

image
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugconfirmedThe bug is reproducable and confirmed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions