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. Building succeed on mac but crash: '-[NSTaggedPointerString count]: unrecognized selector sent to instance XXXXX'
Forum Updated to NodeBB v4.3 + New Features

Building succeed on mac but crash: '-[NSTaggedPointerString count]: unrecognized selector sent to instance XXXXX'

Scheduled Pinned Locked Moved Unsolved General and Desktop
7 Posts 3 Posters 1.3k Views 1 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.
  • M Offline
    M Offline
    misumisu
    wrote on last edited by misumisu
    #1

    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSTaggedPointerString count]: unrecognized selector sent to instance 0xb20ac85ef224e6c9'
    *** First throw call stack:
    (
    0 CoreFoundation 0x00007fff2063187b __exceptionPreprocess + 242
    1 libobjc.A.dylib 0x00007fff20369d92 objc_exception_throw + 48
    2 CoreFoundation 0x00007fff206b438d -[NSObject(NSObject) __retain_OA] + 0
    3 CoreFoundation 0x00007fff2059990b forwarding + 1448
    4 CoreFoundation 0x00007fff205992d8 _CF_forwarding_prep_0 + 120
    5 CoreFoundation 0x00007fff2066fe0f _CFLocaleCreateLocaleIdentifierForAvailableLocalizations + 72
    6 CoreFoundation 0x00007fff2057559a _CFLocaleCopyCurrentGuts + 790
    7 QtCore 0x000000011176fbb4 _ZNK13QSystemLocale16fallbackUiLocaleEv + 516
    8 QtCore 0x0000000111724c95 _ZN14QLocalePrivate19updateSystemPrivateEv + 117
    9 QtCore 0x0000000111725968 _ZN7QLocaleC2Ev + 296
    10 QtCore 0x000000011172584f _ZN7QLocaleC2Ev + 15
    11 QtCore 0x00000001117ee641 _ZN9QResource18unregisterResourceEPKhRK7QString + 5473
    12 QtCore 0x00000001117ed445 _ZN9QResource18unregisterResourceEPKhRK7QString + 869
    13 QtCore 0x0000000111806adf _ZN16QFileSystemEntry10isRootPathERK7QString + 2303
    14 QtCore 0x0000000111806894 _ZN16QFileSystemEntry10isRootPathERK7QString + 1716
    15 QtCore 0x00000001117da83a _ZN9QFileInfo6existsERK7QString + 74
    16 QtCore 0x00000001116b9ce3 _ZN9QInternal17activateCallbacksENS_8CallbackEPPv + 3107
    17 QtCore 0x00000001116b9a87 _ZN9QInternal17activateCallbacksENS_8CallbackEPPv + 2503
    18 QtCore 0x00000001116bb03a _ZN12QLibraryInfo8locationENS_15LibraryLocationE + 3194
    19 QtCore 0x00000001116ba3eb _ZN12QLibraryInfo8locationENS_15LibraryLocationE + 43
    20 QtCore 0x000000011188df92 _ZN16QCoreApplication12libraryPathsEv + 1522
    21 QtCore 0x000000011187c674 _ZN14QFactoryLoader6updateEv + 36
    22 QtCore 0x000000011187def7 _ZN14QFactoryLoaderC2EPKcRK7QStringN2Qt15CaseSensitivityE + 247
    23 QtGui 0x0000000110bb9bcb ZN27QPlatformIntegrationFactory6createERK7QStringRK11QStringListRiPPcS2 + 619
    24 QtGui 0x0000000110bb9f81 _ZN27QPlatformIntegrationFactory4keysERK7QString + 785
    25 QtGui 0x0000000110bc5f8d _ZN22QGuiApplicationPrivate25createPlatformIntegrationEv + 1757
    26 QtGui 0x0000000110bc756b _ZN22QGuiApplicationPrivate21createEventDispatcherEv + 27
    27 QtCore 0x000000011188d59f _ZN23QCoreApplicationPrivate4initEv + 1567
    28 QtGui 0x0000000110bc2789 _ZN22QGuiApplicationPrivate4initEv + 57
    29 QtWidgets 0x00000001105f795a _ZN19QApplicationPrivate4initEv + 26
    30 app 0x000000010f7efb3f _Z13MainThreadRuniPPc + 79
    31 app 0x000000010f7f31e2 main + 34
    32 libdyld.dylib 0x00007fff204d9f5d start + 1
    )
    libc++abi: terminating with uncaught exception of type NSException

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

      Hi and welcome to devnet,

      Which version of Qt ?
      Which version of macOS ?
      Which version of Xcode ?
      How did you install Qt ?
      Does it happen with a minimal application ?

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

      M 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi and welcome to devnet,

        Which version of Qt ?
        Which version of macOS ?
        Which version of Xcode ?
        How did you install Qt ?
        Does it happen with a minimal application ?

        M Offline
        M Offline
        misumisu
        wrote on last edited by misumisu
        #3

        @SGaist
        Thank you for your reply.

        QT:5.15.2;
        QT Creator:7.0.0
        macOS:12.3.1
        Xcode:13.3.1(same crash to 12.5, 11.7)
        Install QT by qt-unified-macOS-x64-4.3.0-1-online.dmg

        It worked fine three days ago, but started reporting this error yesterday. The same code compiles and works fine on other macbook

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

          Does it also happens with a default application ?
          How does your current setup differ from the other machines where it works ?

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

          M 1 Reply Last reply
          0
          • SGaistS SGaist

            Does it also happens with a default application ?
            How does your current setup differ from the other machines where it works ?

            M Offline
            M Offline
            misumisu
            wrote on last edited by
            #5

            @SGaist
            The sample project reported no errors. and I rolled back my project to the first commit and found the same error.
            It surprised me.

            I suspect that some cache configuration is affecting
            So I created a new project, copied all the files to the new project, and miraculously, the program ran successfully

            1 Reply Last reply
            0
            • M Offline
              M Offline
              misumisu
              wrote on last edited by misumisu
              #6

              Well, I modified my app BundleID and it ran successfully. I don't know what cache configuration is in effect

              1 Reply Last reply
              0
              • W Offline
                W Offline
                whitebrow
                wrote on last edited by
                #7

                I have the same problem.
                My solution is:

                1. bash: remove '~/Library/Preferences/com.xxx.xxxx.plist'
                2. bash: killall -u $USER cfprefsd

                reference: https://developer.apple.com/forums/thread/20595

                1 Reply Last reply
                1

                • Login

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