Opened 7 weeks ago

Last modified 7 weeks ago

#70944 new defect

TeXShop @5.46_0: 'NSInvalidArgumentException', object cannot be nil

Reported by: ShadSterling (Shad Sterling) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.10.1
Keywords: Cc: Schamschula (Marius Schamschula)
Port: TeXShop

Description

I see multiple errors in the logs, I'm not sure which are relevant

Looks like there might be a missing xcodebuild database:

:info:build 2024-09-26 20:03:50.408 xcodebuild[43762:4729581] NetworkStorageDB:_openDBReadConnections: failed to open read connection to DB @ /opt/local/var/macports/home/Library/Caches/com.apple.dt.xcodebuild/Cache.db.  Error=14. Cause=unable to open database file
:info:build 2024-09-26 20:03:50.408 xcodebuild[43762:4729581] The read-connection to the DB=/opt/local/var/macports/home/Library/Caches/com.apple.dt.xcodebuild/Cache.db is NOT valid.  Unable to determine schema version.
:info:build 2024-09-26 20:03:50.408 xcodebuild[43762:4729581] NetworkStorageDB:_openDBWriteConnections: failed to open write connection to DB @ /opt/local/var/macports/home/Library/Caches/com.apple.dt.xcodebuild/Cache.db.  Error=14. Cause=unable to open database file
:info:build 2024-09-26 20:03:50.408 xcodebuild[43762:4729581] DEBUG: there is no SQL cache DB located at /opt/local/var/macports/home/Library/Caches/com.apple.dt.xcodebuild/Cache.db.
:info:build 2024-09-26 20:03:50.408 xcodebuild[43762:4729581] DEBUG: there is no SQL cache DB located at /opt/local/var/macports/home/Library/Caches/com.apple.dt.xcodebuild/Cache.db-shm.
:info:build 2024-09-26 20:03:50.408 xcodebuild[43762:4729581] DEBUG: there is no SQL cache DB located at /opt/local/var/macports/home/Library/Caches/com.apple.dt.xcodebuild/Cache.db-wal.
:info:build 2024-09-26 20:03:50.408 xcodebuild[43762:4729570] writeDBwithCachedResponse-ERROR: (_dbWriteConnection=0x7f7b7175ea70) insert SQL stmnt. is nil for storage: /opt/local/var/macports/home/Library/Caches/com.apple.dt.xcodebuild

There are several inaccessible paths, tho I think another ticket said these are safe to ignore:

:info:build 2024-09-26 20:03:50.418 xcodebuild[43762:4729510] [MT] IDELogStore: Failed to open log store at /opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-dwxwnaabsmocnrgdgyojorcozouq/Logs/Build
:info:build 2024-09-26 20:03:50.418 xcodebuild[43762:4729510] [MT] IDELogStore: Failed to open Build log store: Error Domain=IDEFoundationErrorDomain Code=1 "Unable to create log store directory at '/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-dwxwnaabsmocnrgdgyojor
cozouq/Logs/Build': (513) You don’t have permission to save the file “Build” in the folder “Logs”." UserInfo={NSLocalizedDescription=Unable to create log store directory at '/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-dwxwnaabsmocnrgdgyojorcozouq/Logs/Build': (513)
 You don’t have permission to save the file “Build” in the folder “Logs”.}. User info: {
:info:build     NSLocalizedDescription = "Unable to create log store directory at '/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-dwxwnaabsmocnrgdgyojorcozouq/Logs/Build': (513) You don\U2019t have permission to save the file \U201cBuild\U201d in the folder \U201cLogs
\U201d.";
:info:build }.

There's a similar error about a workspace, not sure if it also is safe to ignore:

