Repro (assuming that you have train tracks researched)
- Have an existing track piece.
- With train tracks held with your cursor click the train track when the arrow turns green.
- Keep the mouse cursor behind the new track.
- Left click to lay track one piece at a time without regard for how far away your character is.
- Something is in the way of the track and you can't build more.