ms-intune-app-sdk-ios
ms-intune-app-sdk-ios copied to clipboard
Thread Performance Checker: Priority Inversion stack trace in Console
Describe the bug: When we call IntuneMAMEnrollmentManager.instance().loginAndEnrollAccount we see the following stack trace: Thread Performance Checker: Thread running at User-interactive quality-of-service class waiting on a lower QoS thread running at Default quality-of-service class. Investigate ways to avoid priority inversions PID: 3655, TID: 2496317 Backtrace
0 MSAL 0x0000000101677f50 -[MSIDLogger(Internal) logWithLevel:context:correlationId:containsPII:filename:lineNumber:function:message:] + 392 1 MSAL 0x0000000101677d5c -[MSIDLogger(Internal) logWithLevel:context:correlationId:containsPII:filename:lineNumber:function:format:] + 228 2 MSAL 0x000000010166aeb4 -[MSIDKeychainTokenCache itemsWithKey:context:error:] + 828 3 MSAL 0x0000000101667ff0 -[MSIDKeychainTokenCache tokensWithKey:serializer:context:error:] + 112 4 MSAL 0x00000001016f3d3c -[MSIDAccountCredentialCache getCredentialsWithQuery:context:error:] + 264 5 MSAL 0x000000010168ceac -[MSIDDefaultTokenCacheAccessor homeAccountIdsFromRTsWithAuthority:clientId:familyId:accountCredentialCache:context:error:] + 256 6 MSAL 0x00000001016892c0 -[MSIDDefaultTokenCacheAccessor accountsWithAuthority:clientId:familyId:accountIdentifier:accountMetadataCache:signedInAccountsOnly:context:error:] + 768 7 MSAL 0x0000000101592b98 -[MSALAccountsProvider accountsForParameters:authority:brokerAccounts:error:] + 544 8 MSAL 0x0000000101581424 -[MSALPublicClientApplication accountsForParameters:error:] + 620 9 IntuneMAMSwift 0x0000000101e916c8 cmarDeviceComplianceEnabled + 130168 10 IntuneMAMSwift 0x0000000101e911c4 cmarDeviceComplianceEnabled + 128884 11 IntuneMAMSwift 0x0000000101e90eac cmarDeviceComplianceEnabled + 128092 12 IntuneMAMSwift 0x0000000101e78960 cmarDeviceComplianceEnabled + 28432 13 IntuneMAMSwift 0x00000001020c3fd0 cmarInternalIsDeviceJailbroken + 4176 14 IntuneMAMSwift 0x0000000101f247d8 cmarDeviceComplianceEnabled + 732552 15 IntuneMAMSwift 0x0000000101f258e0 cmarDeviceComplianceEnabled + 736912 16 CFNetwork 0x000000018babc760 FA95B718-E8EB-34BD-90FA-8FB1AFE016D6 + 989024 17 libdispatch.dylib 0x0000000101200a30 _dispatch_call_block_and_release + 32 18 libdispatch.dylib 0x000000010120271c _dispatch_client_callout + 20 19 libdispatch.dylib 0x000000010120a5e8 _dispatch_lane_serial_drain + 828 20 libdispatch.dylib 0x000000010120b394 _dispatch_lane_invoke + 460 21 libdispatch.dylib 0x00000001012185f0 _dispatch_root_queue_drain_deferred_wlh + 328 22 libdispatch.dylib 0x0000000101217c00 _dispatch_workloop_worker_thread + 580 23 libsystem_pthread.dylib 0x00000002117fbc7c _pthread_wqthread + 288 24 libsystem_pthread.dylib 0x00000002117f8488 start_wqthread + 8
While the app does go on to allow us to get the accountID and everything, this does seem to keep us from showing to the user that they need to restart for policies to apply. Is this expected now?
To Reproduce call loginAndEnroll and you will see the above when the "checking" step in the login happens in the console output
Expected behavior: I shouldn't see this in my console
Smartphone (please complete the following information):
- Device: ipad pro
- OS: iPadOs 18.0
Intune App SDK for iOS (please complete the following information):
- What version of the Intune SDK are you using? Are you using the latest version? Intune: 20.1, MSAL 1.5.0
- What platform is your app based in (native, Xamarin based, Cordova, etc)? native