:info:build 2024-09-26 20:03:50.906 xcodebuild[43762:4729510] [MT] DVTAssertions: Warning in /System/Volumes/Data/SWE/Apps/DT/BuildRoots/BuildRoot1/ActiveBuildRoot/Library/Caches/com.apple.xbs/Sources/IDEFrameworks/IDEFrameworks-21534.1/IDEFoundation/Buildables/IDEWorkspaceArena.m:1131
:info:build Details:  Failed to create workspace arena at <DVTFilePath:0x600000efd200:'/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-dwxwnaabsmocnrgdgyojorcozouq'>: Error Domain=NSCocoaErrorDomain Code=513 "You don’t have permission to save the file “TeXShop-dwxwnaab
smocnrgdgyojorcozouq” in the folder “DerivedData”." UserInfo={NSFilePath=/opt/local/var/macports/home/Library/Developer/Xcode/DerivedData/TeXShop-dwxwnaabsmocnrgdgyojorcozouq, NSUnderlyingError=0x600002caf510 {Error Domain=NSPOSIXErrorDomain Code=1 "Operation not permitted"}}
:info:build Object:   <IDEWorkspaceArena: 0x600000ed9a80>
:info:build Method:   -createWorkspaceArenaFolderIfNecessary
:info:build Thread:   <_NSMainThread: 0x6000034e41c0>{number = 1, name = main}
:info:build Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.

Finally, xcodebuild crashes:

