Skip to content

The image cannot be rotated in the LVGL visual studio simulator #106

@MX-Alen

Description

@MX-Alen

hello bro,
I am using EEZ Studio to build LVGL static pages. When it comes to rotating the image control, Visual compilation can pass, but when running, the decode_indexed_line function will report an error, and the error content is: "Exception raised: read access permission conflict. in is 0x7FF66C35709A", I tried to set LV_DRAW_LAYER_SIMPLE_BUF_SIZE and LV_DRAW_THREAD_STACK_SIZE to 1024*1024 in lv_conf.h, but the problem cannot be solved

  • The simulator code used is on the master branch, downloaded and run today (2025/05/21), lvgl and freetype are both downloaded from the master branch
  • The tool used is Visual Studio 2022 Community Edition, version number is 4.8.29032
  • The code that caused the problem is:
    lv_image_set_pivot(obj, 0, 0);
    lv_image_set_rotation(obj, 900);
    Comment out these two sentences and there will be no error
    The error is here
int32_t i;
for(i = 0; i < w_px; i++) {
    uint8_t val_act = (*in >> shift) & mask;//err is here
    out[i] = palette[val_act];
    shift -= px_size;
    if(shift < 0) {
        shift = 8 - px_size;
        in++;
    }
}
return LV_RESULT_OK;

Image

  • My English level not high, the above content is translated by Google, please forgive me

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions