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

problem with @rpath ... crash in a QApplication init after moving frameworks

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 5.7.0
    • Core: Threads
    • None
    • Mac OS X.11 Xcode 7.3

    Description

      Project creating a Mach-O-Type : bundle... This plugin uses different frameworks QTCore, QTWidgets, QTGui

      step 1/ (all good)
      The plugin is launched by a third party app and works perfectly fine as long as the different frameworks mentioned above are located inside the clang_64/lib folder generated by the Qt installation and used to build the plugin project

      step 2/ (crash)
      now the exact same code is used, the only difference is moving the frameworks in a run path folders to take advantage of the @rpath ...

      When trying to move the frameworks into a folder designated by the run path_search_paths field of Xcode... the plugin find the folder where the different frameworks (QTCore, QTWidgets, QTGui) are now located, try to use them, but crashes immediately at the first call of a QApplication initialization

      here is crash log...

      0   libsystem_kernel.dylib        	0x00007fff906e2f06 __pthread_kill + 10
      1   libsystem_pthread.dylib       	0x00007fff989674ec pthread_kill + 90
      2   libsystem_c.dylib             	0x00007fff8c1eb6e7 abort + 129
      3   org.qt-project.QtCore         	0x000000017600ee79 0x175ff9000 + 89721
      4   org.qt-project.QtCore         	0x0000000176010847 QMessageLogger::fatal(char const*, ...) const + 231
      5   org.qt-project.QtGui          	0x0000000167a73a6d QGuiApplicationPrivate::createPlatformIntegration() + 5581
      6   org.qt-project.QtGui          	0x0000000167a73a9b QGuiApplicationPrivate::createEventDispatcher() + 27
      7   org.qt-project.QtCore         	0x00000001761dde96 QCoreApplicationPrivate::init() + 1766
      8   org.qt-project.QtGui          	0x0000000167a6fd61 QGuiApplicationPrivate::init() + 49
      9   org.qt-project.QtWidgets      	0x00000001759286de QApplicationPrivate::init() + 14
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            eric_vi eric villa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes