LVGL visual bug

Hi, i’ve been having an issue for a couple of weeks and i can’t seem to understand why or how this happens. So i run LVGL with ESP-IDF, and on my esp i run a webserver via the esp_http_server package. This also runs with SPIFFS to send all the files i need on this webserver. On refresh/load, so when SPIFFS send the files my LVGL UI moves in the width of the screen to the right. So all LVLG objs move, but their actual position isn’t different from the initialisation. So they visualy appear wrong but when u try to click on some objs their positions is correct. Now when does this bug appear, it appears on sending chunks with the files like this.

char buffer[1024];
    size_t read_bytes;
    while ((read_bytes = fread(buffer, 1, sizeof(buffer), file)) > 0) {
        esp_err_t res = httpd_resp_send_chunk(req, buffer, read_bytes);
        if (res != ESP_OK) {
            fclose(file);
            httpd_resp_send_500(req);
            ESP_LOGE(TAG, "Error sending chunk!");
            return res;
        }
    }

i have tried adding vTaskdelay’s, adjusting the buffer, not sending inchunks but the full files, … Nothing seems to remotely help or change anything.

Display bus? RTOS? What is your question?

Just any suggestions on how this could happen, or what is happening under the hood so i could fix it. I’m just clueless as to why this part of the code would mess with the UI.