Please reread, this is not a duplicate. The linked issue is about the game freezing, this issue is about a button that doesn't work. The game is still responsive apart from the dialog that steals focus.
They are similar but different issues affecting the same part of the game.
Toggling between showing/hiding the ui brings the fps above 200 again. I don't know what could be causing it. Is there any GPU debugging to show what's on screen that could be causing it?
However, going into a single player world the fps is above 200.
Few hours later, issue appeared again. I'm sitting around ~30 fps with GPU usage at 8%.
Some servers have mixed survival/creative mechanics, and barriers should not be obtained. Being breakable isn't part of the issue. Being obtainable without /give is.
They have different error messages, with different hardware configurations.
How are they duplicates?
Update: It also crashes using Oracle Java
I recreated the world in vanilla and made the last screenshot.
Seed: 1854626679306623117
Coords added in screenshot
Note that the world generates with dirt there, and the grass then spreads, so you may need to wait a while.
This does not occur with Oracle Java, it's an issue of the Openjdk java. Also this issue is still marked duplicate despite not being a duplicate. At least not of the issue it's marked a duplicate of.