glfwInit crashes when using multiple monitors (glfw3, glew, opengl 3.2, osx mavericks, macbook pro '11)

Using GLFW
  • Phildo

    Phildo - 2014-01-21

    Using as bare bones implementation as possible (essentially just

    (apparently this forum software doesn't like hashtags or triangle brackets, but imagine they are there)
    include GL/glew.h
    include GLFW/glfw3.h
    int main()

    ), I get an error when an external monitor is plugged in:

    Error: Cocoa: Failed to find NSScreen for CGDisplay
    app(80134,0x7fff7b8a0310) malloc: error for object 0x7fab9af003e0: pointer being freed was not allocated
    set a breakpoint in malloc_error_break to debug

    using llvm-g++. Any ideas of where this bug lies?

    Last edit: Phildo 2014-01-21
  • Camilla Löwy

    Camilla Löwy - 2014-01-21

    This seems to be a bug. Please report this.

  • Phildo

    Phildo - 2014-01-23

    darn it. was hoping for a quick fix. submitted. thanks for the help!