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

phildos wrote on Tuesday, January 21, 2014:

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?

elmindreda wrote on Tuesday, January 21, 2014:

This seems to be a bug. Please report this.

phildos wrote on Thursday, January 23, 2014:

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