Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Presets are not working #4318

Open
1 task done
Djmg2k opened this issue Nov 25, 2024 · 11 comments
Open
1 task done

Presets are not working #4318

Djmg2k opened this issue Nov 25, 2024 · 11 comments
Labels

Comments

@Djmg2k
Copy link

Djmg2k commented Nov 25, 2024

What happened?

My presets disappeared, I tried to save new ones and I get this message when trying to save new presets: "sorry, there was an issue loading your presets!".
Screenshot_2024-11-24-21-18-33-33_20847b1a3e0d36a96be3b46be39bfdb3

To Reproduce Bug

I think I explained it in the previous box.

Expected Behavior

I expected all of my presets to be safe and not disappear and also be able to keep saving new presets.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.14.4 (build 2405180)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@Djmg2k Djmg2k added the bug label Nov 25, 2024
@netmindz
Copy link
Collaborator

Just copy the details into a text file and restore

@netmindz
Copy link
Collaborator

Possibly related to #3762

@dosipod
Copy link
Contributor

dosipod commented Nov 25, 2024

In all the cases we have seen on latest and we are able to replicate multiple times the presets issues are related to external control ( HA , Node-red, Alexa and wizmote ) as accessing unit presets from multiple sources would cause the issue .
Even if you fix the issue it may come back if you try to edit it again when those sources are still using it .

@DedeHai
Copy link
Collaborator

DedeHai commented Nov 25, 2024

Is this a problem that was introduced in 0.15 and needs to be fixed before the release?
sounds like a nasty bug: the code really should not corrupt its own files. If it can't be fixed due to some timing restrictions, at least it should create a backup that can be restored if its corrupted (as long as there is space in the FS).

@netmindz
Copy link
Collaborator

netmindz commented Nov 25, 2024

#3762 was back on 0.14, so that one isn't a regression, not sure if this is the same or not @DedeHai

@Djmg2k
Copy link
Author

Djmg2k commented Nov 25, 2024

@netmindz I will try to do that when I get home, though I use the mobile version of wled so not sure if I'm able to do that on there? I'm new to wled but it was working fine and was able to save new presets and set them to load at boot without a problem. I had 10 presets, they disappeared and that's when I wasn't able to save new ones.
I copied and saved the file text from the last working state to my notes but couldn't figure out how to restore using that file.

@blazoncek
Copy link
Collaborator

Classic ESP32 is prone to flash corruption due to old and flawed bootloader and framework used (as old as 2021) as pointed out by @Jason2866 on some other issues. Unfortunately newer framework/platform will require updating bootloader (mandatory reflash). The other issue is huge increase in binary size with newer framework.

There were several issues opened on this topic: #3780 #3387 #3382 #3347 #3181 #3139 #2793 #2755 #2434 #1981 and possibly others.

@netmindz
Copy link
Collaborator

Thanks for context @blazoncek

@Djmg2k
Copy link
Author

Djmg2k commented Nov 28, 2024

Thank you guys for the help, presets are working again.

@dosipod
Copy link
Contributor

dosipod commented Nov 30, 2024

Here you go , issue replication on demand using HA
image

@softhack007
Copy link
Collaborator

If presets were touched by an "external entity" like HA, then this problem might be related to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants