OK, I solved it. The error occurs when I remove a section for editing animations from the widget editor. The solution is to reset the user layout.