Oh dear. Well done that driver.
It's not clear why the lorry is on the tracks but it seems to be "trapped" between the two barriers. There's no other traffic and it's clearly not a busy road so I presume either it's broken down, there was a crossing malfunction which caused the barriers to suddenly descend without warning or most likely the lorry driver ignored the signals and tried to get across the track as the barriers were coming down. I'm afraid that would not be an uncommon example of Polish driving (though more typical of cars and buses than lorries).