Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NSInvalidArgumentException: [__NSCFString stringByStandardizingPath]: unrecognized selector sent to instance #95

Open
XAMPPRocky opened this issue Oct 2, 2023 · 1 comment

Comments

@XAMPPRocky
Copy link

XAMPPRocky commented Oct 2, 2023

Installing cargo-instruments through cargo install on 1.72.0 on macOS Sonoma gives the following error on every execution (even for things like --list-templates.)

*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFString stringByStandardizingPath]: unrecognized selector sent to instance 0x6000012943c0'
*** First throw call stack:
(
	0   CoreFoundation                      0x0000000187f908c0 __exceptionPreprocess + 176
	1   libobjc.A.dylib                     0x0000000187a89eb4 objc_exception_throw + 60
	2   CoreFoundation                      0x00000001880423dc -[NSObject(NSObject) __retain_OA] + 0
	3   CoreFoundation                      0x0000000187efa9e4 ___forwarding___ + 1572
	4   CoreFoundation                      0x0000000187efa300 _CF_forwarding_prep_0 + 96
	5   Foundation                          0x0000000188fcf4f0 -[NSProcessInfo arguments] + 188
	6   CoreFoundation                      0x000000018800bff8 __getDefaultArguments_block_invoke + 96
	7   libdispatch.dylib                   0x0000000187c91910 _dispatch_client_callout + 20
	8   libdispatch.dylib                   0x0000000187c9314c _dispatch_once_callout + 32
	9   CoreFoundation                      0x000000018800b994 _addBackstopValuesForIdentifierAndSource + 640
	10  CoreFoundation                      0x0000000187ec6254 __81-[_CFXPreferences(SourceAdditions) withNamedVolatileSourceForIdentifier:perform:]_block_invoke + 144
	11  CoreFoundation                      0x000000018800b63c -[_CFXPreferences withNamedVolatileSourceForIdentifier:perform:] + 272
	12  CoreFoundation                      0x0000000187ecc5c4 -[CFPrefsSearchListSource addNamedVolatileSourceForIdentifier:] + 136
	13  CoreFoundation                      0x000000018804a8bc __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke.155 + 296
	14  CoreFoundation                      0x000000018804a564 -[_CFXPreferences withSearchLists:] + 84
	15  CoreFoundation                      0x0000000187ec7b18 __108-[_CFXPreferences(SearchListAdditions) withSearchListForIdentifier:container:cloudConfigurationURL:perform:]_block_invoke + 300
	16  CoreFoundation                      0x000000018804a710 -[_CFXPreferences withSearchListForIdentifier:container:cloudConfigurationURL:perform:] + 384
	17  CoreFoundation                      0x0000000187ec7440 -[_CFXPreferences copyAppValueForKey:identifier:container:configurationURL:] + 156
	18  CoreFoundation                      0x0000000187ec7368 _CFPreferencesCopyAppValueWithContainerAndConfiguration + 112
	19  SystemConfiguration                 0x0000000188c57478 SCDynamicStoreCopyProxiesWithOptions + 180
	20  cargo-instruments                   0x000000010485cafc Curl_macos_init + 16
	21  cargo-instruments                   0x000000010484acc0 curl_global_init + 176
	22  cargo-instruments                   0x000000010483693c _ZN3std4sync4once4Once9call_once28_$u7b$$u7b$closure$u7d$$u7d$17h9fb355ead9167cb8E + 36
	23  cargo-instruments                   0x00000001049c2178 _ZN3std10sys_common4once5queue4Once4call17h5a4bf65a856a857dE + 1056
	24  cargo-instruments                   0x0000000104836d04 _ZN4curl9INIT_CTOR9init_ctor17hd245fe9553527954E + 96
	25  dyld                                0x0000000187ae15c8 ___ZZNK5dyld46Loader25findAndRunAllInitializersERNS_12RuntimeStateEENK3$_0clEv_block_invoke + 168
	26  dyld                                0x0000000187b26920 ___ZNK5dyld313MachOAnalyzer18forEachInitializerER11DiagnosticsRKNS0_15VMAddrConverterEU13block_pointerFvjEPKv_block_invoke.209 + 340
	27  dyld                                0x0000000187b19c60 ___ZNK5dyld39MachOFile14forEachSectionEU13block_pointerFvRKNS0_11SectionInfoEbRbE_block_invoke + 496
	28  dyld                                0x0000000187ac12fc _ZNK5dyld39MachOFile18forEachLoadCommandER11DiagnosticsU13block_pointerFvPK12load_commandRbE + 300
	29  dyld                                0x0000000187b18c98 _ZNK5dyld39MachOFile14forEachSectionEU13block_pointerFvRKNS0_11SectionInfoEbRbE + 192
	30  dyld                                0x0000000187b26434 _ZNK5dyld313MachOAnalyzer18forEachInitializerER11DiagnosticsRKNS0_15VMAddrConverterEU13block_pointerFvjEPKv + 516
	31  dyld                                0x0000000187add798 _ZNK5dyld46Loader25findAndRunAllInitializersERNS_12RuntimeStateE + 448
	32  dyld                                0x0000000187ae3b14 _ZNK5dyld416JustInTimeLoader15runInitializersERNS_12RuntimeStateE + 36
	33  dyld                                0x0000000187addb4c _ZNK5dyld46Loader23runInitializersBottomUpERNS_12RuntimeStateERN5dyld35ArrayIPKS0_EE + 220
	34  dyld                                0x0000000187ae1654 _ZZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateEENK3$_1clEv + 112
	35  dyld                                0x0000000187addccc _ZNK5dyld46Loader38runInitializersBottomUpPlusUpwardLinksERNS_12RuntimeStateE + 304
	36  dyld                                0x0000000187b02ad4 _ZN5dyld44APIs25runAllInitializersForMainEv + 464
	37  dyld                                0x0000000187ac5f34 _ZN5dyld4L7prepareERNS_4APIsEPKN5dyld313MachOAnalyzerE + 3192
	38  dyld                                0x0000000187ac4f44 start + 1948
)
@cmyr
Copy link
Owner

cmyr commented Oct 2, 2023

huh, I have no clue what's going on here except that it looks to have something to do with curl, which makes me assume it's coming from our dep on cargo? If you'd like to try updating to a newer cargo, you can:

  • clone this repo
  • change cargo = "0.66" to cargo = "0.73" in Cargo.toml
  • do cargo install --path=.
  • see if it works?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants