Wherever lv_style_t variables are used, you need to use static lv_style_t.
Reason is, that calling lv_style_init passes a pointer to memory that is expected to persist infinitely.
After leaving the lvgl_lv_-function, the style memory is freed but lvgl accesses the freed memory for painting.
Wherever
lv_style_tvariables are used, you need to usestatic lv_style_t.Reason is, that calling
lv_style_initpasses a pointer to memory that is expected to persist infinitely.After leaving the
lvgl_lv_-function, the style memory is freed but lvgl accesses the freed memory for painting.