-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Visualizer error on macOS with SSH X11 forwarding #35
Comments
The issue is that OpenGL graphics cannot be forwarded over SSH without a 3rd party utility. As mentioned in the error message, one option is to install the VirtualGL utility. You need to follow their install instructions carefully, as it can be tricky in some cases. Another option is to use a VNC server/client like TurboVNC to remotely connect using a virtual desktop rather than over SSH. This is our preferred method because you can run CLion on the remote sever. |
Ok thanks, I will try these options. I am surprised that forwarding glxgears (based on OpenGL) works fine though... |
I managed to get the Visualizer working commenting out these two lines in Visualizer.cpp: glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE); // To make MacOS happy; should not be needed
glfwWindowHint(GLFW_OPENGL_PROFILE, GLFW_OPENGL_CORE_PROFILE); //We don't want the old OpenGL Apparently it's an error with GLX_ARB_create_context_profile, it seems to be a common issue with X11 forwarding on Mac. GLX: An OpenGL profile requested but GLX_ARB_create_context_profile is unavailable
GLX: Forward compatibility requested but GLX_ARB_create_context_profile is unavailable I got the above error when adding some glfw debugging in my script: static void glfwError(int id, const char* description)
{
std::cout << description << std::endl;
}
int main(){
glfwSetErrorCallback(&glfwError);
[...]
} |
When running any code that involves the Visualizer plugin, I get the following error:
Context:
The text was updated successfully, but these errors were encountered: