I am getting these errors:
[00:00:19.340,454] <wrn> lvgl: (19.340, +0) lv_draw_img: Image draw error (in lv_draw_img.c line #81)
--- 5 messages dropped ---
[00:00:19.353,240] <wrn> lvgl: (19.353, +13) _lv_img_cache_open: Image draw cannot open the image resource (in lv_img_cache.c line #125)
[00:00:19.353,393] <wrn> lvgl: (19.353, +0) lv_draw_img: Image draw error (in lv_draw_img.c line #81)
[00:00:19.366,210] <wrn> lvgl: (19.366, +13) _lv_img_cache_open: Image draw cannot open the image resource (in lv_img_cache.c line #125)
[00:00:19.366,363] <wrn> lvgl: (19.366, +0) lv_draw_img: Image draw error (in lv_draw_img.c line #81)
[00:00:19.379,150] <wrn> lvgl: (19.378, +12) _lv_img_cache_open: Image draw cannot open the image resource (in lv_img_cache.c line #125)
[00:00:19.379,302] <wrn> lvgl: (19.379, +1) lv_draw_img: Image draw error (in lv_draw_img.c line #81)
When calling this function:
uint8_t token_src[2858];
void screen_watchface_img_set_src() {
//un-cache image
lv_img_cache_invalidate_src(NULL);
const lv_img_dsc_t img_dsc = {
.header.cf = LV_IMG_CF_INDEXED_1BIT,
.header.always_zero = 0,
.header.reserved = 0,
.header.w = 150,
.header.h = 150,
.data_size = 2858,
.data = token_src,
};
lv_img_set_src(ui_token_image, &img_dsc);
lv_task_handler();
}
token_src has bytes from the online image converter. I compared them to make sure and they match up.
I read this post, but it didn’t offer an answer.