[NSPersistentCloudKitContainer][Mac Catalyst specific crash] app is constantly crashing within a minute or two

Core Data, Catalyst, CloudKIt engineers need your assistance.

I have an app that uses NSPersistentCloudKitContainer. It works great on iOS, but on the mac (Catalyst), the app is constantly crashing and is unusable. The CloudKit scheduler "com.apple.xpc.activity.com.apple.cloudkit.scheduler.com.apple.coredata.cloudkit.activity.export" seems to be at fault. It's crashing inside a generic dispatch block, so it's impossible to debug. Found a similar thread:
https://developer.apple.com/forums/thread/128131?page=1

This is on Catalina 10.15.5 (19F101).
MacBook Pro (Retina, 13-inch, Early 2015)

Any ideas on how to debug/solve the root cause of this issue?

Here's the image of the crash report (image hosted on imgbb.com):
ibb.co nQy6rwm


Thread 19 Queue : com.apple.xpc.activity.com.apple.cloudkit.scheduler.com.apple.coredata.cloudkit.activity.export (serial)
#0 0x00007fff73de0436 in __xpcactivitydispatchblockinvoke.109.cold.3 ()
#1 0x00007fff73dde82b in
_xpcactivitydispatchblockinvoke.109 ()
#2 0x000000010040f844 in
dispatchcallblockandrelease ()
#3 0x0000000100410826 in dispatchclientcallout ()
#4 0x0000000100417dd7 in
dispatchlaneserialdrain ()
#5 0x0000000100418b90 in
dispatchlaneinvoke ()
#6 0x0000000100425fe0 in dispatchworkloopworkerthread ()
#7 0x000000010049e361 in pthreadwqthread ()
#8 0x000000010049d49b in startwqthread ()
Enqueued from com.apple.root.background-qos (Thread 18) Queue : com.apple.root.background-qos (serial)
#0 0x000000010041547c in dispatch
async ()
#1 0x00007fff73dc8c3c in xpcactivitydispatch ()
#2 0x00007fff73dc52bc in
xpcconnectioncalleventhandler ()
#3 0x00007fff73dc41cb in xpcconnectionmachevent ()
#4 0x00000001004108c6 in dispatchclientcallout4 ()
#5 0x000000010042dbcc in
dispatchmachmsginvoke ()
#6 0x0000000100417be6 in
dispatchlaneserialdrain ()
#7 0x000000010042ef6c in
dispatchmachinvoke ()
#8 0x0000000100425fe0 in dispatchworkloopworkerthread ()
#9 0x000000010049e361 in pthreadwqthread ()
#10 0x000000010049d49b in startwqthread ()



libxpc.dylib`
_xpcactivitydispatchblockinvoke.109.cold.3:
  0x7fff73de0423 <+0>: pushq %rbp
  0x7fff73de0424 <+1>: movq  %rsp, %rbp
  0x7fff73de0427 <+4>: xorl  %edi, %edi
  0x7fff73de0429 <+6>: callq 0x7fff73de04d8      ; symbol stub for:
osassertlog
  0x7fff73de042e <+11>: movq  %rax, %rdi
  0x7fff73de0431 <+14>: callq 0x7fff73de04ea      ; symbol stub for: oscrash
  • > 0x7fff73de0436 <+19>: ud2   

Thread 19: EXCBADINSTRUCTION (code=EXCI386INVOP, subcode=0x0)
Here's another thread with this issue. The issue appears to be widespread.
https://developer.apple.com/forums/thread/650230

Any help would really be appreciated!
[NSPersistentCloudKitContainer][Mac Catalyst specific crash] app is constantly crashing within a minute or two
 
 
Q