Ok, I found out that this issue occurs more often when Magic Mouse and Magic Keyboard are connected via Bluetooth.
It looks like Sequoia broke Bluetooth connections in general:
https://www.reddit.com/r/mac/comments/1fl1swq/bluetooth_problems_from_macos_sequoia_update/
https://forums.macrumors.com/threads/sequoia-bluetooth-issues-same-as-on-ventura.2437813/
https://discussions.apple.com/thread/255766537?sortBy=rank
Post
Replies
Boosts
Views
Activity
Same here with PhotoKit.
Using PHImageManager requestAVAsset method:
Thread Performance Checker: Thread running at User-initiated quality-of-service class waiting on a lower QoS thread running at Default quality-of-service class. Investigate ways to avoid priority inversions
PID: 6021, TID: 11317127
Backtrace
=================================================================
3 PhotosFormats 0x00000001a4f812f4 -[PFVideoAVObjectBuilder _synchronouslyLoadSlowMotionPropertiesFromAsset:] + 172
4 PhotosFormats 0x00000001a4f811d0 -[PFVideoAVObjectBuilder requestAVAssetForExport:withResultHandler:] + 224
5 Photos 0x0000000190467c90 +[PHImageManager(VideoUtilities) buildAVAssetFromVideoURL:infoDictionary:options:completion:] + 244
6 Photos 0x00000001904fb748 __63-[PHImageManager requestAVAssetForAsset:options:resultHandler:]_block_invoke_2 + 352
7 Photos 0x0000000190449570 -[PHVideoRequestContext processMediaResult:forRequest:] + 264
8 Photos 0x0000000190366e64 -[PHMediaRequestContext mediaRequest:didFinishWithResult:] + 396
9 Photos 0x00000001903697b8 -[PHVideoRequest _finish] + 80
10 Photos 0x0000000190369878 -[PHVideoRequest _handleResultVideoURL:mediaItemMakerData:fingerPrint:info:error:] + 172
11 Photos 0x000000019036a430 __30-[PHVideoRequest startRequest]_block_invoke + 1400
12 CoreFoundation 0x0000000180497750 __invoking___ + 144
13 CoreFoundation 0x0000000180494ab4 -[NSInvocation invoke] + 276
14 Foundation 0x0000000180eac7e0 __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__ + 12
15 Foundation 0x0000000180eac418 -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:] + 472
16 Foundation 0x0000000180eb0434 __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_5 + 184
17 libxpc.dylib 0x00000001800c92e0 _xpc_connection_reply_callout + 60
18 libxpc.dylib 0x00000001800bcd30 _xpc_connection_call_reply_async + 76
19 libdispatch.dylib 0x00000001012c59b4 _dispatch_client_callout3 + 16
20 libdispatch.dylib 0x00000001012e4bcc _dispatch_mach_msg_async_reply_invoke + 572
21 libdispatch.dylib 0x00000001012cd998 _dispatch_lane_serial_drain + 340
22 libdispatch.dylib 0x00000001012ce91c _dispatch_lane_invoke + 420
23 libdispatch.dylib 0x00000001012db2f8 _dispatch_root_queue_drain_deferred_wlh + 324
24 libdispatch.dylib 0x00000001012da754 _dispatch_workloop_worker_thread + 488
25 libsystem_pthread.dylib 0x000000010281b814 _pthread_wqthread + 284
26 libsystem_pthread.dylib 0x000000010281a5d4 start_wqthread + 8