Skip to content

Applying incorrect 2D settings will make it crash #3889

@DedeHai

Description

@DedeHai

What happened?

saving incorrect 2D settings while an FX is running causes a crash and settings are not saved.

To Reproduce Bug

setup one 2D panel. I used 256 leds, one output, 1 panel, 16x16.
load Akemi FX, save as preset and apply at boot. then reboot.
without changing LED outputs, go to 2D settings, set to two panels, 16x16 each, set the second one to x-offset=16 (offset is important, I suspect something tries to write to the non-existing leds outside the first 16x16 panel)
apply settings and it does crash.
happens on ESP32 and ESP32 S2 and S3.
was not able to reproduce this on 0.14.3

Expected Behavior

should not crash or at least save the settings.

Install Method

Self-Compiled

What version of WLED?

0.15 (latest at 7. 4. 2024)

Which microcontroller/board are you seeing the problem on?

ESP32

Relevant log/trace output

WS FileRead: /index.htm
JSON buffer locked. (17)
JSON buffer size: 8023 for request: 6
JSON content length: 5417
JSON buffer released. (17)
JSON buffer locked. (17)
JSON buffer size: 4807 for request: 8
JSON content length: 2190
JSON buffer released. (17)
JSON buffer locked. (17)
JSON buffer size: 2498 for request: 3
JSON content length: 1360
JSON buffer released. (17)
WS FileRead: /skin.css
Not-Found HTTP call: /presets.json
WS FileRead: /presets.json
WS client connected.
JSON buffer locked. (12)
JSON buffer size: 2494 for WS request (1360).
heap 184964
Sending WS data to a single client.
JSON buffer released. (12)
WS client disconnected.
settings resp0
settings resp10
Guru Meditation Error: Core  1 panic'ed (StoreProhibited). Exception was unhandled.
Core 1 register dump:
PC      : 0x4008d356  PS      : 0x00060833  A0      : 0x8008f35e  A1      : 0x3ffdc730  
A2      : 0xffffffff  A3      : 0x0000abab  A4      : 0xb33fffff  A5      : 0x00000001  
A6      : 0x00060820  A7      : 0x0000cdcd  A8      : 0x0000abab  A9      : 0x3ffdc730  
A10     : 0x00000003  A11     : 0x00060823  A12     : 0x00060820  A13     : 0x3ffdc94c  
A14     : 0x3f407a19  A15     : 0x00000037  SAR     : 0x0000001f  EXCCAUSE: 0x0000001d  
EXCVADDR: 0xffffffff  LBEG    : 0x400014fd  LEND    : 0x4000150d  LCOUNT  : 0xfffffffe  

ELF file SHA256: 0000000000000000

Backtrace: 0x4008d353:0x3ffdc730 0x4008f35b:0x3ffdc760 0x4008f9a1:0x3ffdc780 0x40085f2d:0x3ffdc7a0 0x40085f5e:0x3ffdc7c0 0x4008637d:0x3ffdc7e0 0x4000beaf:0x3ffdc800 0x401b55af:0x3ffdc820 0x4011f9d5:0x3ffdc8a0 0x401ba372:0x3ffdc8e0 0x400e8c62:0x3ffdc900 0x4010d01d:0x3ffdc990 0x4011c241:0x3ffdcdd0 0x4011c899:0x3ffdce70 0x40130b6d:0x3ffdce90 0x4012e5b9:0x3ffdcee0 0x4012e641:0x3ffdcf20 0x401243ad:0x3ffdcf40 0x4012442d:0x3ffdcf80 0x40124a5e:0x3ffdcfa0 0x4008c486:0x3ffdcfd0

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DOUT, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1084
load:0x40078000,len:11220
load:0x40080400,len:5360
entry 0x4008067c

---WLED 0.15.0-b2 2404050 INIT---
esp32 v3.3.6-16-gcc5440f6a2
arduino-esp32 v1.0.x

CPU:   ESP32-D0WDQ6 rev.0, 2 core(s), 240MHz.
FLASH: 4MB, Mode 3 (DOUT), speed 40MHz.
heap 312096
JSON buffer allocated: 32767
PIN ALLOC: Pin 1 successfully allocated by 0x89 (137)
Registering usermods ...
heap 279260
Reading config
Reading settings from /wsec.json...
JSON buffer locked. (3)
JSON buffer released. (3)
JSON buffer locked. (1)
Reading settings from /cfg.json...
Removing all.
PIN ALLOC: Pin 16 successfully allocated by 0x82 (130)
Successfully inited strip 0 (len 256) with type 22 and pins 16,255 (itype 23). mA=55/850
PIN ALLOC: Pin 0 successfully allocated by 0x85 (133)
Starting usermod config.
JSON buffer released. (1)
heap 271876
Initializing strip
Loading custom palettes
Loading custom ledmaps
Matrix ledmap:
 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267, 268, 269, 270, 271,
 272, 273, 274, 275, 276, 277, 278, 279, 280, 281, 282, 283, 284, 285, 286, 287,
 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303,
 304, 305, 306, 307, 308, 309, 310, 311, 312, 313, 314, 315, 316, 317, 318, 319,
 320, 321, 322, 323, 324, 325, 326, 327, 328, 329, 330, 331, 332, 333, 334, 335,
 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 351,
 352, 353, 354, 355, 356, 357, 358, 359, 360, 361, 362, 363, 364, 365, 366, 367,
 368, 369, 370, 371, 372, 373, 374, 375, 376, 377, 378, 379, 380, 381, 382, 383,
 384, 385, 386, 387, 388, 389, 390, 391, 392, 393, 394, 395, 396, 397, 398, 399,
 400, 401, 402, 403, 404, 405, 406, 407, 408, 409, 410, 411, 412, 413, 414, 415,
 416, 417, 418, 419, 420, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 431,
 432, 433, 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447,
 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463,
 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479,
 480, 481, 482, 483, 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495,
 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511,
Playlist unloaded.
Request to apply preset: 1
heap 271144
Usermods setup
heap 271144
Defaulf WiFi used.
initServer
heap 216672
Initial connect or forced reconnect.
Defaulf WiFi used.

Anything else?

No response

Code of Conduct

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions