ImageButton crashes my ESP32-P4

Hello

I have a problem with an ImageButton (but the same happens with an Image widget).
I have defined a callback function when the button gets clicked.

This callback function is totally empty. There is no code:

void cf_BtnRexEnable_Clicked(lv_event_t * e){
}

But when I click on the button, it crashes my ESP32-P4!

All my other regular buttons work fine, but this ImageButton not.
I have no idea what is going on since the click event doesn’t perform any of my code :thinking:

Can someone help-me please?

Thank you

Environment

  • MCU/MPU/Board: ESP32-P4
  • LVGL version: v9.4

Can you share the button code?