:info:build Computing target dependency graph and provisioning inputs
:info:build 2024-09-26 20:03:51.048 xcodebuild[43762:4729532] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[NSArray arrayByAddingObject:]: object cannot be nil'
:info:build *** First throw call stack:
:info:build (
:info:build     0   CoreFoundation                      0x00007ff8180e811a __exceptionPreprocess + 242
:info:build     1   libobjc.A.dylib                     0x00007ff817c0e0b7 objc_exception_throw + 48
:info:build     2   CoreFoundation                      0x00007ff8181c23ba -[__NSCFString characterAtIndex:].cold.1 + 0
:info:build     3   CoreFoundation                      0x00007ff8181c6e52 -[NSArray arrayByAddingObjectsFromArray:].cold.1 + 0
:info:build     4   CoreFoundation                      0x00007ff8180306cc -[NSArray arrayByAddingObject:] + 273
:info:build     5   DVTKeychainUtilities                0x000000010d442c21 DVTSecCreateKeychain + 483
:info:build     6   DVTKeychain                         0x000000010bfbc5f8 __36-[DVTKeychain keychainRefWithError:]_block_invoke + 146
:info:build     7   libdispatch.dylib                   0x00007ff817df4033 _dispatch_client_callout + 8
:info:build     8   libdispatch.dylib                   0x00007ff817e01ba1 _dispatch_lane_barrier_sync_invoke_and_complete + 60
:info:build     9   DVTKeychain                         0x000000010bfbc393 -[DVTKeychain performLockedBlock:] + 58
:info:build     10  DVTKeychain                         0x000000010bfbc4ba -[DVTKeychain keychainRefWithError:] + 174
:info:build     11  DVTFoundation                       0x000000010d5e4664 +[DVTDeveloperAccountCredentials _legacyAccountCredentialsForUsername:keychain:error:] + 103
:info:build     12  DVTFoundation                       0x000000010d5e4d83 +[DVTDeveloperAccountCredentials _accountCredentialsForUsername:keychain:error:] + 282
:info:build     13  DVTFoundation                       0x000000010d5d84e6 -[DVTDeveloperAccountCredentialsManager accountCredentialsForUsername:error:] + 94
:info:build     14  DVTFoundation                       0x000000010d60d5cd -[DVTDeveloperAccountManager _tokenBasedAccountWithUsername:] + 201
:info:build     15  DVTFoundation                       0x000000010d60e0d0 __61-[DVTDeveloperAccountManager _accountsFromDefaults:keychain:]_block_invoke + 818
:info:build     16  DVTFoundation                       0x000000010d6762b4 -[NSArray(DVTFoundationClassAdditions) dvt_arrayByApplyingBlock:] + 282
:info:build     17  DVTFoundation                       0x000000010d60dd51 -[DVTDeveloperAccountManager _accountsFromDefaults:keychain:] + 177
:info:build     18  DVTFoundation                       0x000000010d60e329 -[DVTDeveloperAccountManager _accountsByCreatingFromDefaults] + 294
:info:build     19  DVTFoundation                       0x000000010d60f055 __41-[DVTDeveloperAccountManager allAccounts]_block_invoke + 46
:info:build     20  libdispatch.dylib                   0x00007ff817df4033 _dispatch_client_callout + 8
:info:build     21  libdispatch.dylib                   0x00007ff817e01ba1 _dispatch_lane_barrier_sync_invoke_and_complete + 60
:info:build     22  DVTFoundation                       0x000000010d6cc691 DVTDispatchBarrierSync + 148
:info:build     23  DVTFoundation                       0x000000010d6a1db4 -[DVTDispatchLock performLockedBlock:] + 60
:info:build     24  DVTFoundation                       0x000000010d60efad -[DVTDeveloperAccountManager allAccounts] + 137
:info:build     25  DVTFoundation                       0x000000010d60f4c1 -[DVTDeveloperAccountManager developerAccounts] + 27
:info:build     26  IDEFoundation                       0x000000010e851a69 -[IDEProvisioningTeamAccountPairManager sessionProviders] + 324
:info:build     27  IDEFoundation                       0x000000010e851ff7 __59-[IDEProvisioningTeamAccountPairManager pairForTeam:error:]_block_invoke + 149
:info:build     28  libdispatch.dylib                   0x00007ff817df4033 _dispatch_client_callout + 8
:info:build     29  libdispatch.dylib                   0x00007ff817e01ba1 _dispatch_lane_barrier_sync_invoke_and_complete + 60
:info:build     30  DVTFoundation                       0x000000010d6cc691 DVTDispatchBarrierSync + 148
:info:build     31  DVTFoundation                       0x000000010d6a1db4 -[DVTDispatchLock performLockedBlock:] + 60
:info:build     32  IDEFoundation                       0x000000010e851dc4 -[IDEProvisioningTeamAccountPairManager pairForTeam:error:] + 227
:info:build     33  IDEFoundation                       0x000000010e67c751 +[IDEProvisioningTeamAccountPairSessionProvider provisioningTeamAccountPairSessionProviderForTeam:error:] + 114
:info:build     34  IDEFoundation                       0x000000010ed4c6b5 $s13IDEFoundation42IDEProvisionableEntitlementsPlatformFilterC19teamSessionProvider33_4F4CEADE6D1944B4F067F6C295E64372LLSo030IDEProvisioningTeamAccountPairgH0CSgvg + 85
:info:build     35  IDEFoundation                       0x000000010ed4c423 $s13IDEFoundation42IDEProvisionableEntitlementsPlatformFilterC06filterC0ySDySSypGAEF + 211
:info:build     36  IDEFoundation                       0x000000010ed4c5fd $s13IDEFoundation42IDEProvisionableEntitlementsPlatformFilterC06filterC0ySDySSypGAEFTo + 93
:info:build     37  IDEFoundation                       0x000000010e84f009 +[IDEProvisionableEntitlements filterEntitlements:requiresPlatformFiltering:platform:team:sdk:isMacCatalyst:logAspect:] + 203
:info:build     38  IDEFoundation                       0x000000010e84f392 +[IDEProvisionableEntitlements expandedEntitlementsFromProvisionableSnapshot:configuration:appIdentifierPrefix:teamIdentifierPrefix:bundleIdentifier:logAspect:] + 632
:info:build     39  IDEFoundation                       0x000000010e84f898 +[IDEProvisionableEntitlements expandedEntitlementsForProfileQualification:configuration:logAspect:] + 128
:info:build     40  IDEFoundation                       0x000000010e9df549 -[IDEProvisionableStatusEvaluator evaluationForInputs:configuration:] + 258
:info:build     41  IDEFoundation                       0x000000010e9df101 -[IDEProvisionableStatusEvaluator evaluateStatusWithInputs:] + 600
:info:build     42  IDEFoundation                       0x000000010e858a24 -[IDEProvisionableOnDemandEvaluator _waitForEvaluationWithForcedAssetRefresh:] + 1605
:info:build     43  IDEFoundation                       0x000000010e857674 -[IDEProvisionableOnDemandEvaluator evaluate] + 390
:info:build     44  IDEFoundation                       0x000000010e68abe6 __136-[IDEProvisionableManager immediatelyEvaluateWithOverrides:destinationRequirement:shouldRepairIfNecessary:isXBS:callbackQueue:callback:]_block_invoke.453 + 561
:info:build     45  DVTFoundation                       0x000000010d4c095c ___DVTPreventInvalidationForObjectAllowingRecursiveCallsDuringBlock_block_invoke_2 + 231
:info:build     46  libdispatch.dylib                   0x00007ff817df4033 _dispatch_client_callout + 8
:info:build     47  libdispatch.dylib                   0x00007ff817e020c9 _dispatch_sync_invoke_and_complete + 60
:info:build     48  DVTFoundation                       0x000000010d4c0846 ___DVTPreventInvalidationForObjectAllowingRecursiveCallsDuringBlock_block_invoke + 154
:info:build     49  libdispatch.dylib                   0x00007ff817df4033 _dispatch_client_callout + 8
:info:build     50  libdispatch.dylib                   0x00007ff817e020c9 _dispatch_sync_invoke_and_complete + 60
:info:build     51  DVTFoundation                       0x000000010d4c05f5 _DVTPreventInvalidationForObjectAllowingRecursiveCallsDuringBlock + 370
:info:build     52  IDEFoundation                       0x000000010e68a887 __136-[IDEProvisionableManager immediatelyEvaluateWithOverrides:destinationRequirement:shouldRepairIfNecessary:isXBS:callbackQueue:callback:]_block_invoke_4 + 228
:info:build     53  Foundation                          0x00007ff818edea21 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK__ + 7
:info:build     54  Foundation                          0x00007ff818ede919 -[NSBlockOperation main] + 98
:info:build     55  Foundation                          0x00007ff818ede8b2 __NSOPERATION_IS_INVOKING_MAIN__ + 17
:info:build     56  Foundation                          0x00007ff818eddbb2 -[NSOperation start] + 782
:info:build     57  Foundation                          0x00007ff818edd898 __NSOPERATIONQUEUE_IS_STARTING_AN_OPERATION__ + 17
:info:build     58  Foundation                          0x00007ff818edd766 __NSOQSchedule_f + 182
:info:build     59  libdispatch.dylib                   0x00007ff817e01771 _dispatch_block_async_invoke2 + 83
:info:build     60  libdispatch.dylib                   0x00007ff817df4033 _dispatch_client_callout + 8
:info:build     61  libdispatch.dylib                   0x00007ff817df6b65 _dispatch_continuation_pop + 463
:info:build     62  libdispatch.dylib                   0x00007ff817df61e9 _dispatch_async_redirect_invoke + 714
:info:build     63  libdispatch.dylib                   0x00007ff817e03fa2 _dispatch_root_queue_drain + 343
:info:build     64  libdispatch.dylib                   0x00007ff817e04768 _dispatch_worker_thread2 + 170
:info:build     65  libsystem_pthread.dylib             0x00007ff817f91c0f _pthread_wqthread + 257
:info:build     66  libsystem_pthread.dylib             0x00007ff817f90bbf start_wqthread + 15
:info:build )

Attachments (1)

main.log (42.9 KB) - added by ShadSterling (Shad Sterling) 7 weeks ago.

Download all attachments as: .zip

Change History (2)

Changed 7 weeks ago by ShadSterling (Shad Sterling)

Attachment: main.log added

comment:1 Changed 7 weeks ago by Schamschula (Marius Schamschula)

Note: See TracTickets for help on using tickets.