Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt 5.3 desktop app Crashes on Exit on Mac OSX

    General and Desktop
    2
    5
    1391
    Loading More Posts
    • 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.
    • K
      kenchan last edited by

      Hello,

      I just rebuilt my desktop app on using the Qt 5.3 clang 64bit package. It crashes when the app exits when built on Mac OSX 10.9.3.

      The dump is shown below. It seems to crash in the QWindow::transientParent() function. This is not something I call directly and I did not see this with previous versions of Qt.

      Has anyone seen this and is there a work around?

      Many thanks,

      @
      Crashed Thread: 0 Dispatch queue: com.apple.main-thread

      Exception Type: EXC_BAD_ACCESS (SIGSEGV)
      Exception Codes: KERN_INVALID_ADDRESS at 0x0000000000000008

      VM Regions Near 0x8:
      -->
      __TEXT 0000000100000000-000000010080a000 [ 8232K] r-x/rwx SM=COW /Users/USER/Documents/*/RealCAD.app/Contents/MacOS/RealCAD

      Application Specific Information:
      Performing @selector(_close:) from sender _NSThemeCloseWidget 0x60800017d040

      Thread 0 Crashed:: Dispatch queue: com.apple.main-thread
      0 QtGui 0x00000001019e3bb4 QWindow::transientParent() const + 4
      1 libqcocoa.dylib 0x000000010460dc6d 0x104600000 + 56429
      2 com.apple.AppKit 0x00007fff8c4914db __50-[NSApplication _bestMainWindowCandidateOnScreen:]_block_invoke + 29
      3 com.apple.AppKit 0x00007fff8c220415 -[NSApplication _findWindowInOrder:passingTest:] + 177
      4 com.apple.AppKit 0x00007fff8c49132e -[NSApplication _bestMainWindowCandidateOnScreen:] + 107
      5 com.apple.AppKit 0x00007fff8c490e81 -[NSWindow _orderOutAndCalcKeyWithCounter:stillVisible:docWindow:] + 984
      6 com.apple.AppKit 0x00007fff8c376355 -[NSWindow _reallyDoOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 3123
      7 com.apple.AppKit 0x00007fff8c375480 -[NSWindow _doOrderWindow:relativeTo:findKey:forCounter:force:isModal:] + 786
      8 com.apple.AppKit 0x00007fff8c375100 -[NSWindow orderWindow:relativeTo:] + 162
      9 libqcocoa.dylib 0x00000001046101a1 0x104600000 + 65953
      10 libqcocoa.dylib 0x0000000104610735 0x104600000 + 67381
      11 QtGui 0x00000001019e300a QWindow::setVisible(bool) + 778
      12 QtWidgets 0x00000001014637cc QWidgetPrivate::hide_sys() + 204
      13 QtWidgets 0x0000000101447cc2 QWidgetPrivate::hide_helper() + 162
      14 QtWidgets 0x00000001014482d3 QWidget::setVisible(bool) + 707
      15 QtWidgets 0x000000010143aacc QWidgetPrivate::close_helper(QWidgetPrivate::CloseMode) + 268
      16 QtWidgets 0x00000001014664e5 0x1013e4000 + 533733
      17 QtWidgets 0x0000000101410b1c QApplicationPrivate::notify_helper(QObject*, QEvent*) + 300
      18 QtWidgets 0x00000001014135db QApplication::notify(QObject*, QEvent*) + 6187
      19 edu.selfRealCAD 0x00000001004da42b RCApplication::notify(QObject*, QEvent*) + 2123
      20 QtCore 0x00000001020bd8c2 QCoreApplication::notifyInternal(QObject*, QEvent*) + 114
      21 QtGui 0x00000001019dcb8b QGuiApplicationPrivate::processCloseEvent(QWindowSystemInterfacePrivate::CloseEvent*) + 107
      22 QtGui 0x00000001019d8e03 QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) + 1075
      23 QtGui 0x00000001019c79ab QWindowSystemInterface::sendWindowSystemEvents(QFlagsQEventLoop::ProcessEventsFlag) + 315
      24 QtGui 0x00000001019c5c7c QWindowSystemInterface::flushWindowSystemEvents() + 556
      25 libqcocoa.dylib 0x0000000104612382 0x104600000 + 74626
      @

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi,

        What kind of application is it ? QWidget ? OpenGL ? QML ?

        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 Reply Quote 0
        • K
          kenchan last edited by

          Hello SGaist,

          It is a desktop app that has a QMainWindow with a QGraphics view that uses QGraphicsScene and OpenGL for drawing.

          I realize it could be just about anything but just thought I would ask if it is a common problem before I dive in and try to figure out the details.

          Thanks.

          1 Reply Last reply Reply Quote 0
          • SGaist
            SGaist Lifetime Qt Champion last edited by

            I haven't encountered this problem yet. You should check the "bug report system":http://bugreports.qt-project.org to see if something known.

            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 Reply Quote 0
            • K
              kenchan last edited by

              OK I will look at that. Please update me if you come across anything like it.

              Thanks

              1 Reply Last reply Reply Quote 0
              • First post
                Last post