We have several crash reports where QCocoaIntegration::createPlatformOpenGLContext(QOpenGLContext*) crashes when constructing QCocoaGLContext()
The trace shows an invalid address when calling:
objc_msgSend() selector name: setValues:forParameter:
Looking at QCocoaGLContext, it must be the 'm_context' object that is nil. This could happen if [m_context initWithFormat:pixelFormat shareContext:nil] fails.
I've attached an example crash dump.
I believe this is the cause of QTCREATORBUG-14173