Skip to content

Failing to read map and gaps after update from 0.14.4 to 0.15.0 #4376

Closed

Description

@blind-coder

What happened?

After updating from 0.14.4 to 0.15.0, WLED fails to read 2d-gaps.json and ledmap.json randomly. I need to go to Config -> LED Preferences and hit Save a random number of times before the files get properly read.

To Reproduce Bug

Update from a working 0.14.4 ESP32 deployment with 2d-gaps.json and ledmap.json to 0.15.0
Enable any effect or check in Peek. Only a long LED strip will be visible, no matrix.

Expected Behavior

Succeed in reading 2d-gaps.json and ledmap.json every time.

Install Method

Binary from WLED.me

What version of WLED?

WLED 0.15.0

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

2d-gaps.json
ledmap.json

Code of Conduct

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

Activity

  1. blind-coder commented on Dec 11, 2024

    @blind-coder
    Author

    Sorry I can't provide logs or full version number, I rolled the ESP32 back to 0.14.4 already. The problem disappeared after rolling back.

  2. softhack007 commented on Dec 11, 2024

    @softhack007
    Member

    @blind-coder can you share your 2d-gaps.json and ledmap.json files, plus cfg.json from 0.14.4?
    This might help to reproduce the problem.

  3. softhack007 commented on Dec 11, 2024

    @softhack007
    Member

    @blind-coder sorry, missed that you alread attached them 😅
    Please just add your cfg.json

  4. blazoncek commented on Dec 11, 2024

    @blazoncek
    Contributor

    FYI gap and ledmap cannot coexist at the same time on a device.

    EDIT: Another FYI, 2D ledmap uses new fields, "width" and "height" otherwise a ledmap is considered 1D.

  5. blind-coder commented on Dec 11, 2024

    @blind-coder
    Author

    Here's the cfg.json
    cfg.json

    @blazoncek that new format may be the issue. I have 15 LEDs in 5 rows, it's a bit weird. The setup with both ledmap and gap has worked fine on 0.14.4.

    {"map":[
      -1,-1,14,-1,12,-1,10,-1,-1,
      -1,15,-1,13,-1,11,-1, 9,-1,
       0,-1,-1,-1,-1,-1,-1,-1, 8,
      -1, 1,-1, 3,-1, 5,-1, 7,-1,
      -1,-1, 2,-1, 4,-1, 6,-1,-1
    ]}

    if you look at the map, each LED is a hexagon, and together they form "two overlapping ∞" if that make sense. I can provide a photo if it helps. The LEDs are connected in series.

  6. blazoncek commented on Dec 11, 2024

    @blazoncek
    Contributor

    Ledmap and gap file are incompatible. Gap file is ignored if default ledmap exists. You can have non-default ledmaps and use gap file but once ledmap is selected gap file will be ignored.
    If you want default 2D ledmap you'll need to update ledmap file to include width and height. Gap file and non-default ledmaps have no such restrictions.

  7. blind-coder commented on Dec 11, 2024

    @blind-coder
    Author

    Okay, I think I understand. So I remove the gap file and add "width": 9 and "height": 5 to ledmap.json and it should work?

    {
      "map":[
        -1,-1,14,-1,12,-1,10,-1,-1,
        -1,15,-1,13,-1,11,-1, 9,-1,
         0,-1,-1,-1,-1,-1,-1,-1, 8,
        -1, 1,-1, 3,-1, 5,-1, 7,-1,
        -1,-1, 2,-1, 4,-1, 6,-1,-1
      ],
      "width": 9,
      "height": 5
    }

    Like this?

  8. added
    workaround
    on Dec 15, 2024
  9. blind-coder commented on Dec 17, 2024

    @blind-coder
    Author

    This seems to be working now with the width and height values. Thank you!
    Adding this information to https://kno.wled.ge/advanced/mapping/#examples might be helpful.

  10. blazoncek commented on Dec 17, 2024

    @blazoncek
    Contributor
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

    bugworkaround

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions