When the component is displayed, the program enters HardFault_Handler()

Hello, I transplanted LVGL on STM32F407VET6, using the component code provided on the official website, but the program often enters HardFault_Handler(). Later, after debugging, I found that when the program executes to the lv_font_get_glyph_width() function, it enters HardFault_Handler(). What are the possible reasons for this phenomenon? I am a beginner, try to brush some components on the page. Some show success, some fail, and then enter HardFault_Handler().

What’s your stack size and heap size?

Thank you. I checked the stack size, the stack size is 1K, and the heap size is also 1K. I increased the stack size. The problem is solved.