I was using vscode plus x11 to render environment in gym, it fails.
I was trying to use x11 extension in vscode to configure remote gui for pyglet rendering in my code, successfully running "xclock" command and "plt" scripts. But when running env.render() in gym environment for rendering, the screen turns all black for seconds, then an error message shows up and the process terminates:
In remote x11 extension, the log shows:
So in the server's terminal, I changed the DISPLAY port to 17.0:
Before I used vscode, I have been using mobaXterm for remote rendering, it has been functioning very well, but after I have installed xming in my windows, mobaXterm has the same error as vscode, I didn't change configurations in mobaXterm, don't know what happens