Building succeed on mac but crash: '-[NSTaggedPointerString count]: unrecognized selector sent to instance XXXXX'
-
*** 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 -
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 ? -
@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.dmgIt worked fine three days ago, but started reporting this error yesterday. The same code compiles and works fine on other macbook
-
Does it also happens with a default application ?
How does your current setup differ from the other machines where it works ? -
@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 -
I have the same problem.
My solution is:- bash: remove '~/Library/Preferences/com.xxx.xxxx.plist'
- bash: killall -u $USER cfprefsd