After driving to the border checkpoint here
I found that the barrier at the railway crossing was closed, the lamps were blinking and the bell was ringing
but what was my surprise when I found out that the train was going on a different railway and the barrier was triggered falsely
The barrier was closed until the last carriage of the train passed the switch which switches the railway associated with the crossing. I quit the game and rebooted. waited for the next triggering of the barrier and the train left again on another railway.
I ask someone to try to reproduce this bug and if it is confirmed on the game without other mods, send a bug report.
Thanks