Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Qt, QGLWidget and Xcode 11 = fail?
Forum Updated to NodeBB v4.3 + New Features

Qt, QGLWidget and Xcode 11 = fail?

Scheduled Pinned Locked Moved Unsolved General and Desktop
12 Posts 8 Posters 1.9k Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SGaistS Offline
    SGaistS Offline
    SGaist
    Lifetime Qt Champion
    wrote on last edited by
    #3

    Hi,

    I would rather bring this to the internet mailing list. You'll find there Qt's developers/maintainers. This forum is more user oriented.

    As for the crash report, you should check the bug report system.

    Interested in AI ? www.idiap.ch
    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

    1 Reply Last reply
    0
    • C Offline
      C Offline
      CroCo
      wrote on last edited by
      #4

      Do you have to use XCode? Have you tried other OpenGL libraries and a different C++ compiler?

      1 Reply Last reply
      0
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #5

        @CroCo Xcode is the only officially supported compiler on macOS.

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        C 1 Reply Last reply
        1
        • SGaistS SGaist

          @CroCo Xcode is the only officially supported compiler on macOS.

          C Offline
          C Offline
          CroCo
          wrote on last edited by
          #6

          @SGaist what do you mean? Other C++ compilers can't guarantee same performance, I'm talking about g++.

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #7

            I mean that Qt is built and tested only with Xcode as it is the only officially supported compiler on macOS.

            Other compilers may work, however, they are not supported.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            1 Reply Last reply
            1
            • W Offline
              W Offline
              wesblake
              wrote on last edited by
              #8

              But this is "Qt Development" forum no? I don't know that it's a bug, I think it's Apple and was asking in case there was just a config or some other thing I had to do to get around it.
              I do have an update. The problem is the new SDK. If I go back to a carbon copy backup I have with Xcode 10 (therefore 10.14 SDK) and build, I can run the built package in Catalina too. If I build on Xcode 11 (so SDK 10.15) it builds and runs on Mojave, but has the crash on Catalina. The problem appears to be a bug in SDK 10.15, or a compatibility issue between Qt and SDK 10.15

              1 Reply Last reply
              0
              • B Offline
                B Offline
                benjaminwelle
                wrote on last edited by benjaminwelle
                #9

                I am facing the same problem right now. We use Qt 5.9.1 on MacOS and just upgraded from Mojave to Catalina (and therefore Xcode 10.3 to Xcode 11.3.1) and now our software doesn't start anymore, crashing at the following call stack:

                1 -[NSOpenGLContext setView:]                      (x86_64) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit                  0x7fff35db5acc 
                2 -[QNSView setQCocoaGLContext:]                   (x86_64) /Users/Shared/Qt5.9.1/5.9.1/clang_64/plugins/platforms/libqcocoa.dylib         0x10fb4ccb7    
                3 QCocoaGLContext::makeCurrent(QPlatformSurface *) (x86_64) /Users/Shared/Qt5.9.1/5.9.1/clang_64/plugins/platforms/libqcocoa.dylib         0x10fb80fdc    
                4 QOpenGLContext::makeCurrent(QSurface *)          (x86_64) /Users/Shared/Qt5.9.1/5.9.1/clang_64/lib/QtGui.framework/Versions/5/QtGui      0x106917b5c    
                5 QSGRenderThread::run()                           (x86_64) /Users/Shared/Qt5.9.1/5.9.1/clang_64/lib/QtQuick.framework/Versions/5/QtQuick  0x1074d006d    
                6 QThreadPrivate::start(void *)                    (x86_64) /Users/Shared/Qt5.9.1/5.9.1/clang_64/lib/QtCore.framework/Versions/5/QtCore    0x10634ae7f    
                7 _pthread_start                                   (x86_64) /usr/lib/system/libsystem_pthread.dylib                                        0x7fff700f5e65 
                8 thread_start                                     (x86_64) /usr/lib/system/libsystem_pthread.dylib                                        0x7fff700f183b 
                

                This is the main message of the MacOS crash report:

                System Integrity Protection: enabledCrashed Thread:        9  QSGRenderThreadException Type:        EXC_BAD_INSTRUCTION (SIGILL)
                Exception Codes:       0x0000000000000001, 0x0000000000000000
                Exception Note:        EXC_CORPSE_NOTIFYTermination Signal:    Illegal instruction: 4
                Termination Reason:    Namespace SIGNAL, Code 0x4
                Terminating Process:   exc handler [74166]Application Specific Information:
                -[NSOpenGLContext setView:] must be called from the main thread.
                

                Is there any news about this problem?

                @wesblake @kuroki How did you solve the problem?

                jsulmJ 1 Reply Last reply
                0
                • B benjaminwelle

                  I am facing the same problem right now. We use Qt 5.9.1 on MacOS and just upgraded from Mojave to Catalina (and therefore Xcode 10.3 to Xcode 11.3.1) and now our software doesn't start anymore, crashing at the following call stack:

                  1 -[NSOpenGLContext setView:]                      (x86_64) /System/Library/Frameworks/AppKit.framework/Versions/C/AppKit                  0x7fff35db5acc 
                  2 -[QNSView setQCocoaGLContext:]                   (x86_64) /Users/Shared/Qt5.9.1/5.9.1/clang_64/plugins/platforms/libqcocoa.dylib         0x10fb4ccb7    
                  3 QCocoaGLContext::makeCurrent(QPlatformSurface *) (x86_64) /Users/Shared/Qt5.9.1/5.9.1/clang_64/plugins/platforms/libqcocoa.dylib         0x10fb80fdc    
                  4 QOpenGLContext::makeCurrent(QSurface *)          (x86_64) /Users/Shared/Qt5.9.1/5.9.1/clang_64/lib/QtGui.framework/Versions/5/QtGui      0x106917b5c    
                  5 QSGRenderThread::run()                           (x86_64) /Users/Shared/Qt5.9.1/5.9.1/clang_64/lib/QtQuick.framework/Versions/5/QtQuick  0x1074d006d    
                  6 QThreadPrivate::start(void *)                    (x86_64) /Users/Shared/Qt5.9.1/5.9.1/clang_64/lib/QtCore.framework/Versions/5/QtCore    0x10634ae7f    
                  7 _pthread_start                                   (x86_64) /usr/lib/system/libsystem_pthread.dylib                                        0x7fff700f5e65 
                  8 thread_start                                     (x86_64) /usr/lib/system/libsystem_pthread.dylib                                        0x7fff700f183b 
                  

                  This is the main message of the MacOS crash report:

                  System Integrity Protection: enabledCrashed Thread:        9  QSGRenderThreadException Type:        EXC_BAD_INSTRUCTION (SIGILL)
                  Exception Codes:       0x0000000000000001, 0x0000000000000000
                  Exception Note:        EXC_CORPSE_NOTIFYTermination Signal:    Illegal instruction: 4
                  Termination Reason:    Namespace SIGNAL, Code 0x4
                  Terminating Process:   exc handler [74166]Application Specific Information:
                  -[NSOpenGLContext setView:] must be called from the main thread.
                  

                  Is there any news about this problem?

                  @wesblake @kuroki How did you solve the problem?

                  jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #10

                  @benjaminwelle Did you try with more recent Qt version?

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  1 Reply Last reply
                  0
                  • W Offline
                    W Offline
                    withnail99
                    wrote on last edited by
                    #11

                    I also have this problem. App running fine on Windows, just now got it building on Mac, using Qt 5.12.8, and have the same exception from Qt3DRender::Renderer::doRender() -> [NSOpenGLSetContext setView] -> exception.

                    mrjjM 1 Reply Last reply
                    0
                    • W withnail99

                      I also have this problem. App running fine on Windows, just now got it building on Mac, using Qt 5.12.8, and have the same exception from Qt3DRender::Renderer::doRender() -> [NSOpenGLSetContext setView] -> exception.

                      mrjjM Offline
                      mrjjM Offline
                      mrjj
                      Lifetime Qt Champion
                      wrote on last edited by
                      #12

                      @withnail99
                      Hi
                      Are you sure 5.12 is supported?
                      Catalina is 10.15 ?

                      https://doc.qt.io/qt-5.12/supported-platforms.html

                      alt text

                      1 Reply Last reply
                      0

                      • Login

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved