In this case, apparently cp had been contacted and the train was slowing down but was unable to stop. That doesnt seem like the whole story though as that train did not seem to have the brakes on emergency.This reminds me of a little safety thought. Decades ago a train hit a stalled TTC bus in Scarborough. The bus was evacuated before the train hit but one person got hit by the spinning bus and was killed.
I was discussing it with a friend and he commented "I wonder if the train really tried to stop." What he meant was the engineer saw the bus on the tracks but thought it would move so he didn't hit the brakes until it was too late, not that trains are easy to stop.
More than once I've assumed an obstacle on the road would clear itself and then had to slam on the brakes because I made the wrong assumption.
I was shocked at how close all the other vehicles were to the crossing. It is pretty obvious what may happen. I know many rail employees that stop ~100' back from a lowered crossing gate as they have seen enough derailments, they dont want to be in one.