Make sure that any units don't slip outside of the map. That means that they all stay within the tiles.
It is also possible that you are using extended units which will most definetly cause a crash.
Disabling//Enabling doodad state for some units may also cause a crash