System crash at function _lv_event_mark_deleted()


I created the main/initial screen (StartScreen). (func: StartScreen = lv_obj_create(NULL))

A second screen (MenuScreen) (func: MenuScreen= lv_menu_create(NULL)) is created and displayed by pressing a key/button.
(func: _ui_screen_change(&MenuScreen, LV_SCR_LOAD_ANIM_NONE, 0, 0, &MenuScreen_Init))
The menu screen has many submenus with objects.

When I’m somewhere deep in the sub-menu, I want to leave the MenuScreen with the second key while holding it, and switch to the StartScreen (func: lv_scr_load(ui_StartScreen) or _ui_screen_change(&StartScreen , LV_SCR_LOAD_ANIM_NONE, 0, 0, &StartScreen_Init);

An error occurs with the function _lv_event_mark_deleted().
Why does it appear, and how to properly exit the entire menu?

Back from menu, using backbtn (<) works ok

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

ESP32-C3, ESP-IDF v5.0

What LVGL version are you using?