Frequent crashes during rendering using handlers

Hello !

I’m opening a discussion because i’m having a lot of crashes when I render (image or animation), in a project using a lot of handlers. I noticed there are no such crashes on my similar projects without handlers, but these are frequent on my projects with handlers.

The handlers I put are called during the event frame_change_pre.

I’m using blender 2.81.

Here is the download link to my project if you want to reproduce the bug :

I’m kaving the same problem with this file, where the constant crashes force me to render each frame manually, taking all my time.

The project crashed after the first frame rendered when I render animation.

The file link :

Big thanks for all who will help me !