Memory full issue

What MCU/Processor/Board and compiler are you using?

Custom board and cross compiler

What LVGL version are you using?

8.3

What do you want to achieve?

I’m allocating a certain memory size and it is consuming full after some screens.

What have you tried so far?

  1. Tried using lv_obj_clean(lv_scr_act()) but the small amount of memory chunk is not being cleared and this small chuck fills the memory which leads to out of memory.
  2. Used memory monitor to debug the memory space consumed.
  3. Used lv_obj_del(lv_scr_act()) but after some screens I get segmentation fault!!

Use lv_scr_load_anim(screen, LV_SCR_LOAD_ANIM_NONE, 0, 0, true) to tackle the out of memory issue.

Use mutex lock and unlock before and after calling the screen contents. This concept helped me too. Thanks.