Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-49110

QCocoaGLContext constructor NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.6.0 RC
    • 5.3.2, 5.5.1
    • QPA
    • None
    • OSX 10.11.1
    • macOS
    • ba94e26b8b233456b004084892464ec55b20800c

      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

        1. crash-11572.dmp.txt
          75 kB
          Dyami Caliri
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            sorvig Morten Sørvig
            dzedsystems Dyami Caliri
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes