This error has been occurring sporadically for some time now when the script AI is trying to build bridges.
The bridge is still built, however.
Now, this error also occurs when attempting to build a tunnel. This time, however, the tunnel is not built.
Simutrans r12138 (https://github.com/Andarix/simutrans/releases)
pak64.german 0.124.4.0.1