My program hangs when I update label text periodically

Hi,
My program hangs when I use the “lv_label_set_text” function to update the text of a label. this problem is solved by using the function “lv_label_set_text_static”. But I can not use this function because this function can not be used for Arabic and Persian fonts. please guide me.

Please enable logging and see if anything useful gets printed. My guess is that you ran out of heap space.

Sorry for the delay in getting back to you. sometimes just TFT simulator hangs and sometime I get following error.
Error: lv_draw_rect (lv_draw_rect.c #125 lv_draw_rect())
Error: Memory integrity error (0x00000000) (lv_debug.c #127 lv_debug_log_error())