Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.55k stars 3.11k forks source link

2D Matrix Setup Not Saving After 19 panels. #3295

Open bigsandman69 opened 1 year ago

bigsandman69 commented 1 year ago

What happened?

I recently updated to the newest version of WLED beta release 0.14.0-b3. I am trying to use the 2D matrix setup for 24 8x32 led matrix panels. It will allow me to setup the 24 screens but when I hit save and go back into 2D configuration it will not save any past 19.

To Reproduce Bug

Add 24 matrix panels configure and save. Then go back into 2D configuration and will only show 19 panels configured and number 20 will be default and shows none past 20 in config windows at bottom.

Expected Behavior

2D configuration will not save any matrix panels past 19.

Install Method

Binary from WLED.me

What version of WLED?

WLED version 0.14.0-b3 (build 2306210)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

No response

Anything else?

No response

Code of Conduct

Aircoookie commented 1 year ago

Are your panels on one LED pin or split across multiple? You are trying to drive 6.144 LEDs which is quite a huge amount even for an ESP32. Maximum LEDs per bus (pin) currently defaults to 2048, so you'll need to split your matrix across three pins. Are you already able to drive all LEDs in 1D mode and just the 2D setup is giving you trouble?

bigsandman69 commented 1 year ago

Are your panels on one LED pin or split across multiple? You are trying to drive 6.144 LEDs which is quite a huge amount even for an ESP32. Maximum LEDs per bus (pin) currently defaults to 2048, so you'll need to split your matrix across three pins. Are you already able to drive all LEDs in 1D mode and just the 2D setup is giving you trouble?

Sorry I didn't put my hardware in description. I'm currently using Wasatch Advanced 8 channel controller board & Each channel controls 768 Leds of the overall panel. I updated it from WLED 0.13.3 to use the 2D configuration to give me options to display text when my show isn't running. Currently The board drives Matrix fine from XLights & It actually drives fine in WLED it just doesn't save the configuration after panel 19 in the 2D configuration page. when you go back into 2D configuration panel 19 is in default position and no panels past 19 show unless you make a change to number of panels and re-setup every panel past 19 again, but every time you leave the 2D configuration page it goes back to 19. Is there some sort of MAX set somewhere that would cause this not to save past 20 panels total?

blazoncek commented 1 year ago

Please post your cfg.json after saving 2D configuration. You can obtain it from security settings page.

dosipod commented 1 year ago

Seems to be pushing it , the 2D page even got reset when we added 24 panels but segments still showed the matrix . Prior to the reset as the OP mentioned you will only be able to save until panel 19 .Sorry to butt in image 2D_RESET_AFTER_ADDING_24_PANELS.cfg.json.txt

dosipod commented 1 year ago

A work around for the 2D page might be to just setup the whole thing as one matrix image

However peek is broken and i am sure real leds will also not work correctly as I think we seen issue with even less leds here in discord https://discord.com/channels/473448917040758787/801531333067014164/1128562990338285628 , it was unfortunately not solved

onepanel_cfg.json.txt

blazoncek commented 1 year ago

2D_RESET_AFTER_ADDING_24_PANELS.cfg.json.txt

cfg.json looks ok and has 24 panels, 8 LED outputs 768 pixels each. I would guess RAM gets depleted somewhere. Please use a debug build and provide debug output to narrow down this issue.

However peek is broken

Peek will not work correctly with anything above 4096 pixels. It is not designed for that.

dosipod commented 1 year ago

Not sure my debug is helpful as I have no leds or if the setup with one panel is working for the OP . Still using debug build i could not see anything unusual on serial and i could add more panels but trouble start when the offset can no longer be changed . It might help if the last panels after 19 is added one by one ( meaning add one and save ) muti-panels-2d-page image

blazoncek commented 1 year ago

I think the problem is that URL becomes too long. There is nothing we can do about it unless we reprogram web server. The limit will be 21 panels in this case.

blazoncek commented 1 year ago

I am not sure we will be able to overcome this problem. I will assign a backburner status and we'll see what we can do about it in the future.