Textarea_get_text doesnt work as it should?

Description

I’m trying to use textarea_get_text to read the info thst’s in the textarea and keep it in a variable, but I can’t even use this function because my esp restart itself.

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

esp, arduino

What LVGL version are you using?

8.4.0 (library)

What do you want to achieve?

read whats in the textarea so I can keep it in a variable

What have you tried so fstatic void kb_event_cb(lv_event_t* e){

const char*bruh =   lv_textarea_get_text(id5_ta);
Serial.println(bruh);

Code to reproduce

Add a code snippet which can run in the simulator. It should contain only the relevant code that compiles without errors when separated from your main code base.

The code block(s) should be formatted like:

/*You code here*/
```  kb = lv_keyboard_create(lv_scr_act());
  lv_obj_set_size(kb, LV_HOR_RES, LV_VER_RES / 2);
  lv_obj_add_event_cb(kb, kb_event_cb, LV_EVENT_READY, NULL);
  lv_keyboard_set_textarea(kb, id1_ta); /*Focus it on one of the text areas to start*/
}
static void kb_event_cb(lv_event_t* e){
    const char*bruh =   lv_textarea_get_text(id5_ta);
    Serial.println(bruh);
}


## Screenshot and/or video
If possible, add screenshots and/or videos about the current state.