LVGL8.3 Failed to obtain coordinates and height/width

When I finish creating an OBJ, I immediately fail to retrieve information
lv_obj_get_x(obj) x=0
lv_obj_get_wight(obj) wight = 0

LVGL does not calculate the sizes immediately; call
lv_obj_update_layout(obj) first before getting the size to force re-calculation