NSInternalInconsistencyException: No identifiers for model class: MPModelSong from source: (null)

My app is consistently crashing for a specific user on 14.3 (iMac (24-inch, M1, 2021) when their library is being retrieved in full. User says they have 36k+ songs in their library which includes purchased music.

This is the code making the call:

  var request = MusicLibraryRequest<Album>()
  request.limit = 10000
  let response = try await request.response()

I’m aware of a similar (?) crash FB13094022 (https://forums.developer.apple.com/forums/thread/736717) that was claim fixed for 14.2. Not sure if this is a separate issue or linked.

I’ve submitted new FB13573268 for it.

CrashReporter Key:  0455323d871db6008623d9288ecee16c676248c6
Hardware Model:     iMac21,1
Process:            Music Flow
Identifier:         com.third.musicflow
Version:            1.2
Role:               Foreground
OS Version:         Mac OS 14.3


NSInternalInconsistencyException: No identifiers for model class: MPModelSong from source: (null)

0  CoreFoundation +0xf2530         __exceptionPreprocess
1  libobjc.A.dylib +0x19eb0        objc_exception_throw
2  Foundation +0x10f398            -[NSAssertionHandler handleFailureInMethod:object:file:lineNumber:description:]
3  MediaPlayer +0xd59f0            -[MPBaseEntityTranslator _objectForPropertySet:source:context:]
4  MediaPlayer +0xd574c            -[MPBaseEntityTranslator _objectForRelationshipKey:propertySet:source:context:]
5  MediaPlayer +0xd5cd4            __63-[MPBaseEntityTranslator _objectForPropertySet:source:context:]_block_invoke_2
6  CoreFoundation +0x40428         __NSDICTIONARY_IS_CALLING_OUT_TO_A_BLOCK__
7  CoreFoundation +0x402f0         -[__NSDictionaryI enumerateKeysAndObjectsWithOptions:usingBlock:]
8  MediaPlayer +0xd5c1c            __63-[MPBaseEntityTranslator _objectForPropertySet:source:context:]_block_invoke
9  MediaPlayer +0x11296c           -[MPModelObject initWithIdentifiers:block:]
10 MediaPlayer +0xd593c            -[MPBaseEntityTranslator _objectForPropertySet:source:context:]
11 MediaPlayer +0xd66c4            -[MPBaseEntityTranslator objectForPropertySet:source:context:]
12 MediaPlayer +0x1a7744           __47-[MPModeliTunesLibraryRequestOperation execute]_block_invoke
13 iTunesLibrary +0x16d84          0x1b4e1cd84 (0x1b4e1cd30 + 84)
14 CoreFoundation +0x5dec0         __invoking___
15 CoreFoundation +0x5dd38         -[NSInvocation invoke]
16 Foundation +0x1e874             __NSXPCCONNECTION_IS_CALLING_OUT_TO_REPLY_BLOCK__
17 Foundation +0x1cef4             -[NSXPCConnection _decodeAndInvokeReplyBlockWithEvent:sequence:replyInfo:]
18 Foundation +0x1c850             __88-[NSXPCConnection _sendInvocation:orArguments:count:methodSignature:selector:withProxy:]_block_invoke_3
19 libxpc.dylib +0x10020           _xpc_connection_reply_callout
20 libxpc.dylib +0xff18            _xpc_connection_call_reply_async
21 libdispatch.dylib +0x398c       _dispatch_client_callout3
22 libdispatch.dylib +0x21384      _dispatch_mach_msg_async_reply_invoke
23 libdispatch.dylib +0xad24       _dispatch_lane_serial_drain
24 libdispatch.dylib +0xba04       _dispatch_lane_invoke
25 libdispatch.dylib +0x16618      _dispatch_root_queue_drain_deferred_wlh
26 libdispatch.dylib +0x15e8c      _dispatch_workloop_worker_thread
27 libsystem_pthread.dylib +0x3110 _pthread_wqthread
28 libsystem_pthread.dylib +0x1e2c start_wqthread
NSInternalInconsistencyException: No identifiers for model class: MPModelSong from source: (null)
 
 
Q