Skip to content

esp8266: Syntax error at overwriting presets #3312

Closed

Description

@reald

What happened?

When updating a preset "SyntaxError: Expected ',' or '}' after property value in JSON at position 2226" appears.

To Reproduce Bug

A preset "Fire 2012" exists at position 3. After some modifications trieded to update the preset with following settings:

[x] Overwrite with state
[x] Include brightness
[x] Save segment bounds
[ ] Checked segments only
Save to ID 3

Expected Behavior

Preset is updated

Install Method

Self-Compiled

What version of WLED?

0.14.0-b3 "Hoshi"

Which microcontroller/board are you seeing the problem on?

ESP8266

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. changed the title [-]Syntax error at overwriting presets[/-] [+]esp8266: Syntax error at overwriting presets[/+] on Aug 9, 2023
  2. dosipod commented on Aug 11, 2023

    @dosipod
    Contributor

    Factory reset the unit or flash the nightly builds , the error you see there could happen even with other effects but I can save Fire 2012 on my test unit just fine . You seeing that error with this effect is just a coincidence unless your Self-Compiled is messing things . I have seen this error more with ESP8266 builds when making a lot of presets but cant say what is the reason for it
    image

  3. added this to the 0.14.0 candidate milestone on Sep 6, 2023
  4. added
    needs investigation
    on Sep 6, 2023
  5. softhack007 commented on Sep 17, 2023

    @softhack007
    Member

    @blazoncek any idea on this one?

    Same as @dosipod, I have saved lots of presets with default options, however usually doing it on esp32 as I only have one 8266, which is reserved for collecting dust 😉 on my high cupboard. Could there be something causing errors on 8266, while it works on esp32?

  6. blazoncek commented on Sep 18, 2023

    @blazoncek
    Contributor

    This is related to AsyncWebServer buffer being corrupt. Refreshing UI will often resolve the problem.
    My speculation is that at some point buffer pointer is being released too soon in async call.
    Or that send buffer gets overwritten by incoming traffic.

  7. added 2 commits that reference this issue on Oct 22, 2023
  8. added
    waiting for feedback
    on Dec 14, 2023
  9. blazoncek commented on Jan 6, 2024

    @blazoncek
    Contributor

    Possibly related to #3641

  10. blazoncek commented on Jan 9, 2024

    @blazoncek
    Contributor

    Closing as corrupt JSON has been fixed in 0.14.1-b3.
    If the issue persist in 0.14.1-b3 or later, please open a new issue.

  11. added a commit that references this issue on Apr 9, 2024
  12. added 2 commits that reference this issue on Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugneeds investigationwaiting for feedback

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions