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

Attempting to run a Qt application for arm64 on iOS or tvOS crashes

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P0: Blocker
    • Resolution: Done
    • Affects Version/s: 5.7
    • Fix Version/s: 5.7.0 RC
    • Component/s: QPA
    • Labels:
      None
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      Does NOT affect armv7, only arm64.

      (lldb) bt
      * thread #1: tid = 0x6c3f12, 0x0000000100f505ac QtCore_debug`unsigned int crc32<unsigned char>(ptr="UTF-8", len=5, h=467064237) + 188 at qhash.cpp:178, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=1, subcode=0x1aca4908)
        * frame #0: 0x0000000100f505ac QtCore_debug`unsigned int crc32<unsigned char>(ptr="UTF-8", len=5, h=467064237) + 188 at qhash.cpp:178
          frame #1: 0x0000000100f4f0c0 QtCore_debug`hash(p="UTF-8", len=5, seed=467064237) + 76 at qhash.cpp:207
          frame #2: 0x0000000100f4f184 QtCore_debug`qHash(key=0x000000016fde63a0, seed=467064237) + 68 at qhash.cpp:235
          frame #3: 0x00000001011e55d0 QtCore_debug`QHash<QByteArray, QTextCodec*>::findNode(this=0x0000000156684790, akey=0x000000016fde63a0, ahp=0x000000016fde61dc) const + 76 at qhash.h:916
          frame #4: 0x00000001011e4874 QtCore_debug`QHash<QByteArray, QTextCodec*>::insert(this=0x0000000156684790, akey=0x000000016fde63a0, avalue=0x000000016fde62e8) + 52 at qhash.h:756
          frame #5: 0x00000001011e2900 QtCore_debug`QTextCodec::codecForName(name=0x000000016fde63a0) + 448 at qtextcodec.cpp:535
          frame #6: 0x0000000101049658 QtCore_debug`QTextCodec::codecForName(name="UTF-8") + 52 at qtextcodec.h:62
          frame #7: 0x00000001011e32b4 QtCore_debug`setupLocaleMapper() + 168 at qtextcodec.cpp:171
          frame #8: 0x00000001011e31f0 QtCore_debug`QTextCodec::codecForLocale() + 72 at qtextcodec.cpp:697
          frame #9: 0x0000000100f98760 QtCore_debug`QString::fromLocal8Bit_helper(str="/private/var/mobile/Containers/Bundle/Application/00178995-2E72-4FFB-8E44-BC9D41B96A42/rasterwindow.app/rasterwindow", size=116) + 176 at qstring.cpp:4718
          frame #10: 0x0000000100e7a144 QtCore_debug`QString::fromLocal8Bit(str="/private/var/mobile/Containers/Bundle/Application/00178995-2E72-4FFB-8E44-BC9D41B96A42/rasterwindow.app/rasterwindow", size=-1) + 108 at qstring.h:547
          frame #11: 0x00000001010a4554 QtCore_debug`QFileSystemEngine::canonicalName(entry=0x0000000156689748, data=0x0000000156689760) + 448 at qfilesystemengine_unix.cpp:285
          frame #12: 0x000000010102f498 QtCore_debug`QFileInfoPrivate::getFileName(this=0x0000000156689740, name=CanonicalName) const + 264 at qfileinfo.cpp:58
          frame #13: 0x00000001010308fc QtCore_debug`QFileInfo::canonicalFilePath(this=0x000000016fde6ac8) const + 124 at qfileinfo.cpp:559
          frame #14: 0x0000000101135454 QtCore_debug`QCoreApplication::applicationFilePath() + 428 at qcoreapplication.cpp:2142
          frame #15: 0x0000000101139500 QtCore_debug`QCoreApplication::applicationDirPath() + 172 at qcoreapplication.cpp:2094
          frame #16: 0x0000000100e7d1c8 QtCore_debug`QLibraryInfoPrivate::findConfiguration() + 916 at qlibraryinfo.cpp:190
          frame #17: 0x0000000100e7ca58 QtCore_debug`QLibrarySettings::load(this=0x00000001566844e0) + 36 at qlibraryinfo.cpp:128
          frame #18: 0x0000000100e7ca00 QtCore_debug`QLibrarySettings::QLibrarySettings(this=0x00000001566844e0) + 56 at qlibraryinfo.cpp:122
          frame #19: 0x0000000100e7ce1c QtCore_debug`QLibrarySettings::QLibrarySettings(this=0x00000001566844e0) + 28 at qlibraryinfo.cpp:121
          frame #20: 0x0000000100e7e2fc QtCore_debug`(anonymous namespace)::Q_QGS_qt_library_settings::innerFunction() + 144 at qlibraryinfo.cpp:84
          frame #21: 0x0000000100e7e258 QtCore_debug`QGlobalStatic<QLibrarySettings, (anonymous namespace)::Q_QGS_qt_library_settings::innerFunction(), (anonymous namespace)::Q_QGS_qt_library_settings::guard>::operator(this=0x00000001014904bc)() + 52 at qglobalstatic.h:135
          frame #22: 0x0000000100e7e824 QtCore_debug`QLibraryInfoPrivate::configuration() + 24 at qlibraryinfo.cpp:105
          frame #23: 0x0000000100e7d59c QtCore_debug`QLibraryInfo::location(loc=DataPath) + 36 at qlibraryinfo.cpp:452
          frame #24: 0x000000010109b8f8 QtCore_debug`QLoggingRegistry::init(this=0x00000001566845f0) + 728 at qloggingregistry.cpp:298
          frame #25: 0x0000000101135b94 QtCore_debug`QCoreApplication::init(this=0x000000016fde7a40) + 252 at qcoreapplication.cpp:747
          frame #26: 0x0000000101135a64 QtCore_debug`QCoreApplication::QCoreApplication(this=0x000000016fde7a40, p=0x0000000156683bb0) + 76 at qcoreapplication.cpp:676
          frame #27: 0x00000001002df668 QtGui_debug`QGuiApplication::QGuiApplication(this=0x000000016fde7a40, argc=0x000000016fde7a58, argv=0x000000016fde7aa0, flags=329472) + 96 at qguiapplication.cpp:573
          frame #28: 0x00000001002e033c QtGui_debug`QGuiApplication::QGuiApplication(this=0x000000016fde7a40, argc=0x000000016fde7a58, argv=0x000000016fde7aa0, flags=329472) + 52 at qguiapplication.cpp:574
          frame #29: 0x000000010001f56c rasterwindow`main(argc=1, argv=0x000000016fde7aa0) + 56 at main.cpp:46
          frame #30: 0x00000001818d68b8 libdyld.dylib`start + 4
      (lldb) 
      

        Attachments

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

          Activity

            People

            Assignee:
            erikv Erik Verbruggen
            Reporter:
            jakepetroules Jake Petroules (DO NOT ASSIGN ISSUES)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes