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

Error on first responder set to nil on 10.12 Sierra #876

sp-erik-podetti opened this Issue Oct 7, 2016 · 3 comments


None yet
3 participants
Copy link

sp-erik-podetti commented Oct 7, 2016

[General] ERROR: Setting as the first responder for window , but it is in a different window ((null))! This would eventually crash when the view is freed. The first responder will be set to nil.

There is a way to avoid or fix this error? It comes with every example when creating the window. It wasn't occurring on max osx 10.11 (El Capitan)

@elmindreda elmindreda self-assigned this Oct 7, 2016

@elmindreda elmindreda changed the title ERROR on first responder set to nil on OSX 10.12 (Sierra) Error on first responder set to nil on 10.12 Sierra Oct 8, 2016


This comment has been minimized.

Copy link

elmindreda commented Oct 8, 2016

@sp-erik-podetti What is the error and how would I go about reproducing it?

@elmindreda elmindreda added the waiting label Oct 8, 2016


This comment has been minimized.

Copy link

HoMeBoYErik commented Oct 11, 2016

Just a basic main with default init functions on osx Sierra and you will get the message in the console.
For OpenGL headers I user glLoadGen with pointer_cpp spec

`int main(int argc, char* argv[])
    // Initialize GLFW

#ifdef __APPLE__
    // Select OpenGL 4.1
    glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
    glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 1);
    // Select OpenGL 4.3
    glfwWindowHint(GLFW_CONTEXT_VERSION_MAJOR, 4);
    glfwWindowHint(GLFW_CONTEXT_VERSION_MINOR, 3);
    glfwWindowHint(GLFW_OPENGL_FORWARD_COMPAT, gl::TRUE_);
    glfwWindowHint(GLFW_RESIZABLE, gl::FALSE_);
    glfwWindowHint(GLFW_OPENGL_DEBUG_CONTEXT, gl::TRUE_);

    // Open the window, get current resolution and set fullscreen
    std::string title = "My Window -- ";
    GLFWmonitor* monitor = glfwGetPrimaryMonitor();
    const GLFWvidmode* mode = glfwGetVideoMode(monitor);
    glfwWindowHint(GLFW_RED_BITS, mode->redBits);
    glfwWindowHint(GLFW_GREEN_BITS, mode->greenBits);
    glfwWindowHint(GLFW_BLUE_BITS, mode->blueBits);
    glfwWindowHint(GLFW_REFRESH_RATE, mode->refreshRate);

    window = glfwCreateWindow(800, 600, title.c_str(), nullptr, nullptr);

    glfwSetKeyCallback(window, key_callback);

    // Load the OpenGL functions.
    gl::exts::LoadTest didLoad = gl::sys::LoadFunctions();


    // Initialization
    resizeGL(mode->width, mode->height);

    // Enter the main loop

    // Close window and terminate GLFW
    // Exit program

This comment has been minimized.

Copy link

elmindreda commented Oct 16, 2016

This has been fixed with #883. Thank you for reporting it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment