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. Bundled Application crashes on Mac OSX

Bundled Application crashes on Mac OSX

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 2 Posters 1.2k Views
  • 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.
  • R Offline
    R Offline
    rtfa
    wrote on last edited by
    #1

    Hi All,

    We are encountering a peculiar error where the bundled PyQt Mac app crashes with the following trace. While running it from source code no issues are observed.

    OS Version: Mac OS X 10.12.6 (16G29)
    Report Version: 12
    Anonymous UUID: 1CF405B8-51F1-D908-123E-2FE0B5D00FF8

    Time Awake Since Boot: 3000 seconds

    System Integrity Protection: enabled

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

    Exception Type: EXC_CRASH (SIGABRT)
    Exception Codes: 0x0000000000000000, 0x0000000000000000
    Exception Note: EXC_CORPSE_NOTIFY

    Application Specific Information:
    abort() called

    Thread 0 Crashed:: CrBrowserMain Dispatch queue: com.apple.main-thread
    0 libsystem_kernel.dylib 0x00007fffb7cd9d42 __pthread_kill + 10
    1 libsystem_pthread.dylib 0x00007fffb7dc7457 pthread_kill + 90
    2 libsystem_c.dylib 0x00007fffb7c3f4bb __abort + 140
    3 libsystem_c.dylib 0x00007fffb7c3f42f abort + 144
    4 QtCore 0x0000000105d258c9 qt_message_fatal(QtMsgType, QMessageLogContext const&, QString const&) + 9
    5 QtCore 0x0000000105d27297 QMessageLogger::fatal(char const*, ...) const + 231
    6 QtCore.so 0x0000000105b88174 pyqt5_err_print() + 852
    7 QtCore.so 0x0000000105b8d887 PyQtSlotProxy::unislot(void**) + 103
    8 QtCore.so 0x0000000105b8d7ea PyQtSlotProxy::qt_metacall(QMetaObject::Call, int, void**) + 58
    9 QtCore 0x0000000105f2ca93 QMetaObject::activate(QObject*, int, int, void**) + 2883
    10 QtCore.so 0x0000000105a8c0f0 sipQTimer::timerEvent(QTimerEvent*) + 128
    11 QtCore 0x0000000105f25320 QObject::event(QEvent*) + 48
    12 QtCore.so 0x0000000105a8bf6a sipQTimer::event(QEvent*) + 186
    13 QtWidgets 0x0000000106fc558d QApplicationPrivate::notify_helper(QObject*, QEvent*) + 269
    14 QtWidgets 0x0000000106fc7ed2 QApplication::notify(QObject*, QEvent*) + 5906
    15 QtWidgets.so 0x0000000106b972b7 sipQApplication::notify(QObject*, QEvent*) + 231
    16 QtCore 0x0000000105efb544 QCoreApplication::notifyInternal2(QObject*, QEvent*) + 164
    17 QtCore 0x0000000105f509d6 QTimerInfoList::activateTimers() + 1142
    18 libqcocoa.dylib 0x000000010e825ae2 QCocoaEventDispatcherPrivate::activateTimersSourceCallback(void*) + 18
    19 com.apple.CoreFoundation 0x00007fffa243d321 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION + 17
    20 com.apple.CoreFoundation 0x00007fffa241e21d __CFRunLoopDoSources0 + 557
    21 com.apple.CoreFoundation 0x00007fffa241d716 __CFRunLoopRun + 934
    22 com.apple.CoreFoundation 0x00007fffa241d114 CFRunLoopRunSpecific + 420
    23 com.apple.HIToolbox 0x00007fffa197debc RunCurrentEventLoopInMode + 240
    24 com.apple.HIToolbox 0x00007fffa197dcf1 ReceiveNextEventCommon + 432
    25 com.apple.HIToolbox 0x00007fffa197db26 _BlockUntilNextEventMatchingListInModeWithFilter + 71
    26 com.apple.AppKit 0x00007fff9ff16a54 _DPSNextEvent + 1120
    27 com.apple.AppKit 0x00007fffa06927ee -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 2796
    28 com.apple.AppKit 0x00007fff9ff0b3db -[NSApplication run] + 926
    29 libqcocoa.dylib 0x000000010e8266bf QCocoaEventDispatcher::processEvents(QFlagsQEventLoop::ProcessEventsFlag) + 2143
    30 QtCore 0x0000000105ef7781 QEventLoop::exec(QFlagsQEventLoop::ProcessEventsFlag) + 401
    31 QtCore 0x0000000105efbbb5 QCoreApplication::exec() + 341
    32 QtWidgets.so 0x0000000106c85962 meth_QApplication_exec(_object*, _object*) + 82

    Basically whenever an event for the file happens we add the particular file path, thumbnails if it's an image and few other details in a UI and show it to the user. We use QScrollArea and add each file rows dynamically. The bundled app crashes when we keep the UI open for quite some time. Any help would be greatly appreciated. We are using Qt 5.8.0

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

      Hi,

      How are you bundling your application ?

      Would it be possible for you to test a more recent version of Qt ?

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

      R 2 Replies Last reply
      1
      • SGaistS SGaist

        Hi,

        How are you bundling your application ?

        Would it be possible for you to test a more recent version of Qt ?

        R Offline
        R Offline
        rtfa
        wrote on last edited by
        #3

        @SGaist We've installed Qt-5.8 from source and PyQt-5.8.2 in Mac OS 10.9 machine. We are bundling our application from this machine with the help of py2app.

        1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          How are you bundling your application ?

          Would it be possible for you to test a more recent version of Qt ?

          R Offline
          R Offline
          rtfa
          wrote on last edited by
          #4

          @SGaist Any idea about why this crash happens in bundled application alone? Meanwhile we'll try with latest Qt and let you know the result.

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

            Does it also happen on a small default application ?

            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

            • Login

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