App crashing when map loads or reloads

Hello everyone. I’m developing an app to track the garbage trucks in my city. I know how to display them on my map but I need to refresh their locations keeping the same amount of markers without crashing my app. Here’s my blocks so far.

Any ideas to help?