The mcu run for a while, the picture display error


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

MCU: NRF52840 compiler: KEIL5 v5.02

What LVGL version are you using?

LVGL: v7.11.0

What do you want to achieve?

load picture from external flash

What have you tried so far?

I use fatsfs adapt to lvgl filesystem, at first, the picture show well, but the mcu run for a while,the picture can`t display

Code to reproduce

lv_obj_t* screen = get_background(NULL);

	imgbtn = lv_imgbtn_create(screen, NULL);
	lv_imgbtn_set_src(imgbtn, LV_BTN_STATE_RELEASED, "/ditu/sport_s.bin");
	lv_obj_align(imgbtn, NULL, LV_ALIGN_CENTER, 0, -30);

	label_sport = lv_label_create(screen, NULL);
	lv_obj_set_style_local_text_font(label_sport, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, &sy_mid_20);
	lv_obj_set_style_local_text_color(label_sport, LV_LABEL_PART_MAIN, LV_STATE_DEFAULT, LV_COLOR_WHITE);
	lv_label_set_text(label_sport, "运动");
	lv_obj_align(label_sport, imgbtn, LV_ALIGN_OUT_BOTTOM_MID, 0, 15);

#define LV_IMG_CACHE_DEF_SIZE       1

Screenshot and/or video

00> app: …\my_app\lvgl\src\lv_draw\lv_img_cache.c->128 _lv_img_cache_open->
00> app: …\my_app\lvgl\src\lv_draw\lv_draw_img.c->88 lv_draw_img->
Corresponding code:

at first, the picture show well, as following

the mcu run for a while,the picture can`t display, as following:

Probably it’s an out-of-memory issue. Please enable logging to see what happens