Couldn't reallocate memory

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

Custom board

What do you want to achieve?

I want to run the lvgl running successfully without memory being running out, I’m getting the error as “out of memory”!!

What have you tried so far?

  1. I have tried using “lv_obj_clean(lv_scr_act())” and memory clean is happening but “segmentation fault” error pops up after some screens. I did see the memory cleaning through debug statements (lv_mem_monitor)

  2. I have tried running lv_timer_handler() and lv_tick_inc(5) in different threads.

  3. I have tried using “lv_obj_del(lv_scr_act())”, the error is active screen is deleted.

I need assistance in running my lvgl program without any memory related errors.