Can't display the png img in vs2019 simulator


I use LVGL’s file system API, it work fine when i transform the img to bin file,but when i open png file directly,it display “nodata”.

I Initalize the decocer with lv_png_init() and add #define LV_PNG_USE_LV_FILESYSTEM 1 in lv_conf.h, and my mem size is 4x1024x1024

It printf: ERROR 48:empty input buffer given to decoder. Maybe caused by non-existing file?

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


What do you experience?

What do you expect?

Code to reproduce

lv_obj_t * img = lv_img_create(lv_scr_act(), NULL);
lv_img_set_src(img, "P:lv_lib_lodepng/png_decoder_test.png");

Discussed on Github: