SLS project corrupted if chart series data is empty

SLS allows chart data series to be empty. This will corrupt the project on next reload and make UI export unable to compile.

Compiling .pio\build\lilygo-t-display-s3\src\ui\screens\ui_scrManual.o
src/ui/screens/ui_scrManual.c: In function 'ui_scrManual_screen_init':
src/ui/screens/ui_scrManual.c:115:5: error: 'lv_chart_set_ext_y_array' accessing 2 bytes in a region of size 0 [-Werror=stringop-overflow=]
  115 |     lv_chart_set_ext_y_array(ui_scrM_cntP_Chart_topLeft, ui_scrM_cntP_Chart_topLeft_series_1,

What have you tried so far?

make sure series data is not empty

Screenshot or video



  • SquareLine Studio version:

  • Operating system:
    Windows 11

  • Target hardware:
    VS Code with SDL for development on PC

Thank you for pointing it out. We will fix it in the next release. As a workaround please, just add a single 0 as Data.

1 Like