lvgl icon indicating copy to clipboard operation
lvgl copied to clipboard

lodepng: decoder_open: error 83: memory allocation failed

Open mtojek opened this issue 1 year ago • 3 comments

LVGL version

v9.2.0, v9.3.0

What happened?

Hey!

I'm having a hard time figuring out how should I modify lv_conf.h to display PNG file using lodepng:

[Error] (7.180, +8)      lv_draw_image_normal_helper: Failed to open image lv_draw_image.c:174
[Warn]  (7.242, +62)     decoder_open: error 83: memory allocation failed

I want to run the code on ESP32-S3 (Lolin32). I was able to easily display PNG images with v8.3.2, but API in v9 changed, and I can't determine which #define values should I use.

How to reproduce?

I'm experimenting with:

// LVGL memory
#define LV_MEM_CUSTOM 1
// #define LV_MEM_SIZE (128U * 1024U)
#define LV_MEM_CUSTOM_INCLUDE <esp32-hal-psram.h>
#define LV_MEM_CUSTOM_ALLOC(size) ps_malloc
#define LV_MEM_CUSTOM_FREE(ptr) ps_free

and:

#define LV_MEM_SIZE (96 * 1024U)
#define LV_MEM_POOL_INCLUDE <esp32-hal-psram.h>
#define LV_MEM_POOL_ALLOC ps_malloc

mtojek avatar Sep 19 '24 18:09 mtojek

So is the goal to change to new allocators? If so, you can select LV_STDLIB_CUSTOM here and create a new file similar to this.

Actually I think we should have a ready to use config for ESP.

cc @tore-espressif @espzav

kisvegabor avatar Oct 03 '24 11:10 kisvegabor

We need some feedback on this issue.

Now we mark this as "Abandoned" because there was no activity here for 14 days.

Remove the "Stale" label or comment else this will be closed in 7 days.

lvgl-bot avatar Oct 19 '24 02:10 lvgl-bot

@mtojek How is this goin' on?

kissa96 avatar Oct 21 '24 09:10 kissa96

We need some feedback on this issue.

Now we mark this as "Abandoned" because there was no activity here for 14 days.

Remove the "Stale" label or comment else this will be closed in 7 days.

lvgl-bot avatar Nov 08 '24 02:11 lvgl-bot

Closing in lack of feedback.

kisvegabor avatar Nov 13 '24 09:11 kisvegabor