NSPersistentStoreCoordinator crash (routeHeavyweightBlock?)

Hello,

I recently published an app on the App Store. I see a crash log from one of my users, but don't understand the reason CoreData crashed. It was simply saving a single object, and all the properties of it are optional.

I am unable to reproduce the crash, and in the over 8 moths of development before release, I did not encounter this type of error.

Please provide assistance, or where I could do some more research. I included part of the crash log below.

Thank you very much.

Hardware Model:      iPhone15,4
Process:             Proaneer
Version:             1.0.3 (50)
AppStoreTools:       15A240a
AppVariant:          1:iPhone15,4:17
Code Type:           ARM-64 (Native)
Role:                Foreground
Parent Process:      launchd [1]

Date/Time:           2023-10-01 09:14:05.6888 -0400
Launch Time:         2023-10-01 09:08:34.4421 -0400
OS Version:          iPhone OS 17.0.2 (21A350)
Release Type:        User
Baseband Version:    1.00.03
Report Version:      104

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Termination Reason: SIGNAL 6 Abort trap: 6
Terminating Process: Proaneer

Triggered by Thread:  0

Last Exception Backtrace:
0   CoreFoundation                	0x19a4565e0 __exceptionPreprocess + 164 (NSException.m:249)
1   libobjc.A.dylib               	0x192767c00 objc_exception_throw + 60 (objc-exception.mm:356)
2   CoreData                      	0x1a2609410 -[NSPersistentStoreCoordinator _introspectLastErrorAndThrow] + 120 (NSPersistentStoreCoordinator.m:0)
3   CoreData                      	0x1a24f3fbc __65-[NSPersistentStoreCoordinator executeRequest:withContext:error:]_block_invoke.541 + 680 (NSPersistentStoreCoordinator.m:0)
4   CoreData                      	0x1a24f3c2c -[NSPersistentStoreCoordinator _routeHeavyweightBlock:] + 264 (NSPersistentStoreCoordinator.m:641)
5   CoreData                      	0x1a24d05b4 -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 1048 (NSPersistentStoreCoordinator.m:2768)
6   CoreData                      	0x1a24d05d8 -[NSPersistentStoreCoordinator executeRequest:withContext:error:] + 1084 (NSPersistentStoreCoordinator.m:3425)
7   CoreData                      	0x1a24c1e84 -[NSManagedObjectContext save:] + 972 (NSManagedObjectContext.m:1625)
8   Proaneer                      	0x102f2e268 ContactListViewModel.saveContact(functionName:functionAction:count:) + 96 (ContactListViewModel + CRUD Ext..swift:151)
9   Proaneer                      	0x102f2e1e4 ContactListViewModel.createContact() + 2496 (ContactListViewModel + CRUD Ext..swift:50)
10  Proaneer                      	0x102f7e08c closure #1 in closure #1 in closure #2 in closure #1 in closure #5 in ContactListRootView.body.getter + 84 (ContactListRootView.swift:203)

Hi @Davicito Did you find any resolution for this crash? I am getting the same in my application in production. But I haven't received this crash at my end even once.

NSPersistentStoreCoordinator crash (routeHeavyweightBlock?)
 
 
Q